Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Command: heroku pgbackups:url [db_key] --remote production
| { | |
| "AUTHENTICATE": { | |
| "TYPE": "POST", | |
| "URI": "oauth/token", | |
| "AUTH": false | |
| }, | |
| "REVOKE_AUTH_TOKEN": { | |
| "TYPE": "POST", | |
| "URI": "oauth/revoke", | |
| "AUTH": true |
| docker rm $(docker ps -a -q) | |
| docker rmi $(docker images -q) |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| #!/usr/bin/env bash | |
| mkdir /var/app/ondeck/vendor /var/app/ondeck/public /var/app/support/bundle /var/app/support/assets /var/app/support/cache | |
| ln -s /var/app/support/bundle /var/app/ondeck/vendor | |
| ln -s /var/app/support/assets /var/app/ondeck/public | |
| ln -s /var/app/support/cache /var/app/ondeck/vendor | |
| sed -i 's/"rake/"bundle exec rake/' /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh |