Method: Jets::Builders::CodeBuilder#store_s3_base_url
- Defined in:
- lib/jets/builders/code_builder.rb
#store_s3_base_url ⇒ Object
Store s3 base url is needed for asset serving from s3 later. Need to package this as part of the code so we have a reference to it. At this point the minimal stack exists, so we can grab it with the AWS API. We do not want to grab this as part of the live request because it is slow.
159 160 161 162 |
# File 'lib/jets/builders/code_builder.rb', line 159 def store_s3_base_url write_s3_base_url("#{stage_area}/code/config/s3_base_url.txt") write_s3_base_url("#{stage_area}/rack/config/s3_base_url.txt") if Jets.rack? end |