mirror of
https://github.com/Wolvan/poll.horse.git
synced 2024-11-21 20:47:59 +01:00
Make app heroku-ready
Add a procfile and make the start not try to build the project.
This commit is contained in:
parent
bdf5ad1b1c
commit
7047db51d8
2 changed files with 4 additions and 1 deletions
1
Procfile
Normal file
1
Procfile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
web: npm run heroku
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in a new issue