Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venshop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tan Phat Nguyen
venshop
Commits
4319c682
Commit
4319c682
authored
Nov 26, 2014
by
Tan Phat Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy app
parent
da9fe189
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
16 deletions
+15
-16
Gemfile.lock
+5
-5
config/deploy.rb
+4
-4
config/deploy/production.rb
+4
-4
config/unicorn/production.rb
+2
-3
No files found.
Gemfile.lock
View file @
4319c682
...
...
@@ -37,7 +37,7 @@ GEM
thread_safe (~> 0.1)
tzinfo (~> 1.1)
ansi (1.4.3)
arel (6.0.0
.beta2
)
arel (6.0.0)
bcrypt (3.1.7)
bcrypt (3.1.7-x64-mingw32)
binding_of_caller (0.7.3.pre1)
...
...
@@ -153,7 +153,7 @@ GEM
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kgio (2.9.2)
listen (2.8.
0
)
listen (2.8.
2
)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
...
...
@@ -212,7 +212,7 @@ GEM
sprockets-rails (~> 3.0.0.beta1)
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.
4
)
rails-dom-testing (1.0.
5
)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
...
...
@@ -229,7 +229,7 @@ GEM
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
raindrops (0.13.0)
rake (10.
3.2
)
rake (10.
4.0
)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
...
...
@@ -240,7 +240,7 @@ GEM
rsolr (1.0.10)
builder (>= 2.1.2)
ruby-progressbar (1.7.0)
sass (3.4.
8
)
sass (3.4.
9
)
sass-rails (5.0.0.beta1)
railties (>= 4.0.0, < 5.0)
sass (~> 3.2)
...
...
config/deploy.rb
View file @
4319c682
...
...
@@ -2,16 +2,16 @@
lock
'3.2.1'
set
:application
,
'venshop'
#
set :repo_url, 'git@gitlab.zigexn.vn:phatnt/venshop.git'
set
:repo_url
,
'git@bitbucket.org:ntphat/demo.git'
set
:repo_url
,
'git@gitlab.zigexn.vn:phatnt/venshop.git'
#
set :repo_url, 'git@bitbucket.org:ntphat/demo.git'
set
:branch
,
'release'
# Default branch is :master
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
# Default deploy_to directory is /var/www/my_app
#
set :deploy_to, '/web/training/phatnt'
set
:deploy_to
,
'/home/deployer/phatnt'
set
:deploy_to
,
'/web/training/phatnt'
#
set :deploy_to, '/home/deployer/phatnt'
# Default value for :scm is :git
# set :scm, :git
...
...
config/deploy/production.rb
View file @
4319c682
...
...
@@ -4,8 +4,8 @@
# is considered to be the first unless any hosts have the primary
# property set. Don't declare `role :all`, it's a meta role.
#
role :app, %w{192.168.1.204}
role
:app
,
%w{128.199.154.62}
role
:app
,
%w{192.168.1.204}
#
role :app, %w{128.199.154.62}
# role :web, %w{deploy@example.com}
# role :db, %w{deploy@example.com}
...
...
@@ -33,8 +33,8 @@ role :app, %w{128.199.154.62}
# }
#
set
:ssh_options
,
{
#
user: 'ventura'
user:
'deployer'
user:
'ventura'
#
user: 'deployer'
}
# And/or per server (overrides global)
...
...
config/unicorn/production.rb
View file @
4319c682
app_path
=
'/
home/deployer
/phatnt'
app_path
=
'/
web/training
/phatnt'
working_directory
"
#{
app_path
}
/current"
pid
"
#{
app_path
}
/current/tmp/pids/unicorn.pid"
...
...
@@ -42,4 +42,4 @@ after_fork do |server, worker|
if
defined?
(
ActiveRecord
::
Base
)
ActiveRecord
::
Base
.
establish_connection
end
end
\ No newline at end of file
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment