webpacker: "localhost:8080/packs/application.js net::ERR_CONNECTION_REFUSED" after compiling

Hello,

This is the first time ever I put a Rails / Webpacker to production so I might have forgotten something. So I finished my development, put it on my server, and started to put it to production. I bundle installed the gem in deployment mode ( bundle install --without development test ), ran the db creation to production, solved a few rake secrets problem, then ran rake assets:precompile, since I use sprocket for a few things.

Everything went smoothly, but when I reloaded the page, I noticed that my React gem is telling me that React has been put to prod, however my login page (where I’m supposed to land on connection is white, the DOM is loaded , the compiled files too but I have the error:

localhost:8080/packs/application.js net::ERR_CONNECTION_REFUSED

i guess that it expects Webpacker to run as a server, but it shouldn’t.

What am I missing?

Thank you in advance

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20 (11 by maintainers)

Most upvoted comments

Just letting a message here because even though I accepted your pull request, I just didn’t have the time to thank you properly. I had waaaay too much work to do even though I kept an eye on what you did in your PR. After a bit of tweaks (just 2 gems missing, one misplaced) it worked like a goddamn charm.

THANK. YOU. A LOT.

And all hail the Ruby on Rails community !