Skip to content

Commit 58eed82

Browse files
authored
Merge pull request #1256 from charles-langley/patch-1
Update digitalocean-app-platform.md
2 parents 646cb1f + 1fdb6e4 commit 58eed82

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides/digitalocean-app-platform.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ export default ({ env }) => ({
299299
user,
300300
password,
301301
ssl: {
302-
rejectUnauthorized: false,
302+
ca: env('DATABASE_CA'),
303303
},
304304
},
305305
debug: false,
@@ -330,6 +330,14 @@ After creating the managed database, navigate to the application page:
330330
3. Use the picklist to select the previously created database.
331331
4. Click **Attach Database**.
332332
333+
### Configure environment variables for production-ready managed database
334+
Remove the previously added 'DATABASE_*' global variables added for connecting to the dev database, then set the following environment variables, inserting your database name (e.g. `db-postgresql-nyc3-1234`) in place of `dbClusterName`:
335+
336+
| Variable name | Value |
337+
|---------------------|--------------------------------|
338+
| `DATABASE_URL` | `${dbClusterName.DATABASE_URL}`|
339+
| `DATABASE_CA` | `${dbClusterName.CA_CERT}` |
340+
333341
After attaching the database, DigitalOcean will attempt to auto-deploy the application. If the deployment is successful a link to the application will be provided at the top of the application page.
334342
335343
::: caution

0 commit comments

Comments
 (0)