Skip to content

Commit 6bab4b8

Browse files
author
Michael Götz
committed
chore: add production setup
1 parent 16aa00f commit 6bab4b8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,20 @@ LAMa can be reached under `localhost:8888`.
2929
After the initial setup only steps 3, 5 are necessary.
3030

3131
## Production Setup
32-
- TODO
32+
> Important! first start without volumes line <br>
33+
> `- ./mail_templates:/lama/templates/mails`
34+
35+
- copy `docker-compose.prod.yml` to your favorite directory
36+
- comment line `- ./mail_templates:/lama/templates/mails`
37+
- `docker-compose up -d`
38+
- `docker cp <dir>_lama_1:/lama/templates/mails ./mail_templates`
39+
- `docker-compose down` and uncumment line `- ./mail_templates:/lama/templates/mails`
40+
- `docker-compose up -d`
41+
- Jump into the running container: `docker-compse exec lama sh`
42+
- Make migrations: `python3 manage.py makemigrations account_helper`
43+
- Make migrations: `python3 manage.py migrate account_helper`
44+
- Create superuser: `python3 manage.py createsuperuser`
45+
- Update copied templates (files or in gui under `Einstellungen` with the super admin account)
3346

3447

3548
## Used Libraries

0 commit comments

Comments
 (0)