Commit 4319c682 by Tan Phat Nguyen

deploy app

parent da9fe189
...@@ -37,7 +37,7 @@ GEM ...@@ -37,7 +37,7 @@ GEM
thread_safe (~> 0.1) thread_safe (~> 0.1)
tzinfo (~> 1.1) tzinfo (~> 1.1)
ansi (1.4.3) ansi (1.4.3)
arel (6.0.0.beta2) arel (6.0.0)
bcrypt (3.1.7) bcrypt (3.1.7)
bcrypt (3.1.7-x64-mingw32) bcrypt (3.1.7-x64-mingw32)
binding_of_caller (0.7.3.pre1) binding_of_caller (0.7.3.pre1)
...@@ -153,7 +153,7 @@ GEM ...@@ -153,7 +153,7 @@ GEM
actionpack (>= 3.0.0) actionpack (>= 3.0.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
kgio (2.9.2) kgio (2.9.2)
listen (2.8.0) listen (2.8.2)
celluloid (>= 0.15.2) celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3) rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9) rb-inotify (>= 0.9)
...@@ -212,7 +212,7 @@ GEM ...@@ -212,7 +212,7 @@ GEM
sprockets-rails (~> 3.0.0.beta1) sprockets-rails (~> 3.0.0.beta1)
rails-deprecated_sanitizer (1.0.3) rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha) activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.4) rails-dom-testing (1.0.5)
activesupport (>= 4.2.0.beta, < 5.0) activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0) nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1) rails-deprecated_sanitizer (>= 1.0.1)
...@@ -229,7 +229,7 @@ GEM ...@@ -229,7 +229,7 @@ GEM
rake (>= 0.8.7) rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0) thor (>= 0.18.1, < 2.0)
raindrops (0.13.0) raindrops (0.13.0)
rake (10.3.2) rake (10.4.0)
rb-fsevent (0.9.4) rb-fsevent (0.9.4)
rb-inotify (0.9.5) rb-inotify (0.9.5)
ffi (>= 0.5.0) ffi (>= 0.5.0)
...@@ -240,7 +240,7 @@ GEM ...@@ -240,7 +240,7 @@ GEM
rsolr (1.0.10) rsolr (1.0.10)
builder (>= 2.1.2) builder (>= 2.1.2)
ruby-progressbar (1.7.0) ruby-progressbar (1.7.0)
sass (3.4.8) sass (3.4.9)
sass-rails (5.0.0.beta1) sass-rails (5.0.0.beta1)
railties (>= 4.0.0, < 5.0) railties (>= 4.0.0, < 5.0)
sass (~> 3.2) sass (~> 3.2)
......
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
lock '3.2.1' lock '3.2.1'
set :application, 'venshop' set :application, 'venshop'
# set :repo_url, 'git@gitlab.zigexn.vn:phatnt/venshop.git' set :repo_url, 'git@gitlab.zigexn.vn:phatnt/venshop.git'
set :repo_url, 'git@bitbucket.org:ntphat/demo.git' # set :repo_url, 'git@bitbucket.org:ntphat/demo.git'
set :branch, 'release' set :branch, 'release'
# Default branch is :master # Default branch is :master
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call # ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
# Default deploy_to directory is /var/www/my_app # Default deploy_to directory is /var/www/my_app
# set :deploy_to, '/web/training/phatnt' set :deploy_to, '/web/training/phatnt'
set :deploy_to, '/home/deployer/phatnt' # set :deploy_to, '/home/deployer/phatnt'
# Default value for :scm is :git # Default value for :scm is :git
# set :scm, :git # set :scm, :git
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
# is considered to be the first unless any hosts have the primary # is considered to be the first unless any hosts have the primary
# property set. Don't declare `role :all`, it's a meta role. # property set. Don't declare `role :all`, it's a meta role.
# role :app, %w{192.168.1.204} role :app, %w{192.168.1.204}
role :app, %w{128.199.154.62} # role :app, %w{128.199.154.62}
# role :web, %w{deploy@example.com} # role :web, %w{deploy@example.com}
# role :db, %w{deploy@example.com} # role :db, %w{deploy@example.com}
...@@ -33,8 +33,8 @@ role :app, %w{128.199.154.62} ...@@ -33,8 +33,8 @@ role :app, %w{128.199.154.62}
# } # }
# #
set :ssh_options, { set :ssh_options, {
# user: 'ventura' user: 'ventura'
user: 'deployer' # user: 'deployer'
} }
# And/or per server (overrides global) # And/or per server (overrides global)
......
app_path = '/home/deployer/phatnt' app_path = '/web/training/phatnt'
working_directory "#{app_path}/current" working_directory "#{app_path}/current"
pid "#{app_path}/current/tmp/pids/unicorn.pid" pid "#{app_path}/current/tmp/pids/unicorn.pid"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment