Update the install documentation to user manage.py

master
Pierre Jaury 9 years ago
parent fa30a71e66
commit 81c33fce8a

@ -183,30 +183,24 @@ Then create two files in this directory:
- ``cert.pem`` contains the certificate, - ``cert.pem`` contains the certificate,
- ``key.pem`` contains the key pair. - ``key.pem`` contains the key pair.
Bootstrapping the database Creating the first admin user
========================== =============================
Freeposte.io does not yet have a database initialization or migration system. Freeposte.io does not come with any default user. You have to create the
This will be added in version ``1.1``. For now, you will have to manually first admin user manually. First, start the mail server stack:
bootstrap the database. First, start the mail server stack:
``` ```
docker-compose up -d docker-compose up -d
``` ```
Then bootstrap the database: Then create the admin user:
``` ```
docker exec -i -t freeposte_admin_1 python initdb.py docker exec -i -t freeposte_admin_1 python manage.py admin admin exmaple.net admin
docker-compose restart
``` ```
Be very careful and run this command only once, as it will remove any existing This will create ``admin@example.net`` with password ``admin``. Connect to
data before creating a fresh database. the Web admin interface change the password to a strong one:
The default user is ``admin@example.com`` with password ``admin``. Connect to
the Web admin interface and setup a proper domain with your own admin user
before removing the default one:
``` ```
https://your-host-name.tld/admin/ https://your-host-name.tld/admin/

Loading…
Cancel
Save