Skip to content

Commit

Permalink
fix: adjust package.json commands for sensible init
Browse files Browse the repository at this point in the history
  • Loading branch information
alee committed Feb 21, 2023
1 parent 0f92db3 commit 22b10b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"start:prod": "node -r tsconfig-paths/register src/index.js | tee -a /var/log/port-of-mars/index.log",
"start": "ts-node-dev -r tsconfig-paths/register src/index.ts | tee -a /var/log/port-of-mars/index.log",
"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js",
"dangerously-dropdb": "dropdb -U marsmadness -h db port_of_mars && createdb -U marsmadness -h db port_of_mars",
"dangerously-dropdb": "dropdb -U marsmadness -h db port_of_mars",
"initdb": "createdb -U marsmadness -h db port_of_mars && yarn typeorm migration:run && /scripts/openbeta/setup.sh",
"dangerously-loaddb": "psql -h db -U marsmadness port_of_mars < pom-db.sql",
"dangerously-resetdb": "dropdb -U marsmadness -h db port_of_mars && createdb -U marsmadness -h db port_of_mars && yarn typeorm schema:sync && yarn load-fixtures",
"dangerously-resetdb": "dropdb -U marsmadness -h db port_of_mars && createdb -U marsmadness -h db port_of_mars && yarn typeorm migration:run",
"migrate": "yarn typeorm migration:run",
"repl": "yarn ts-node -r tsconfig-paths/register",
"sql": "pgcli -U marsmadness -d port_of_mars -h db",
Expand Down

0 comments on commit 22b10b0

Please sign in to comment.