Procfile.dev 983 B

12345678910111213141516
  1. # You can run these commands in separate shells
  2. web: rails s -p 3000
  3. # Next line runs a watch process with webpack to compile the changed files.
  4. # When making frequent changes to client side assets, you will prefer building webpack assets
  5. # upon saving rather than when you refresh your browser page.
  6. # Next line runs the webpack-dev-server
  7. # You can edit config/webpacker.yml to set HMR to true to see hot reloading.
  8. # Note, hot and live reloading don't work with the default generator setup on top of
  9. # the rails/webpacker Webpack config with server rendering.
  10. # If you have server rendering enabled, modify the call to bin/webpack-dev-server line
  11. # so you add `--inline=false` and then CSS is not inlined.
  12. # Otherwise, you will have an error. If you want HMR and Server Rendering, see
  13. # the example in the https://github.com/shakacode/react-webpack-rails-tutorial
  14. client: sh -c 'rm -rf public/packs/* || true && bundle exec rake react_on_rails:locale && bin/webpack-dev-server'