(window.webpackJsonp=window.webpackJsonp||[]).push([[101],{371:function(e,a,t){"use strict";t.r(a);var n=t(13),r=Object(n.a)({},(function(){var e=this,a=e._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"digitalocean-app-platform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#digitalocean-app-platform"}},[e._v("#")]),e._v(" DigitalOcean App Platform")]),e._v(" "),a("h2",{attrs:{id:"_1-setup-a-repo-on-github"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_1-setup-a-repo-on-github"}},[e._v("#")]),e._v(" 1. Setup a repo on GitHub")]),e._v(" "),a("p",[e._v("See the doc on "),a("RouterLink",{attrs:{to:"/self-hosted/installation/manual/"}},[e._v("installing Directus manually")]),e._v(" to learn how to configure this repo.")],1),e._v(" "),a("h2",{attrs:{id:"_2-sign-up-for-a-digitalocean-account"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_2-sign-up-for-a-digitalocean-account"}},[e._v("#")]),e._v(" 2. Sign up for a DigitalOcean account")]),e._v(" "),a("p",[e._v("Create your DigitalOcean account — "),a("a",{attrs:{href:"https://m.do.co/c/4c0b6062c16e",target:"_blank",rel:"noopener noreferrer"}},[e._v("get $100 of free credit"),a("OutboundLink")],1),e._v(" by using our referral link.")]),e._v(" "),a("h2",{attrs:{id:"_3-create-a-managed-database-instance"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_3-create-a-managed-database-instance"}},[e._v("#")]),e._v(" 3. Create a Managed Database instance")]),e._v(" "),a("p",[e._v("The exact size and need for a replica depends on your usage and project requirements. We recommend using the latest\nversion of Postgres. DigitalOcean's MySQL offering isn't supported at this time. Please see\nhttps://github.com/knex/knex/issues/4141 for more information.")]),e._v(" "),a("h2",{attrs:{id:"_4-create-a-new-app-using-your-previously-created-repo"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_4-create-a-new-app-using-your-previously-created-repo"}},[e._v("#")]),e._v(" 4. Create a new App using your previously created repo")]),e._v(" "),a("p",[e._v("Make sure to select the database you created in step 2 during the configuration wizard.")]),e._v(" "),a("h2",{attrs:{id:"_5-setup-the-build-step"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_5-setup-the-build-step"}},[e._v("#")]),e._v(" 5. Setup the build-step")]),e._v(" "),a("p",[e._v("While Directus itself doesn't have to be built from source in order to use it on App Platform, we do recommend adding\n"),a("code",[e._v("npx directus bootstrap")]),e._v(' as the "build" step for DigitalOcean. This will automatically provision the database if it\'s\nempty, and migrate it to the latest version in case of upgrades. See\n'),a("RouterLink",{attrs:{to:"/self-hosted/installation/cli/"}},[e._v("Command Line Interface")]),e._v(" for more information.")],1),e._v(" "),a("h2",{attrs:{id:"_6-configure-the-environment-variables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_6-configure-the-environment-variables"}},[e._v("#")]),e._v(" 6. Configure the environment variables")]),e._v(" "),a("p",[e._v("See "),a("RouterLink",{attrs:{to:"/self-hosted/config-options/#general"}},[e._v("Environment Variables")]),e._v(" for all available environment variables.")],1),e._v(" "),a("p",[e._v("DigitalOcean requires you to use SSL connections to managed databases. DigitalOcean provides a bunch of aliases to often\nused database properties that can be injected when the database is a component of your app. To enable SSL connections,\nset the following environment variables:")]),e._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[e._v("DB_SSL__REJECT_UNAUTHORIZED=true\nDB_SSL__CA=${my-database-component-name.CA_CERT}\n")])])]),a("div",{staticClass:"custom-block warning"},[a("p",{staticClass:"custom-block-title"},[e._v("WARNING")]),e._v(" "),a("p",[e._v("Make sure to replace "),a("code",[e._v("my-database-component-name")]),e._v(" with your actual database component name in the above env vars")])])])}),[],!1,null,null,null);a.default=r.exports}}]);