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