You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Double check if below environment variables are available and filled in `.prod.env` environment file. If not, add them.
22
+
Previous individual `server` container is replaced by 3 service dedicated containers that split the core components of <MainPlatformName />, `server-gunicorn` the app, `celery-beat` Celery task scheduler and `celery-worker` a dedicated worker container for Celery tasks.
23
+
:::
24
+
25
+
1. Stop your running docker containers and build the new images
26
+
```bash
27
+
$ docker compose -f docker-compose.yml down # or similarly, based on your deployment
28
+
# INFO: After shutdown update the docker-compose.yml file to latest release
29
+
$ docker compose -f docker-compose build # or similarly, based on your deployment
30
+
```
31
+
32
+
2. Double check if below environment variables are available and filled in `.prod.env` environment file. If not, add them.
21
33
22
34
```bash
23
35
SECURITY_EMAIL_SALT='<YOUR STRONG HASH>'
24
36
SECURITY_BEARER_SALT='<YOUR STRONG HASH>'
25
37
```
26
38
27
-
2. Start up your docker containers
39
+
3. Start up your docker containers
28
40
```bash
29
-
$ docker-compose -f docker-compose.yml up # or similarly, based on your deployment
41
+
$ dockercompose -f docker-compose.yml -d up # or similarly, based on your deployment
30
42
```
31
43
32
-
3. Check that you are on correct versions (`07f2185e2428`, `df5b4efdae7b`).
44
+
4. Check that you are on correct versions (`07f2185e2428`, `df5b4efdae7b`).
33
45
```bash
34
-
$ docker execmerginmaps-server flask db current
46
+
$ docker compose exec server flask db current
35
47
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
36
48
INFO [alembic.runtime.migration] Will assume transactional DDL.
37
49
07f2185e2428 (head)
@@ -40,14 +52,14 @@ Perform the migration:
40
52
41
53
- If you do not see the version numbers at all, run the following commands:
42
54
```bash
43
-
$ docker execmerginmaps-server flask db stamp 07f2185e2428
44
-
$ docker execmerginmaps-server flask db stamp df5b4efdae7b
55
+
$ docker compose exec server flask db stamp 07f2185e2428
56
+
$ docker compose exec server flask db stamp df5b4efdae7b
45
57
```
46
58
47
-
4. Run the database migration:
59
+
5. Run the database migration:
48
60
```bash
49
-
$ docker execmerginmaps-server flask db upgrade community@ba5051218de4
50
-
$ docker execmerginmaps-server flask db upgrade enterprise@ba5ae5972c4a
61
+
$ docker compose exec server flask db upgrade community@ba5051218de4
62
+
$ docker compose exec server flask db upgrade enterprise@ba5ae5972c4a
0 commit comments