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

fix Heroku env var instructions #280

Closed
wants to merge 1 commit into from

Conversation

philippbosch
Copy link

@philippbosch philippbosch commented Jul 19, 2019

The extra space character between FATHOM_SECRET and $(openssl …) broke the command because it set FATHOM SECRET to '' and interpreted the generated secret as the name of the next env var to set.

$ heroku config:set PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/app/bin \
  FATHOM_DATABASE_DRIVER=postgres \
  FATHOM_DATABASE_URL=$(heroku config:get DATABASE_URL) \
  FATHOM_DEBUG=true \
  FATHOM_SECRET= $(openssl rand -base64 32) \
  FATHOM_GZIP=true
Setting PATH, FATHOM_DATABASE_DRIVER, FATHOM_DATABASE_URL, FATHOM_DEBUG, FATHOM_SECRET, 0ACl9FJMKgllHAXZUUqmm7PQ3P92MuQlN6lt/5OLdkg, FATHOM_GZIP and restarting ⬢ my-app-name... !
 ▸    Name is invalid

(I'm not using the secret from this snippet anywhere)

@philippbosch
Copy link
Author

Oops. Duplicate of #279. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant