Простой, как двери, рецепт успеха:
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
desc "Run tasks in production enviroment."
task :production do # Production nodes role :app, "192.168.1.30" role :app, "192.168.2.30" role :db, "192.168.1.30", :primary => true end desc "Run tasks in staging enviroment." task :staging do # Staging nodes role :web, "192.168.1.60" role :app, "192.168.2.60" role :db, "192.168.1.60", :primary=>true end |
1
2 3 4 5 |
cap staging deploy:check
cap staging deploy # or cap production deploy:check cap production deploy |
http://www.pastbedti.me/2009/01/handling-a-staging-environment-with-capistrano-rails/
Комментариев нет:
Отправить комментарий