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
409a0b97
Commit
409a0b97
authored
Nov 26, 2014
by
Tan Phat Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
staging deploy
parent
01738ca8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
config/database.yml
+4
-4
config/deploy/staging.rb
+10
-4
No files found.
config/database.yml
View file @
409a0b97
...
...
@@ -9,7 +9,7 @@ default: &default
adapter
:
mysql2
pool
:
5
username
:
root
password
:
123456
password
:
root
socket
:
/var/run/mysqld/mysqld.sock
development
:
<<
:
*default
...
...
@@ -19,9 +19,9 @@ development:
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
#
test:
#
<<: *default
# database: db/test.sqlite3
test
:
<<
:
*default
database
:
shop_staging_phatnt
production
:
<<
:
*default
...
...
config/deploy/staging.rb
View file @
409a0b97
...
...
@@ -4,9 +4,10 @@
# 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{deploy@example.com}
role
:web
,
%w{deploy@example.com}
role
:db
,
%w{deploy@example.com}
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}
# Extended Server Syntax
...
...
@@ -15,7 +16,7 @@ role :db, %w{deploy@example.com}
# server list. The second argument is a, or duck-types, Hash and is
# used to set extended properties on the server.
server
'example.com'
,
user:
'deploy'
,
roles:
%w{web app}
,
my_property: :my_value
#
server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value
# Custom SSH Options
...
...
@@ -31,6 +32,11 @@ server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value
# auth_methods: %w(password)
# }
#
set
:ssh_options
,
{
user:
'ventura'
# user: 'deployer'
}
# And/or per server (overrides global)
# ------------------------------------
# server 'example.com',
...
...
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