Comments (6)
@Aptary Thanks for pointing out the problem. You are right: the s3_website push
command should not upload the s3_website.yml file.
When I forked s3_website
from jekyll-s3
, I forgot to take into account the fact that jekyll
copies all the files except the ones starting with an underscore into the site output directory.
Instead of renaming the s3_website.yml file, I propose that we never upload a file named s3_website.yml. The underscore naming convention is particular to jekyll
, and I would like to keep s3_website
clean of any particular static-website generator's conventions.
While waiting for this bug to be fixed, I recommend that you store your AWS credentials in environmental variables. I'm doing it like this: https://github.com/laurilehmijoki/lauri.lehmijoki.net/blob/master/s3_website.yml.
from s3_website.
Fixed in version 1.0.2. The commit is here: 6adbb5a.
I recommend all users of this gem to upgrade to that version.
from s3_website.
Please notice that you still have to delete the s3_website.yml file by hand. s3_website
will not delete the file, even though you would upgrade to version 1.0.2. However, as of that version, the command s3_website push
will no longer upload the file into S3.
from s3_website.
The version 1.0.2 reported Uploading 1 new file(s)
even though s3_website
did not upload anything. This was caused by me placing the blacklist logic, which excludes the s3_website.yml file, into a wrong place. This problem is fixed in the version 1.0.3.
from s3_website.
Warning: while this fixes the S3 upload, your s3_website.yml is still in version control, exposing AWS credentials. Using erb/environment tags in s3_website.yml is overwritten by the first s3_website cfg apply
. Bug or feature?
from s3_website.
If the cfg apply
command overwrites an existing s3_website.yml file, I'd consider it a bug.
from s3_website.
Related Issues (20)
- Private S3 bucket
- Configure custom response codes
- Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty HOT 4
- Compatibility with CloudFront "Origin Access Identity" usage?
- sun.security.validator.ValidatorException: PKIX path building failed HOT 1
- Support behind proxy HOT 1
- issues with deployment to us-east-2 region
- HTTP to HTTPS Redirection HOT 4
- cfg apply results in Aws::CloudFront::Errors::MalformedInput
- S3 listObjects is iterating through whole bucket
- Is it possible to redirect with query string
- Errors parsing ERB on s3_website push HOT 11
- Upload fail with accent characters HOT 1
- Exception in thread "main" java.lang.ExceptionInInitializerError HOT 6
- No redirects to configure for `bucket-name` bucket HOT 1
- Cant download
- Hugo Deploy: Migrating from S3 Website HOT 1
- Looking for new maintainers HOT 7
- Who's still using s3_website HOT 9
- unsupported Java version: 17 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3_website.