sequelize deployment
{
"name": "burger-2-thesequel",
"version": "1.0.2",
"description": "MVC Burger logger with MySQL, Node, Express, Handlebars and Sequelize ORM",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node ./bin/www",
"devstart": "nodemon ./bin/www"
},
"repository": {
"type": "git",
"url": "git+https://github.com/FlintSable/Burger-2-TheSequel.git"
},
"engines": {
"node": "7.8.0"
},
"author": "nn",
"license": "ISC",
"bugs": {
"url": "https://github.com/FlintSable/Burger-2-TheSequel/issues"
},
"homepage": "https://github.com/FlintSable/Burger-2-TheSequel#readme",
"dependencies": {
"body-parser": "^1.17.2",
"express": "^4.15.3",
"express-handlebars": "^3.0.0",
"method-override": "^2.3.9",
"mysql": "^2.13.0",
"sequelize": "^3.30.4",
"sequelize-cli": "^2.7.0"
}
}
heroku quicky - tree house
1. package.json file
npm init
npm install packages --save
2. specify node.js version
heroku login
heroku help
heroku help topicname
3. create Procfile
web: npm start
4. create applicaiton with toolbels
heroku apps:create ancient-carbon-90009
git remote -v
heroku local web
5. addons: jaws
heroku addons:create jawsdb
heroku addons:create mongolab
6. from master branch
git push https://git.heroku.com/ancient-carbon-90000.git master
9. modify your application
heroku logs
heroku help
heroku help subject