Make app heroku-ready

Add a procfile and make the start not try to build the project.
This commit is contained in:
Wolvan 2022-01-08 17:43:08 +01:00
parent bdf5ad1b1c
commit 7047db51d8
2 changed files with 4 additions and 1 deletions

1
Procfile Normal file
View file

@ -0,0 +1 @@
web: npm run heroku

View file

@ -11,7 +11,9 @@
"build": "rimraf ./dist && tsc", "build": "rimraf ./dist && tsc",
"test": "npm run lint && npm run find-todo && npm run mocha", "test": "npm run lint && npm run find-todo && npm run mocha",
"debug": "ts-node-dev --inspect --respawn --clear ./src/main.ts", "debug": "ts-node-dev --inspect --respawn --clear ./src/main.ts",
"start": "npm test && npm run build && node ./dist/main.js", "start:build": "npm test && npm run build && node ./dist/main.js",
"start": "node ./dist/main.js",
"heroku": "npm run start -- --port env:PORT --use-mysql --mysql-host env:MYSQL_HOST --mysql-port env:MYSQL_PORT --mysql-user env:MYSQL_USER --mysql-password env:MYSQL_PASSWORD --mysql-database env:MYSQL_DATABASE",
"prepublish": "npm test && npm run build" "prepublish": "npm test && npm run build"
}, },
"repository": { "repository": {