Commit 409a0b97 by Tan Phat Nguyen

staging deploy

parent 01738ca8
...@@ -9,7 +9,7 @@ default: &default ...@@ -9,7 +9,7 @@ default: &default
adapter: mysql2 adapter: mysql2
pool: 5 pool: 5
username: root username: root
password: 123456 password: root
socket: /var/run/mysqld/mysqld.sock socket: /var/run/mysqld/mysqld.sock
development: development:
<<: *default <<: *default
...@@ -19,9 +19,9 @@ development: ...@@ -19,9 +19,9 @@ development:
# Warning: The database defined as "test" will be erased and # Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake". # re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production. # Do not set this db to the same as development or production.
#test: test:
# <<: *default <<: *default
# database: db/test.sqlite3 database: shop_staging_phatnt
production: production:
<<: *default <<: *default
......
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
# 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{deploy@example.com} role :app, %w{192.168.1.204}
role :web, %w{deploy@example.com} # role :app, %w{128.199.154.62}
role :db, %w{deploy@example.com} # role :web, %w{deploy@example.com}
# role :db, %w{deploy@example.com}
# Extended Server Syntax # Extended Server Syntax
...@@ -15,7 +16,7 @@ role :db, %w{deploy@example.com} ...@@ -15,7 +16,7 @@ role :db, %w{deploy@example.com}
# server list. The second argument is a, or duck-types, Hash and is # server list. The second argument is a, or duck-types, Hash and is
# used to set extended properties on the server. # 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 # Custom SSH Options
...@@ -31,6 +32,11 @@ server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value ...@@ -31,6 +32,11 @@ server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value
# auth_methods: %w(password) # auth_methods: %w(password)
# } # }
# #
set :ssh_options, {
user: 'ventura'
# user: 'deployer'
}
# And/or per server (overrides global) # And/or per server (overrides global)
# ------------------------------------ # ------------------------------------
# server 'example.com', # 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