create-aomex 0.0.60 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
services:
|
|
2
2
|
migration:
|
|
3
3
|
image: {{projectName}}:integration
|
|
4
|
-
command:
|
|
4
|
+
command: prisma migrate deploy
|
|
5
5
|
api:
|
|
6
6
|
image: {{projectName}}:integration
|
|
7
7
|
ports:
|
|
8
8
|
- 3000:3000
|
|
9
9
|
cron:
|
|
10
10
|
image: {{projectName}}:integration
|
|
11
|
-
command:
|
|
11
|
+
command: aomex cron:start
|
|
12
12
|
restart: always
|
|
13
13
|
environment:
|
|
14
14
|
- NODE_COMPILE_CACHE=/tmp
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
services:
|
|
2
2
|
migration:
|
|
3
3
|
image: {{projectName}}:production
|
|
4
|
-
command:
|
|
4
|
+
command: prisma migrate deploy
|
|
5
5
|
api:
|
|
6
6
|
image: {{projectName}}:production
|
|
7
7
|
ulimits:
|
|
@@ -12,7 +12,7 @@ services:
|
|
|
12
12
|
- 3000:3000
|
|
13
13
|
cron:
|
|
14
14
|
image: {{projectName}}:production
|
|
15
|
-
command:
|
|
15
|
+
command: aomex cron:start
|
|
16
16
|
restart: always
|
|
17
17
|
environment:
|
|
18
18
|
- NODE_COMPILE_CACHE=/tmp
|
|
@@ -14,7 +14,7 @@ then
|
|
|
14
14
|
# exit 137 SIGKILL
|
|
15
15
|
{ sudo docker compose --file $docker_compose_file exec -it $cron_service_name /bin/sh -c "npx aomex cron:stop" || :; }
|
|
16
16
|
# against restart=always
|
|
17
|
-
sudo docker compose --file $docker_compose_file stop $cron_service_name
|
|
17
|
+
sudo docker compose --file $docker_compose_file stop $cron_service_name -t=1
|
|
18
18
|
fi
|
|
19
19
|
|
|
20
20
|
sudo docker compose --file $docker_compose_file up -d --timeout=1 --remove-orphans
|