- Upgrade Rails to 5.1+ for webpacker integration
- Run
nvm install node && nvm alias default stable
to use latest version of node. - Install Yarn
- Add
webpack-dev-server
and configure as below. - Run
rails new elm_on_rails --webpack
- Run
rails webpacker:install
if needed. - Run
rails webpacker:install:elm
- Add
<%= javascript_pack_tag "javascript_filename_without_extension" %>
to an html view.
dev_server:
https: true
host: localhost
port: 8082
public: rails-and-elm-myklclason.c9users.io/:8082
hmr: false
inline: false
overlay: true
disable_host_check: true
use_local_ip: false
Replace from dev_server
to use_local_ip
only.