mirror of
https://github.com/zhigang1992/tsemple.git
synced 2026-05-01 22:14:49 +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
|
# Includes default deployment tasks
|
||||||
require 'capistrano/deploy'
|
require 'capistrano/deploy'
|
||||||
|
require 'capistrano/bundler'
|
||||||
unless ARGV.any? { |task| task =~ /provision/ }
|
require 'capistrano/rails/assets'
|
||||||
require 'capistrano/rvm'
|
require 'capistrano/rails/migrations'
|
||||||
require 'capistrano/bundler'
|
|
||||||
require 'capistrano/rails/assets'
|
|
||||||
require 'capistrano/rails/migrations'
|
|
||||||
end
|
|
||||||
|
|
||||||
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
|
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
|
||||||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
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
|
if test -s "$pidfile" && run "kill -0 `cat $pidfile`"; then
|
||||||
echo "Worker `cat $pidfile` alread running"
|
echo "Worker `cat $pidfile` alread running"
|
||||||
else
|
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`"
|
echo "Start worker `cat $pidfile`"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user