This README would normally document whatever steps are necessary to get the application up and running.
-
Setup
-
Clone this repo
-
Install RVM (Ruby Version Manager)
rvm install ruby-2.6.6
cd rails-boilerplate/
bundle install
-
Install NodeJS - JS Environment
brew install node
-
- Redis is required for ActionCable
-
-
System dependencies
-
Configuration
-
Database creation
bundle exec rake db:create
-
Database initialization
bundle exec rake db:bootstrap
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
rails s
- Start server
-
Deployment instructions
-
...
Websocket Basic Auth
wscat -c ws://localhost:3001/cable -o http://localhost.myapp-dev.com:3001/ --auth rbx-ae6b7d4949a226e235fa:x
Subscribe to Channel
{"command":"subscribe","identifier":"{\"channel\":\"ApplicationCable::FeatureFlagsChannel\"}"}
RAILS_ENV=production rake secret
export SECRET_KEY_BASE=generated_key
RAILS_ENV=production rake assets:precompile
export RAILS_SERVE_STATIC_FILES=true
RAILS_ENV=production rails s -u puma