create-aomex 0.0.61 → 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,6 +1,6 @@
1
1
  {
2
2
  "name": "create-aomex",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "repository": "git@github.com:aomex/create-aomex.git",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,6 +8,7 @@ ENV TZ=Asia/Shanghai
8
8
  ENV PORT=3000
9
9
  ENV NODE_ENV=integration
10
10
  ENV NODE_OPTIONS='--enable-source-maps --stack-trace-limit=50'
11
+ ENV PATH="$PATH:/codes/node_modules/.bin"
11
12
 
12
13
  RUN sh scripts/build-in-docker.sh
13
14
 
@@ -8,6 +8,7 @@ ENV TZ=Asia/Shanghai
8
8
  ENV PORT=3000
9
9
  ENV NODE_ENV=production
10
10
  ENV NODE_OPTIONS='--enable-source-maps --stack-trace-limit=50'
11
+ ENV PATH="$PATH:/codes/node_modules/.bin"
11
12
 
12
13
  RUN sh scripts/build-in-docker.sh
13
14
 
@@ -1,14 +1,14 @@
1
1
  services:
2
2
  migration:
3
3
  image: {{projectName}}:integration
4
- command: npx prisma migrate deploy
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: npx aomex cron:start
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: npx prisma migrate deploy
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: npx aomex cron:start
15
+ command: aomex cron:start
16
16
  restart: always
17
17
  environment:
18
18
  - NODE_COMPILE_CACHE=/tmp