Sha256: 4dfc1ad89271b1263f7f73654971eac358041b2b94d1a76a569c8473ac7fb8fa
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
Standup.script :node do def run scripts.redis.install_from_resque unless File.exists?("/etc/init.d/redis-server") path_to_resque_exec = "#{scripts.webapp.app_path}/script/resque" upload script_file('resque'), :to => path_to_resque_exec, :sudo => true 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" with_processed_file script_file('resque_monit.conf') do |file| scripts.monit.add_watch file end restart end def restart scripts.monit.restart_watch 'resque' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
standup-0.3.23 | scripts/resque.rb |