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
This snippet only up the database. So you need to start the server with :
@@ -19,18 +21,18 @@ You can now access the server !
19
21
20
22
---
21
23
22
-
But, if you want to up the whole stack, you can use the `docker-compose.prod.yml` file at the root of the project.
24
+
But, if you want to up the whole stack, you can use the `compose.prod.yml` file at the root of the project.
23
25
24
26
```bash
25
-
docker-compose -f docker-compose.prod.yml up -d
27
+
dockercompose -f compose.prod.yml up -d
26
28
```
27
29
28
30
As you may, you can edit the env variables in your `.env` file.
29
31
And edit the Caddyfile to match your domain.
30
32
31
33
:::note
32
34
33
-
The `docker-compose.prod.yml` also launch the clientapp. If not already done, I invite you to pull the submodule located in : `./outer-chat.client`.
35
+
The `compose.prod.yml` also launch the clientapp. If not already done, I invite you to pull the submodule located in : `./client` (From the outer-chat repository).
`npm ci` is used to install the dependencies from the `package-lock.json` file. Instead of the `npm install` command, it is faster and more reliable.
14
+
:::
15
+
12
16
Now edit the `.env` file to match your configuration. (you can use the [`.env.example`](.env.example) file as an example)
17
+
18
+
:::note
19
+
In the future, there will be a configuration file for the server and the client.
20
+
At the moment everything all user defined configuration will be fetched from the `.env` file.
21
+
:::
22
+
13
23
Now you can start the server in developpement mode with :
14
24
15
25
```bash
@@ -24,5 +34,5 @@ npm run start:prod
24
34
```
25
35
26
36
:::note
27
-
If you do not want to setup a database, you can use the `docker-compose.yml` file at the root of the project. It will launch a mongodb database. You can edit the env variables in the `docker-compose.yml` file.
37
+
If you do not want to setup a database, you can use the `compose.yml` file at the root of the project. It will launch a mongodb database. You can edit the env variables in the `compose.yml` file.
0 commit comments