Posted over 1 year ago. Visible to the public. Deprecated.

How to: Run webpack dev server with vcap.me

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:

Copy
[WDS] Disconnected! Invalid Host header

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):

Copy
bin/webpack-dev-server --host awesome.vcap.me

Does your version of Ruby on Rails still receive security updates?
Rails LTS provides security patches for old versions of Ruby on Rails (3.2 and 2.3).

Owner of this card:

Avatar
Emanuel De
Last edit:
over 1 year ago
by Emanuel De
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Emanuel De to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more