add the goodness of ngrok to your Rails 6 app
You'll need the following installed to run the template successfully:
- Ruby 2.5 or higher
- Redis - For ActionCable support
- bundler -
gem install bundler - foreman -
gem install foreman - rails -
gem install rails - Yarn -
brew install yarnor Install Yarn - Foreman -
gem install foreman- helps run all your processes in development (for example, ngrok)
- Run as a normal template
from github:
rails app:template LOCATION=https://raw.githubusercontent.com/captproton/ngrok_rails_template/main/template.rbOr if you have downloaded this repo, you can reference template.rb locally:
rails app:template LOCATION=ngrok_rails_template/template.rb- Run
gem install bundlerfrom the root of your app
- Run
foreman startfrom the root of your app
You should see foreman start four processes
- web (rails)
- worker (sidekiq)
- webpack
- ngrok