Skip to content
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

Move over to the new S3 bucket #844

Merged
merged 17 commits into from Feb 1, 2020
Merged

Move over to the new S3 bucket #844

merged 17 commits into from Feb 1, 2020

Conversation

@paninee
Copy link
Collaborator

paninee commented Feb 1, 2020

These 2 scripts are for copying over the assets from existing S3 to the new one.

scripts/copy-optimize-images-to-new-bucket.js - Copy over the assets themselves. Resize, optimized and store them in the new bucket participedia.{{stage || prod}} according to process.env.AWS_S3_BUCKET environment variable.

scripts/points-url-data-to-new-bucket.js - Changes the stored URLs in the database from uploads.participedia.xyz to process.env.AWS_S3_BUCKET. This is to points the existing images data to the new bucket.

It also includes the code to make sure any new images are uploaded to the new bucket.

@ascott
ascott approved these changes Feb 1, 2020
@paninee paninee merged commit 1214da0 into master Feb 1, 2020
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.