Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit 17ddb9f

Browse files
committed
Fix nginx args location and edit README file
1 parent c93a82e commit 17ddb9f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ All the parts are in a separate [Docker](https://www.docker.com/) containers and
2424

2525
Automatic installation of the project with docker.
2626

27+
0. If you work on `win` or `mac` please comment the lines of the `database -> volumes` in `docker-compose.yml`, this share volume with `linux` system only.
2728
1. In `client` directory run `docker build -t client .` to build the Docker image.
2829
2. In `server` directory run `docker build -t server .` to build the Docker image.
2930
3. To create a swarm `docker swarm init`.

client/nginx/nginx.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@ http {
2929

3030
access_log /var/log/nginx/angular_access.log;
3131
error_log /var/log/nginx/angular_error.log;
32-
root /usr/src/app/dist;
32+
root /usr/src/app/dist;
3333

3434
location /favicon.ico {
3535
alias static/favicon.ico;
3636
}
3737

38+
location / {
39+
try_files $uri$args $uri$args/ /index.html;
40+
}
41+
3842
}
3943

4044
}

0 commit comments

Comments
 (0)