Commit 409a0b97 by Tan Phat Nguyen

staging deploy

parent 01738ca8
......@@ -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
......
......@@ -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',
......
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