Skip to content

Set up directory listings for the distribution directory on s3 #20838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brson opened this issue Jan 9, 2015 · 2 comments
Closed

Set up directory listings for the distribution directory on s3 #20838

brson opened this issue Jan 9, 2015 · 2 comments

Comments

@brson
Copy link
Contributor

brson commented Jan 9, 2015

Add a cronjob invoking https://github.com/nagisa/s3-directory-listing/ to the build master.

@brson brson mentioned this issue Jan 9, 2015
65 tasks
@nagisa
Copy link
Member

nagisa commented Jan 9, 2015

I used following config to test and generate listing with links already pointing to publicly accessible uploads

[bucket]
# Must be specified:
name   = "static-rust-lang-org"
region = "us-west-1"
access_key = "" # Can alternatively be defined through AWS_ACCESS_KEY_ID environment
                # variable
secret_key = "" # Can alternatively be defined through AWS_SECRET_ACCESS_KEY
                # environment variable
prefix = "dist/"       # Only files with this prefix will be listed;
path_separator = "/"   # Specify, if anything other than / is used to denote path hierarchy.
                       # \ is common on windows for example;
base_url = "https://static.rust-lang.org" # Base URL for links. Example values
              # * `https://bucketname.s3.amazonaws.com`
              # * `https://static.example.com`.
              # Defaults to empty string and links will be relative rather
              # than absolute.
              # *DO NOT* add a trailing slash.

[output]
extra_head = ""                   # Extra HTML to be included into <head>.
list_zero_sized = false           # List files with 0 Size. Generally useless, since it also lists
                                  # directories… i think?

python3 generate.py && s3cmd sync ./out/dist/ s3://static-rust-lang-org/dist/ should be sufficient to also sync the listing to s3.

@brson
Copy link
Contributor Author

brson commented Jan 16, 2015

Done. Thanks @nagisa!

@brson brson closed this as completed Jan 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants