This Rails application is a content management system for image and video assets.
- bower
brew install node
npm install -g bower
bundle
bundle exec rake reset
Authentication uses Google OAUTH by default, authenticating with a google apps domain associated with the currently accessed domain.
During development, when a developer may potentially be away from the internet, they may manually log in using the developer OAUTH plugin, at https://archiver.dev/auth/developer.
- Log into AWS console
- Go to S3 service
- Create two buckets, altered to be an original name
- Check which region you pick for the bucket
######-uploads
######-originals
######-processed
- Consider adding a lifecycle rule to delete assets after a day or two
- Add the following CORS rule to the originals bucket
Note that if the file is not uploaded, there are multiple places this could have failed. If you get a failure in the CORS preflight, then there are at least two possibilities:
- utter failure - check the CORS permissions on the bucket
- 301 response - the bucket region does not match the region we are uploading to.
If there is a 403 response to the upload, then the permission on the IAM user are incorrect.