Sha256: 4efa1a343e4f89ac6ac05971f0539dac1e94c723e7db99848a670fd20ed01eef

Contents?: true

Size: 485 Bytes

Versions: 6

Compression:

Stored size: 485 Bytes

Contents

Standup.script :node do
  self.description = 'Update working application'
  
  def run
    in_dir scripts.webapp.app_path do
      sudo 'chown -R ubuntu:ubuntu .'
      exec 'git pull'
      sudo 'bundle install'
      sudo "RAILS_ENV=#{scripts.webapp.params.rails_env} rake db:migrate"
      sudo 'mkdir -p tmp'
      sudo 'chown -R www-data:www-data .'
      sudo 'touch tmp/restart.txt'
      scripts.delayed_job.restart if scripts.setup.has_script? 'delayed_job'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
standup-0.3.15 scripts/update.rb
standup-0.3.14 scripts/update.rb
standup-0.3.13 scripts/update.rb
standup-0.3.12 scripts/update.rb
standup-0.3.11 scripts/update.rb
standup-0.3.10 scripts/update.rb