Read more

How to: Run webpack dev server with vcap.me

Emanuel
January 10, 2018Software engineer at makandra GmbH

With webpack 3.3.1 this is not required anymore. Do not start the webpack-dev-server manually, but only start rails which take care of webpack-dev-server under the hood.

If your Rails application is using Webpack you need to serve assets on the same host as you application runs, otherwise you will see the following errors in your browser console:

[WDS] Disconnected!
Invalid Host header
Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

So if you are using awesome.vcap.me:3000 you need to start the webpack-dev-server with a different host than localhost (0.0.0.0):

bin/webpack-dev-server --host awesome.vcap.me
Posted by Emanuel to makandra dev (2018-01-10 09:19)