Fixed issue with map loading
This commit is contained in:
parent
8322dc3c22
commit
864f985d63
10
Rakefile
10
Rakefile
@ -92,13 +92,13 @@ end
|
||||
namespace :deployment do
|
||||
task pull: :environment do
|
||||
branch = Rails.env.production? ? :master : :development
|
||||
# `git reset --hard origin/#{branch}`
|
||||
# raise "\nPull failed" if $?.exitstatus > 0
|
||||
`git reset --hard origin/#{branch}`
|
||||
raise "\nPull failed" if $?.exitstatus > 0
|
||||
changed = !(`git pull` =~ /Already up to date/)
|
||||
# raise "\nPull failed" if $?.exitstatus > 0
|
||||
raise "\nPull failed" if $?.exitstatus > 0
|
||||
|
||||
`bundle install --no-deployment && bundle update bundle install --deployment`
|
||||
# raise "\nPull failed" if $?.exitstatus > 0
|
||||
raise "\nPull failed" if $?.exitstatus > 0
|
||||
end
|
||||
|
||||
task update: :environment do
|
||||
@ -112,7 +112,7 @@ namespace :deployment do
|
||||
]
|
||||
cmd = tasks.map { |t| "RAILS_ENV=#{Rails.env} bundle exec #{t}"}.join(' && ')
|
||||
`#{cmd}`
|
||||
# raise "\nUpdate failed" if $?.exitstatus > 0
|
||||
raise "\nUpdate failed" if $?.exitstatus > 0
|
||||
end
|
||||
|
||||
task bounce: :environment do
|
||||
|
Loading…
x
Reference in New Issue
Block a user