fullstack-demo
fullstack-demo copied to clipboard
Help deploying to heroku.
I tried to deploy this app after a fresh clone, but received several errors.
At first it was Error: Cannot find module 'connect-livereload'
Afterwards I ran heroku config:set NODE_ENV=staging and got: Error: Cannot find module './staging.js'
Finally, I changed NODE_ENV=production and saw: Error: ENOENT, no such file or directory '/app/public/favicon.ico'
I noticed on your .gitignore file you are excluding public. Do I need to re-run Grunt before I can deploy to heroku?
Sorry for ignorance. I'm sure a basic guide would be greatly appreciated!
Thanks
I'm seeing the same issue on Heroku when using their (beta) Manual Deploy feature from the Dashboard (under the Code -> GitHub tab). However, when deploying the same branch locally using grunt build && grunt buildcontrol:heroku things work fine.
I had the same problem when manually deploying via github, but I think it was not meant by the author to do this via github (see readme). Instruction was to add a heroku git in the dist folder. When then following the heroku git instructions for deployment, it works just fine.
I think this issue can be closed.
As I mentioned here https://github.com/DaftMonk/generator-angular-fullstack/issues/152#issuecomment-161985312 I am experiencing the same issue, and the result of heroku logs is Error: ENOENT: no such file or directory, stat '/app/public/favicon.ico' I switched the version of serve-favicon, but no luck. Any hint will be appreciated.
As I can tell the dist folder in my local app folder contains /public and /server , and favicon is in /public/favicon.ico, I wonder why '/app/public/favicon.ico' is being searched for at heroku. Locally, it all worked fine.