You need to install these dependencies in your environment
ruby 2.5.1
abovebundler
(gem install bundler
)parcelcli
(npm i -g parcel-bundler
)
- run
bundle install
- run
bundle exec foreman start -f Procfile.dev
- server will be run at port
3000
and parcel at port3100
(you can change it inProcfile.dev
)
since production code require app.prod.js
, make sure to build the app.js
file using this parcel command
parcel build ./public/app.js --out-dir ./public --out-file app.prod.js