Rails
How do I access the Rails console?
Add your SSH key to your Hatchbox web server.
SSH into your web server:
ssh deploy@x.x.x.cd into the app's current directory:
cd myapp/currentRun
bundle exec rails cto open the Rails console.
How do I deploy a Staging application?
You'll need to do a couple things:
Set your Hatchbox App's
RAILS_ENVenvironment variable tostagingCopy the production environment config to staging
cp config/environments/{production,staging}.rbUpdate any other config files to include staging. Common ones you will want to make sure are configured:
config/cable.ymlconfig/secrets.yml
Commit and push these changes to git
Deploy to Hatchbox (consider using a staging branch for all staging code)
Last updated