chore: update docker start command

This commit is contained in:
moonrailgun 2023-10-19 00:24:53 +08:00
parent 7a4c8f5bac
commit 0859fa9884
2 changed files with 4 additions and 3 deletions

View File

@ -12,4 +12,4 @@ RUN pnpm build
EXPOSE 12345 EXPOSE 12345
CMD ["pnpm", "start:pro"] CMD ["pnpm", "start:docker"]

View File

@ -4,8 +4,8 @@
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"dev": "nodemon", "dev": "nodemon",
"start": "NODE_ENV=production ts-node src/server/main.ts", "start": "NODE_ENV=production node ./dist/server/main.js",
"start:pro": "node ./dist/server/main.js", "start:docker": "pnpm db:migrate && pnpm db:generate && pnpm start",
"build": "pnpm build:client && pnpm build:server && pnpm build:tracker && pnpm build:geo", "build": "pnpm build:client && pnpm build:server && pnpm build:tracker && pnpm build:geo",
"build:client": "vite build", "build:client": "vite build",
"build:server": "tsc -p tsconfig.server.json", "build:server": "tsc -p tsconfig.server.json",
@ -14,6 +14,7 @@
"check:type": "tsc --noEmit --skipLibCheck --module esnext", "check:type": "tsc --noEmit --skipLibCheck --module esnext",
"db:push": "prisma db push", "db:push": "prisma db push",
"db:generate": "prisma generate", "db:generate": "prisma generate",
"db:migrate": "prisma migrate deploy",
"db:studio": "prisma studio" "db:studio": "prisma studio"
}, },
"dependencies": { "dependencies": {