diff --git a/README.md b/README.md index 0420f3a75..c1e84bd93 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,13 @@ HostedGPT is an open source project that provides all the same baseline function 1. Click Fork > Create New Fork at the top of this repository 2. Create an account on Render.com and login -2. View your newly created fork within github.com and click the button below. +2. View your newly created fork within github.com and click the button below: [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy) -3. When you are taken to Render.com confirm that the title of the page says `You are deploying from a render.yaml file for _____` with your forked repo listed in the blank. -4. Provide a unique Blueprint name such as "hostedgpt-". -5. Copy value from the file `config/master.key` and paste it as the value for the RAILS_MASTER_KEY on the page. Then click "Apply". -6. Wait for the hostedgpt database and web service to be deployed. After they are, click "Dashboard" at the top of the Render screen. -7. You should see two "Service Names" called **hostedgpt**, click the one that is of type "Web Service" -8. On the details screen, click the URL that looks something like _hostedgpt-XXX.onrender.com_ +3. Find hostedgpt in the list of repositories and click **Connect** +5. Provide a unique Blueprint name such as "hostedgpt-". +6. Click **Apply** +7. Wait for the hostedgpt database and web service to be deployed. After they are, click "Dashboard" at the top of the Render screen. +8. You should see two "Service Names" called **hostedgpt**, click the one that is of type "Web Service" +9. On the details screen, click the URL that looks something like _hostedgpt-XXX.onrender.com_ diff --git a/render.yaml b/render.yaml index 50455b614..36d7b1d12 100644 --- a/render.yaml +++ b/render.yaml @@ -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 - 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