Gains made easy w rails. Get on the train.
Add this to your .bashrc or .bash_profile, based on your postgres user.
# set the environment variables for MR_BOTS postgres db
export MR_PG_USER=mrbot
export MR_PG_PWD=mrbot123
ssh -i /path/to/mr_bots.pem ubuntu@mrbots.net
psql -U mr_bots-webapp -d production
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake assets:precompile
sudo service unicorn_mr_bots-webapp-PROD stop
, sudo service unicorn_mr_bots-webapp-PROD start
/app/assets/javascripts/app.js
is the main/only javascript file for UIengagement_type
-> bot_type
campaign
-> bot