免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2015年1月28日 星期三

github to heroku, bower not found


* deploy from github to heroku
[prerequisite : create a repo git on github, push an app to the git]


0. login heroku.com
1. heroku personal apps -> click the target app ->
2. click 'Deploy' on the top horizon menu "Resources, Deploy, Metrics, Activity, Access, Settings"
3. -> click 'GitHub(beta)' -> connect to the source git on github
4. -> Manual deploy
5. -> Open app [ click the top icon beside 'star' ]


* if build error
-> click 'Activity' on the top horizon menu "Resources, Deploy, Metrics, Activity, Access, Settings"
-> revise package.json, Procfile ...


* error when trying to deploy angular-phonecat
""" ... sh: 1: bower: not found

npm ERR! angular-phonecat@0.0.0 postinstall: `bower install`
npm ERR! Exit status 127
... """


-->
http://stackoverflow.com/questions/24534920/deploying-to-heroku-with-grunt-bower-node-modules

"engines": {
"node": "0.10.29"
},
"dependencies": {
"bower": "^1.3.5"
},
"scripts": {
"postinstall": "./node_modules/bower/bin/bower install"
},




沒有留言:

張貼留言