Commit Graph

9 Commits

Author SHA1 Message Date
Neil Williams
2265908f20 upload_static_files_to_s3: Don't list the whole bucket to find changes.
The static files S3 bucket has been getting a lot larger recently,
between subreddit stylesheets being in there and the static file cleaner
being disabled due to a bug. This is causing the deploy process to take
upwards of 3 minutes just to determine that no files need to be uploaded
to the bucket.

As a short-term workaround, this changes the uploader to check each key
individually with an S3 HEAD request rather than listing the whole
bucket. This is slower than best case of listing the bucket, but is
significantly faster than the current condition (~25 second runtime
now).
2013-06-16 22:35:40 -07:00
Neil Williams
8af415476b Update and fix license headers for 2013.
Angst!
2013-03-19 20:03:40 -07:00
Neil Williams
e3952a5555 Add script for cleaning up the static files bucket on S3. 2012-11-08 15:04:25 -08:00
maxwellhansen
ca39abfa9b upload_static: Use dictionary comprehension for readability. 2012-08-13 10:21:37 -07:00
Neil Williams
914b949286 Update / add license headers.
I'm actually quite excited to do this.
2012-06-19 14:02:42 -07:00
Neil Williams
ab6be6c95f Make static file uploader use custom ini file for S3 credentials. 2012-04-17 16:00:55 -07:00
Neil Williams
10d19f3140 Make S3 uploader aware of bizarre .gzip extension. 2011-11-29 16:23:28 -08:00
Neil Williams
ab243a7bcd upload_static: Put the unmangled files on S3 as well. 2011-11-15 15:03:59 -08:00
Neil Williams
af61995c48 Add script for uploading static files to S3. 2011-11-14 20:45:01 -08:00