scripts/resque.rb in standup-0.3.29 vs scripts/resque.rb in standup-0.3.30
- old
+ new
@@ -1,12 +1,15 @@
Standup.script :node do
def run
scripts.redis.install_from_resque if sudo('find /etc/init.d/redis-server').match(/No such file or directory/).present?
path_to_resque_exec = "#{scripts.webapp.app_path}/script/resque"
- upload script_file('resque'),
- :to => path_to_resque_exec,
- :sudo => true
+ with_processed_file script_file('resque') do |file|
+ upload file,
+ :to => path_to_resque_exec,
+ :sudo => true
+ end
+
sudo "chown www-data:www-data #{path_to_resque_exec}"
sudo "chmod +x #{path_to_resque_exec}"
sudo "mkdir #{scripts.webapp.app_path}/tmp/pids"
sudo "chown www-data:www-data #{scripts.webapp.app_path}/tmp/pids"
\ No newline at end of file