docs/migrations.md
(Gumroad-specific, go crazy with the other repos)
change_table(table, bulk: true) for multiple changes to a table.NOT NULL when possible.ignored_columnsignored_columns entry./logs.sh in nomad/production to view migration logs.DISABLE_ALTERITY=1 to bypass PT-OSC if needed.web_server_generic to run the script in production. Please ask in #engineering Slack channel to make sure nobody else is using that instance before redeploying it. As of now, only one web_server_generic instance can run at a time.export DEPLOY_TAG=production-<revision>
cd nomad/production && ./start_generic_web.sh
This will output an URL. Open the URL and note the client IP address from the hostname:
SSH into the server and open the Rails console as follows:
INSTANCE_IP=10.1.x.x COMMAND="screen -adrAR" ./console.sh
bundle exec rails c
This will stay running even if your connection is interrupted or if somebody deploys to production in between. If you get disconnected, run the same INSTANCE_IP=10.1.x.x COMMAND="screen -adrAR" ./console.sh command again to reconnect to the terminal.
Once the task is finished running, you can stop the web_server_generic instance as follows:
cd nomad
source nomad_proxy_functions.sh
proxy_off production; proxy_on production
nomad_insecure_wrapper stop -purge web_server_generic
proxy_off production