This commit is contained in:
Bence Pőcze 2020-07-05 17:52:13 +02:00
parent 8403c21ec0
commit a8b1ab3057
Signed by: bence
GPG Key ID: AA52B11A3269D1C1

View File

@ -46,6 +46,14 @@ One very important variable is `DEV`. This indicates that the application operat
If you install the application in the Docker stack for development (staging) environment, only the variables for external dependencies (API keys, map attribution, etc.) should be adapted. All other variables (for DB connection, static root, mailing, etc.) are fine with the default value. If you install the application in the Docker stack for development (staging) environment, only the variables for external dependencies (API keys, map attribution, etc.) should be adapted. All other variables (for DB connection, static root, mailing, etc.) are fine with the default value.
### (Production only) Create cron job
To maintain database (delete inactive users, old sessions etc.), the command `db:maintain` should be regularly executed. It is recommened to create a cron job that runs every hour:
```
0 * * * * /path/to/your/installation/mapg db:maintain >>/var/log/cron-mapguesser.log 2>&1
```
### Finalize installation ### Finalize installation
After you set the environment variables in the `.env` file, execute the following command: After you set the environment variables in the `.env` file, execute the following command: