Updated for version 2.0

pawelmalak 2021-11-15 00:37:46 +01:00
parent 4dcf81d9a3
commit 0c9a711654

@ -17,12 +17,13 @@ cd client
npm run build
```
Then create `data` and `public` directories in root directory of the project. Move all content of `client/build` to `public` directory.
Then create `data` and `public` directories in the project root directory. Move all content of `client/build` to the `public` directory.
### Running
Edit `.env` file in root directory - change `NODE_ENV` variable to:
Edit `.env` file in the root directory
```sh
NODE_ENV=production
PASSWORD=your_password
```
Start Flame with:
@ -32,11 +33,10 @@ node server.js
Wait till server starts. You should get following logs in the terminal:
```sh
Socket: listen
Server is running on port 5005 in production mode
Connected to database
All models were synced
Initial config created
[2021-11-14 23:36:40.389 UTC+0] [INFO] Connected to database
[2021-11-14 23:36:40.585 UTC+0] [INFO] Executing pending migrations
[2021-11-14 23:36:41.284 UTC+0] [INFO] Socket: listen
[2021-11-14 23:36:41.288 UTC+0] [INFO] Server is running on port 5005 in production mode
```
Flame is now running. Visit it at `localhost:5005`