Skip to content

Commit 2d48bc5

Browse files
committed
asset_host
1 parent 717327b commit 2d48bc5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/tasks/eb_fast_deploy.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ def set_vars
175175
puts "(Warning) ruby_container_options doesn't exists"
176176
end
177177

178+
@asset_host = ENV['ASSET_HOST']
179+
180+
puts "------------- ENV['ASSET_HOST']: #{ENV['ASSET_HOST']} ---------------"
181+
178182
@rds_network_options_path = Rails.root.to_s+"/config/eb_environments/#{ENV['ENVIRONMENT']}/rds_network_options"
179183
if File.exists?(@env_file_path)
180184
@rds_network_options = Dotenv::Environment.new(@rds_network_options_path);
@@ -222,6 +226,7 @@ def print_env
222226
puts "@deploy_tmp_dir: #{@deploy_tmp_dir}"
223227
puts "@deploy_zip_filename: #{@deploy_zip_filename}"
224228
puts "@deploy_zip_file_path: #{@deploy_zip_file_path}"
229+
puts "@asset_host: #{@asset_host}"
225230

226231
puts "--------------- RDS AND NETWORK --------------\n"
227232
rds_network_options
@@ -250,7 +255,7 @@ def print_env
250255
task :assets do
251256
set_vars
252257

253-
do_cmd "rake assets:precompile"
258+
do_cmd "rake assets:precompile ASSET_HOST=#{@asset_host}"
254259
end
255260

256261
desc "bundle pack"

0 commit comments

Comments
 (0)