nap (remote)
nap stop APP
apps/APP (local)
git checkout stable
git push REMOTE stable
git branch -d master
| socat -d -d -d TCP4-LISTEN:9999,fork,bind=localhost TCP4:192.168.1.222:27017 |
| L = -> console.log.apply console, arguments |
| rsync -a server:backups/ backups/foo/ | |
| rsync --server --sender -logDtpre.iLsf . backups/ |
| CFG = { | |
| test: {}, | |
| prod: {}, | |
| dev: { | |
| ... | |
| # smtp: { ... } | |
| } | |
| } |
nap (remote)
nap stop APP
apps/APP (local)
git checkout stable
git push REMOTE stable
git branch -d master
| # 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 |
Use different Gemfile.lock files for different branches:
Gemfile.branch1 and Gemfile.branch2 to Gemfile.all.branch-bundle script instead of bundle.| # NAP { | |
| umask 0022 | |
| export PATH="/__nap/nap/bin:$PATH" NAPRC=/__nap/cfg/naprc | |
| # } NAP | |
| # FELIX { | |
| for _path in \ |
| 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'; |
| ruby -rbcrypt -e 'print "password> "; puts BCrypt::Password.create(readline.chomp)' |