-
Notifications
You must be signed in to change notification settings - Fork 321
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
Fixes Render.com integration #44
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,12 @@ databases: | |
user: hostedgpt | ||
plan: free | ||
|
||
envVarGroups: | ||
- name: generated-secrets | ||
envVars: | ||
- key: rails_master_key | ||
generateValue: true | ||
|
||
services: | ||
- type: worker | ||
name: soliqueue-worker | ||
|
@@ -16,10 +22,9 @@ services: | |
fromDatabase: | ||
name: hostedgpt | ||
property: connectionString | ||
- key: RAILS_MASTER_KEY | ||
- fromGroup: generated-secrets | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is cool! Can you please also update the README.md file to remove that step of copy/pasting the key? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call. I updated the instructions there a little. We should consider whether forking the repository is necessary for a render deploy -- if not, we can make the process even easier. |
||
- key: WEB_CONCURRENCY | ||
value: 2 # sensible default | ||
sync: false | ||
- type: web | ||
name: hostedgpt | ||
runtime: ruby | ||
|
@@ -32,7 +37,6 @@ services: | |
fromDatabase: | ||
name: hostedgpt | ||
property: connectionString | ||
- key: RAILS_MASTER_KEY | ||
sync: false | ||
- fromGroup: generated-secrets | ||
- key: WEB_CONCURRENCY | ||
value: 2 # sensible default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, interesting! @robacarp how does this make it so we don’t have to copy that master.key value?
My assumption was: the master.key value is important and the fix would involve telling the rails app to find the key within the master.key file, not within the ENV. But it seems like you’ve fixed it somehow by telling render to generate a new one? Is there a discrepancy between this newly generated value and the value already stored in master.key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@krschacht gooooooood question. You're making me question what I did here. I assumed that RAILS_MASTER_KEY was something like SECRET_KEY_BASE but with a new name. Perhaps it is the encryption key for a .env file or something? I didn't do enough research into what this does before suggesting that it could be a randomly generated string.
I'll do some research and get back to it.