Sha256: 39fe9adc516ed1ddfec9e9a9c62cbe71eee986955eb97b00decc02e9b5cb37ce
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 Bytes
Contents
Standup.script :node do self.description = 'Update working application' def run in_dir '/opt/webapp' do sudo 'chown -R ubuntu:ubuntu /opt/webapp' exec 'git pull' sudo 'bundle install' sudo "RAILS_ENV=#{scripts.webapp.params.rails_env} rake db:migrate" sudo 'mkdir -p tmp' sudo 'chown -R nobody:nogroup /opt/webapp' sudo 'touch tmp/restart.txt' scripts.delayed_job.restart if scripts.setup.has_script? 'delayed_job' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
standup-0.3.7 | scripts/update.rb |
standup-0.3.6 | scripts/update.rb |
standup-0.3.5 | scripts/update.rb |
standup-0.3.4 | scripts/update.rb |