Deploy Rails to Heroku with action text and google cloud storage

Written by Lukas

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