[ansible] added service role
This commit is contained in:
11
config/deploy/dev.rb
Normal file
11
config/deploy/dev.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
role :app, %w{localhost}
|
||||
role :web, %w{localhost}
|
||||
role :db, %w{localhost}
|
||||
|
||||
#set :user, ENV['USER']
|
||||
user = fetch(:user)
|
||||
|
||||
server 'localhost', ssh_options: { port: 22, user: user, forward_agent: true }
|
||||
|
||||
set :tmp_dir, "/home/#{user}/tmp"
|
||||
set :branch, 'master'
|
||||
Reference in New Issue
Block a user