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
| authorizedkeys: | |
| image: 'tutum/authorizedkeys:latest' | |
| autodestroy: always | |
| deployment_strategy: every_node | |
| environment: | |
| - 'AUTHORIZED_KEYS=ssh_keys_go_here | |
| tags: | |
| - estage_manager | |
| - staging | |
| volumes: |
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
| LOCAL_DOCKER_IP = 192.168.99.100 | |
| STAGING_IP = xx.xxx.xxx.xxx | |
| PRODUCTION_IP = xx.xxx.xxx.xxx | |
| STAGING_DB_ID = $(shell ssh [email protected] "docker ps | grep database" | awk '{print $$1}') | |
| PRODUCTION_DB_ID = $(shell ssh [email protected] "docker ps | grep database" | awk '{print $$1}') | |
| download_production_db: | |
| psql -h $(LOCAL_DOCKER_IP) -p 5432 -U postgres -c 'drop database estage_manager' | |
| psql -h $(LOCAL_DOCKER_IP) -p 5432 -U postgres -c 'create database estage_manager' |
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
| global !p | |
| import string, vim | |
| import textwrap | |
| _snips_fns = {} | |
| def py(*args): | |
| import re | |
| old_a = vim.eval('@a') |