This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| for field in $(cat /proc/cmdline); do | |
| if [[ "${field}" = root=* ]]; then | |
| UUID=$(echo $field | awk -F= '{print $3}') | |
| break | |
| fi | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #CAPTURE NEW: rails db:restore_from_production\[capture\] | |
| #DOWNLOAD LATEST: rails db:restore_from_production\[download\] | |
| #RESTORE: rails db:restore_from_production | |
| #[HEROKU_APP_NAME] = Name of your heroku app. | |
| #[NUMBER_OF_CORES] = Number of concurrent jobs to run for pg_restore. | |
| namespace :db do | |
| desc 'Pull down the latest backup from Heroku and rebuild your local database with it.' | |
| task :restore_from_production, [:process] => :environment do |task, args| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Think of this "main.js" file as your application bootstrap. | |
| */ | |
| import Vue from 'vue' | |
| import Resource from 'vue-resource' | |
| import VueRouter from 'vue-router' | |
| import routes from './routes' | |
| import middleware from './middleware' |