Skip to content

Commit

Permalink
167130331-bug-(fix heroku build)
Browse files Browse the repository at this point in the history
 - add start script to package.json
[fixes 167130331 ];
  • Loading branch information
Obi chinedu Frank committed Jul 8, 2019
1 parent f3f0246 commit 11b60d4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
12 changes: 10 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"addons": [],
"addons": [
{
"plan": "heroku-postgresql",
"as": "DATABASE_URL",
"options": {
"version": "9.5"
}
}
],
"buildpacks": [
{
"url": "heroku/nodejs"
Expand All @@ -15,4 +23,4 @@
"name": "demeter-ah-backend",
"scripts": {},
"stack": "heroku-18"
}
}
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"dev": "nodemon --exec babel-node server/index",
"migrate": "sequelize db:migrate",
"seed": "sequelize db:seed:all",
"coverage": "nyc report --reporter=text-lcov | coveralls"
"coverage": "nyc report --reporter=text-lcov | coveralls",
"start": "babel-node server/index",
"heroku-postbuild": "npm run migrate"
},
"husky": {
"hooks": {
Expand All @@ -25,10 +27,6 @@
]
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/node": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"chai": "^4.2.0",
"chai-http": "^4.3.0",
"coveralls": "^3.0.4",
Expand All @@ -42,10 +40,13 @@
"mocha": "^6.1.4",
"nodemon": "^1.19.1",
"nyc": "^14.1.1",
"prettier": "^1.18.2",
"sequelize-cli": "^5.5.0"
"prettier": "^1.18.2"
},
"dependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/node": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"bcryptjs": "^2.4.3",
"body-parser": "^1.19.0",
"consola": "^2.9.0",
Expand All @@ -68,6 +69,7 @@
"sequelize-slugify": "^0.7.0",
"sinon": "^7.3.2",
"swagger-ui-express": "^4.0.6",
"sequelize-cli": "^5.5.0",
"yamljs": "^0.3.0"
}
}
}

0 comments on commit 11b60d4

Please sign in to comment.