angularjs - Angular deployment to Heroku - how to specify app -
i have written small application in angularjs, works fine on local environment, i'm deploying heroku. heroku can't find app. must missing vital part needed specify build , deployment details. needed run angular app on heroku?
here's i've done far:
- used npm create package.json file in root of project
created procfile in root of package, specifying app :
web node app.jsadded angular buildpack heroku (https://github.com/nknj/heroku-buildpack-yo-angular.git works great)
when use heroku cli, example heroku restart refresh dyno (and bear in mind running within project root folder, shouldn't have specify app name) following error:
▸ error: no app specified ▸ usage: heroku restart [dyno] --app app ▸ don't know app run on. ▸ run command inside app folder or specify app use --app app ▸ ▸ https://devcenter.heroku.com/articles/using-the-cli#app-commands heroku can't find app. why? how 1 tell heroku how bootstrap app? thanks.
Comments
Post a Comment