Cap setup

This commit is contained in:
Ye Min
2017-12-27 13:11:05 +06:30
parent 0aba9e8d76
commit b2b05246d1
4 changed files with 73 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
set :stage, :production
set :server_name, "svr.sxrestaurant.host"
set :full_app_name, "#{fetch(:application)}_#{fetch(:stage)}"
server '192.168.1.27', user: 'deploy', roles: %w{web app db}, primary: true
set :deploy_to, "/home/#{fetch(:deploy_user)}/apps/#{fetch(:full_app_name)}"
set :rbenv_ruby, '2.4.0'
set :rails_env, :production