Skip to content

clowder/heroku-buildpack-cloud-sql-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku buildpack for Google Cloud SQL Auth proxy

Install

Assumes you have a database and service account with appropriate permissions created.

  1. Add this buildpack to the build stack.
    $ heroku buildpacks:add --index https://github.com/clowder/heroku-buildpack-cloud-sql-proxy.git
  2. Set an environment variable containing you're service accounts JSON access key.
    heroku config:set GCLOUD_CREDS="$(cat <PATH_TO_KEY_JSON>)"
  3. Set an environment variable containing the connection name of the instance you're connecting to.
    heroku config:set GCLOUD_SQL_INSTANCE=<INSTANCE_CONNECTION_NAME>
  4. Update your Procfile to launch you're web process via the wrapper script.
    web: start-cloud-sql-proxy bin/rails server -p ${PORT:-5000} -e $RAILS_ENV

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published