How can I start the rails server in parallel with the webpack server so that I can kill both at the same time?
You can install foreman
gem, instructions here.
Then create a Procfile
and add the startup scripts to it.
web: bin/webpack-dev-serverapi: rails s
To start the servers run foreman start
.
To kill all processes use Ctrl^C
, if it fails run killall "foreman: master"
.