From a0c4c4881d47c815cd1e0e7fdbc4e6c57810677a Mon Sep 17 00:00:00 2001 From: jomo Date: Tue, 24 Jun 2014 23:09:08 +0200 Subject: [PATCH] don't use sudo --- Gemfile.lock | 3 --- config/deploy.rb | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index b315e84..b86c372 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/config/deploy.rb b/config/deploy.rb index b459103..17b2fca 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -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}."