mirror of
https://github.com/zhigang1992/tsemple.git
synced 2026-01-12 22:53:00 +08:00
remove rvm deploy config
This commit is contained in:
10
Capfile
10
Capfile
@@ -3,13 +3,9 @@ require 'capistrano/setup'
|
||||
|
||||
# Includes default deployment tasks
|
||||
require 'capistrano/deploy'
|
||||
|
||||
unless ARGV.any? { |task| task =~ /provision/ }
|
||||
require 'capistrano/rvm'
|
||||
require 'capistrano/bundler'
|
||||
require 'capistrano/rails/assets'
|
||||
require 'capistrano/rails/migrations'
|
||||
end
|
||||
require 'capistrano/bundler'
|
||||
require 'capistrano/rails/assets'
|
||||
require 'capistrano/rails/migrations'
|
||||
|
||||
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
|
||||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
||||
|
||||
@@ -37,7 +37,7 @@ case "$1" in
|
||||
if test -s "$pidfile" && run "kill -0 `cat $pidfile`"; then
|
||||
echo "Worker `cat $pidfile` alread running"
|
||||
else
|
||||
run "cd $APP_ROOT; HOME=/home/$USER bundle exec rake environment resque:work QUEUE=$QUEUES PIDFILE=$pidfile TERM_CHILD=1 BACKGROUND=yes RAILS_ENV=production > /dev/null 2>&1"
|
||||
run "cd $APP_ROOT; bundle exec rake environment resque:work QUEUE=$QUEUES PIDFILE=$pidfile TERM_CHILD=1 BACKGROUND=yes RAILS_ENV=production > /dev/null 2>&1"
|
||||
echo "Start worker `cat $pidfile`"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user