File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 33
44 if Rails . env . development?
55 config . storage = :file
6- # if Rails.env.production?
7- # config.cache_dir = "#{Rails.root}/tmp/uploads"
8- # config.root = Rails.root.join('tmp')
9- # config.sftp_host = ENV['UPLOADER_ASSET_HOST']
10- # config.sftp_user = ENV['UPLOADER_USER']
11- # config.sftp_folder = ENV['UPLOADER_FOLDER']
12- # config.sftp_url = ENV['UPLOADER_URL']
13- # config.sftp_options = {
14- # password: ENV['UPLOADER_PASSW'],
15- # port: 22
16- # }
176 elsif Rails . env . production?
7+ config . cache_dir = "#{ Rails . root } /tmp/uploads"
8+ config . root = Rails . root . join ( 'tmp' )
9+ config . sftp_host = ENV [ 'UPLOADER_ASSET_HOST' ]
10+ config . sftp_user = ENV [ 'UPLOADER_USER' ]
11+ config . sftp_folder = ENV [ 'UPLOADER_FOLDER' ]
12+ config . sftp_url = ENV [ 'UPLOADER_URL' ]
13+ config . sftp_options = {
14+ password : ENV [ 'UPLOADER_PASSW' ] ,
15+ port : 22
16+ }
17+ elsif Rails . env . staging?
1818 config . storage = :aws
1919 config . aws_bucket = ENV . fetch ( 'S3_BUCKET_NAME' , 'codebar-logos' )
2020 config . aws_acl = 'public-read'
You can’t perform that action at this time.
0 commit comments