You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-9
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,15 @@ Use `ng serve` to start the react server
2
2
3
3
`docker-compose up` to start the backend server along with postgres and redis.
4
4
5
-
`
5
+
```
6
6
"nodemonConfig": {
7
7
"watch": ["server"]
8
8
},
9
-
`
10
-
The above configurations tells the react proxy server to redirect all api calls to the backend docker instance. The `nodemonConfig` tells nodemon to only watch the server dir.
9
+
```
10
+
The `nodemonConfig` tells nodemon to only watch the server dir.
11
11
12
12
The `proxy.conf.json` file setups the proxy for the ng server to redirect all traffic on `/api` to go to the backend docker instance instead.
13
13
14
-
The way the knexfile is setup, the development section allow the user to run the knex migration from the host computer and is routed to the docker instance using localhost. The production section is used by docker to setup the postgres DB and it's connections to the rest of the docker containers.
14
+
The way the knexfile is setup, there is a single configuration shared by both development and production.
15
15
16
-
This is controlled using the `ENVIRONMENT` property within the docker-compose.override.yml file, under the environment section.
17
-
18
-
`knex migrate:latest` will run any migrations made, but this needs to be run in the server dir as that is where the knexfile.js is.
19
-
20
-
The `npm run dev` script within the package.json file sets up the how docker is going to run the express server using nodemon.
16
+
Migrations and Seeds are now run automatically on launching the express docker container via the deploy-*.js files. It also launches the server with node in production mode or launches nodemon watching all files in development mode.
0 commit comments