fullstack-demo icon indicating copy to clipboard operation
fullstack-demo copied to clipboard

Help deploying to heroku.

Open don-yan opened this issue 9 years ago • 3 comments

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

don-yan avatar Jan 11 '15 01:01 don-yan

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.

aaweb avatar Jan 25 '15 21:01 aaweb

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.

Timvissers avatar Mar 31 '15 19:03 Timvissers

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.

kawashimaken avatar Dec 05 '15 16:12 kawashimaken