Deploy Rails to Heroku with action text and google cloud storage
Written by Lukas
To make gcs work with action text on Heroku you need to follow a couple of steps
- Setup gcs like described on Ruby on Rails guides make sure you provide a hash as a keyfile wont work
- Setup the CORS policy like described here this can be done using the following command
gsutil cors set cors.json gs://bucket-name
- Don't forget to set RAILS_MASTER_KEY as environment variable on Heroku
Migrate the database with bin/rails db:migrate