Change cache directory (opensimplf)
This commit is contained in:
parent
0599d7b148
commit
06df02f72b
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,11 @@ class PieceJustificativeUploader < CarrierWave::Uploader::Base
|
||||||
|
|
||||||
def cache_dir
|
def cache_dir
|
||||||
if Rails.env.production?
|
if Rails.env.production?
|
||||||
|
if Features.opensimplif?
|
||||||
|
'/tmp/opensimplif-cache'
|
||||||
|
else
|
||||||
'/tmp/tps-cache'
|
'/tmp/tps-cache'
|
||||||
|
end
|
||||||
else
|
else
|
||||||
'/tmp/tps-dev-cache'
|
'/tmp/tps-dev-cache'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue