Skip to content

Commit 3509e14

Browse files
committed
Introudce init command
1 parent a5e238c commit 3509e14

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/server/install/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ $ docker-compose -f docker-compose.yml up
3636
```
3737
​​
3838
### Initialise database
39-
If server is started for the first time, database needs to be initialised and super-user created (set admin username, password and email):
39+
If server is started for the first time, database needs to be initialised and super-user created. Use the `init` command which will perform it automatically (check the command outputs to get the password):
4040
```shell
41-
$ docker exec merginmaps-server flask init-db
42-
$ docker exec merginmaps-server flask user create <username> <password> --is-admin --email <email>
41+
$ docker exec merginmaps-server flask init
4342
```
4443

44+
If you don't have `CONTACT_EMAIL` variabe set, you will be asked to provide a super user email using the `-e`/`--email` option. The `init` will also check your server setup (celery jobs, emails, etc.) and print out a list of missing variables. If you see any errors in the console output, you can run the command again as the database and super user will not be re-initialized.
45+
4546
### Setup environment
4647
4748
Now tweak deployment settings by modifying environment variables. You have to fix all variables marked as required in this list of [environment variables](../administer/environment.md). Some of the most common issues with custom deployments are listed in the [troubleshoot](../troubleshoot/index.md) section.

0 commit comments

Comments
 (0)