Sha256: 97e73b15a7944860baa45b625ef206e1ce5831cf4bbece6f09c11494714cb6d0
Contents?: true
Size: 860 Bytes
Versions: 2
Compression:
Stored size: 860 Bytes
Contents
namespace :app do task :prepare do on roles :web do template 'app_init.sh', "/etc/init.d/#{fetch :application}" execute <<-EOBLOCK sudo thin config -C /etc/thin/#{fetch :application}.yml -c /var/www/#{fetch :application}/current -l log/thin.log -e #{fetch :stage} --servers 1 --port 3000 sudo chmod a+x /etc/init.d/#{fetch :application} sudo update-rc.d #{fetch :application} defaults sudo systemctl daemon-reload EOBLOCK end end task :db_prepare do invoke 'deploy:starting' invoke 'deploy:started' invoke 'deploy:updating' invoke 'bundler:install' if Rails.application.config.respond_to? :backup_repo invoke 'backup:restore' else invoke 'deploy:db_create' invoke 'deploy:migrate' invoke 'deploy:db_seed' end end task :test do end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prun-ops-0.2.1 | lib/capistrano/config/app.rake |
prun-ops-0.2.0 | lib/capistrano/config/app.rake |