Merge branch 'develop' into staging
This commit is contained in:
commit
11f1c68116
4 changed files with 17 additions and 4 deletions
|
@ -19,7 +19,11 @@ class CerfaUploader < CarrierWave::Uploader::Base
|
|||
end
|
||||
|
||||
def cache_dir
|
||||
'/tmp/tps-cache'
|
||||
if Rails.env.production?
|
||||
'/tmp/tps-cache'
|
||||
else
|
||||
'/tmp/tps-dev-cache'
|
||||
end
|
||||
end
|
||||
|
||||
# Add a white list of extensions which are allowed to be uploaded.
|
||||
|
|
|
@ -19,7 +19,11 @@ class PieceJustificativeUploader < CarrierWave::Uploader::Base
|
|||
end
|
||||
|
||||
def cache_dir
|
||||
'/tmp/tps-cache'
|
||||
if Rails.env.production?
|
||||
'/tmp/tps-cache'
|
||||
else
|
||||
'/tmp/tps-dev-cache'
|
||||
end
|
||||
end
|
||||
|
||||
# Add a white list of extensions which are allowed to be uploaded.
|
||||
|
|
|
@ -22,7 +22,11 @@ class ProcedureLogoUploader < CarrierWave::Uploader::Base
|
|||
end
|
||||
|
||||
def cache_dir
|
||||
'/tmp/tps-cache'
|
||||
if Rails.env.production?
|
||||
'/tmp/tps-cache'
|
||||
else
|
||||
'/tmp/tps-dev-cache'
|
||||
end
|
||||
end
|
||||
|
||||
# Add a white list of extensions which are allowed to be uploaded.
|
||||
|
|
|
@ -63,6 +63,7 @@ set :shared_paths, [
|
|||
'public/system',
|
||||
'public/uploads',
|
||||
'config/database.yml',
|
||||
"config/fog_credentials.yml",
|
||||
'config/initializers/secret_token.rb',
|
||||
"config/environments/#{ENV['to']}.rb",
|
||||
"config/initializers/token.rb",
|
||||
|
@ -132,7 +133,7 @@ task :deploy => :environment do
|
|||
|
||||
to :launch do
|
||||
queue "/etc/init.d/#{user} upgrade "
|
||||
|
||||
|
||||
queue "cd #{deploy_to}/#{current_path}/"
|
||||
queue "bundle exec rake db:seed RAILS_ENV=#{rails_env}"
|
||||
queue %[echo "-----> Rake Seeding Completed."]
|
||||
|
|
Loading…
Reference in a new issue