GithubHelp home page GithubHelp logo

Comments (6)

laurilehmijoki avatar laurilehmijoki commented on June 15, 2024

@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.

laurilehmijoki avatar laurilehmijoki commented on June 15, 2024

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.

laurilehmijoki avatar laurilehmijoki commented on June 15, 2024

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.

laurilehmijoki avatar laurilehmijoki commented on June 15, 2024

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.

klausbadelt avatar klausbadelt commented on June 15, 2024

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.

laurilehmijoki avatar laurilehmijoki commented on June 15, 2024

If the cfg apply command overwrites an existing s3_website.yml file, I'd consider it a bug.

from s3_website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.