don't use sudo
This commit is contained in:
@@ -120,8 +120,6 @@ GEM
|
|||||||
rest-client (1.6.7)
|
rest-client (1.6.7)
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
ruby-graphviz (1.0.9)
|
ruby-graphviz (1.0.9)
|
||||||
rvm-capistrano (1.5.2)
|
|
||||||
capistrano (~> 2.15.4)
|
|
||||||
sanitize (2.1.0)
|
sanitize (2.1.0)
|
||||||
nokogiri (>= 1.4.4)
|
nokogiri (>= 1.4.4)
|
||||||
sass (3.2.19)
|
sass (3.2.19)
|
||||||
@@ -178,7 +176,6 @@ DEPENDENCIES
|
|||||||
rb-readline
|
rb-readline
|
||||||
redcarpet
|
redcarpet
|
||||||
rest-client
|
rest-client
|
||||||
rvm-capistrano
|
|
||||||
sanitize
|
sanitize
|
||||||
sass-rails
|
sass-rails
|
||||||
therubyracer
|
therubyracer
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ namespace :deploy do
|
|||||||
end
|
end
|
||||||
|
|
||||||
task :setup_config, roles: :app do
|
task :setup_config, roles: :app do
|
||||||
sudo "ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}"
|
"ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}"
|
||||||
sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
|
"ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
|
||||||
run "mkdir -p #{shared_path}/config"
|
run "mkdir -p #{shared_path}/config"
|
||||||
put File.read("config/database.example.yml"), "#{shared_path}/config/database.yml"
|
put File.read("config/database.example.yml"), "#{shared_path}/config/database.yml"
|
||||||
puts "Now edit the config files in #{shared_path}."
|
puts "Now edit the config files in #{shared_path}."
|
||||||
|
|||||||
Reference in New Issue
Block a user