Use different Gemfile.lock files for different branches:
- Symlink
Gemfile.branch1andGemfile.branch2toGemfile.all. - Use the
branch-bundlescript instead ofbundle.
| server { | |
| listen 80 default_server; | |
| server_name _; | |
| rewrite ^ https://$host$request_uri? permanent; | |
| } |
| LC_ALL=C ansible -i hosts -m shell -a 'aptitude update' all --sudo --ask-sudo-pass | |
| LC_ALL=C ansible -i hosts -m shell -a 'aptitude safe-upgrade -y -s' all | |
| LC_ALL=C ansible -i hosts -m shell -a 'DEBIAN_FRONTEND=noninteractive aptitude safe-upgrade -y' all --sudo --ask-sudo-pass |
| #!/usr/bin/env ruby | |
| require 'net/smtp' | |
| unless (2..3).include? ARGV.length | |
| puts 'Usage: mail.rb SUBJECT TO [FROM]' | |
| exit 1 | |
| end | |
| subject, to, from_ = ARGV |
| ruby -rbcrypt -e 'print "password> "; puts BCrypt::Password.create(readline.chomp)' |
| ssl_certificate /etc/felix/ssl/foo.bundle.crt; | |
| ssl_certificate_key /etc/felix/ssl/foo.key; | |
| ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"; | |
| ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
| ssl_prefer_server_ciphers on; | |
| ssl_session_cache shared:SSL:10m; | |
| ssl_session_timeout 5m; | |
| add_header Strict-Transport-Security 'max-age=31536000'; |
| # NAP { | |
| umask 0022 | |
| export PATH="/__nap/nap/bin:$PATH" NAPRC=/__nap/cfg/naprc | |
| # } NAP | |
| # FELIX { | |
| for _path in \ |
Use different Gemfile.lock files for different branches:
Gemfile.branch1 and Gemfile.branch2 to Gemfile.all.branch-bundle script instead of bundle.| # seed_dump + comfortable-mexican-sofa | |
| # $ cp .../cms_dump.rake lib/tasks/ | |
| # $ rake db:seed:dump:cms | |
| models = %w{ | |
| Cms::Block Cms::Layout Cms::Page Cms::Revision Cms::Site | |
| } | |
| namespace :db do | |
| namespace :seed do |
nap (remote)
nap stop APP
apps/APP (local)
git checkout stable
git push REMOTE stable
git branch -d master