From: xangelo Date: Wed, 14 Jun 2023 08:24:10 +0000 (-0400) Subject: prod migration/seed commands X-Git-Tag: v0.0.1~44 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=23ade7418a4cf144b12e3449f2da283dff6dfdf2;p=risinglegends.git prod migration/seed commands --- diff --git a/package.json b/package.json index 73949dd..6b8ec54 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "start": "pm2 start dist/server/api.js", "build": "npx webpack && npx tsc", "migrate": "npx ts-node ./node_modules/knex/bin/cli.js migrate:latest", + "migrate:prod": "NODE_ENV=production npx ts-node ./node_modules/knex/bin/cli.js migrate:up", "seed": "npx ts-node ./node_modules/knex/bin/cli.js seed:run", + "seed:prod": "NODE_ENV=production npm run seed", "dev:client": "npx webpack -w", "dev:server": "npx nodemon src/server/api.ts" },