(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{381:function(t,a,s){"use strict";s.r(a);var e=s(13),r=Object(e.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"installing-manually"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#installing-manually"}},[t._v("#")]),t._v(" Installing Manually")]),t._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Automation")]),t._v(" "),a("p",[t._v("We've created a little CLI tool you can run that does this process automatically. For more info, check the doc on\n"),a("RouterLink",{attrs:{to:"/self-hosted/installation/cli/"}},[t._v("installing through the CLI")]),t._v(".")],1)]),t._v(" "),a("h2",{attrs:{id:"_1-setup-a-project-folder"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_1-setup-a-project-folder"}},[t._v("#")]),t._v(" 1. Setup a Project Folder")]),t._v(" "),a("p",[t._v("Create a new directory, and add a "),a("code",[t._v("package.json")]),t._v(" by running the following command.")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" init -y\n")])])]),a("p",[t._v("We recommend aliasing the "),a("code",[t._v("start")]),t._v(" script to Directus' start for easier deployments to services like\n"),a("RouterLink",{attrs:{to:"/self-hosted/installation/aws/"}},[t._v("AWS")]),t._v(", "),a("a",{attrs:{href:"/self-hosted/installation/gcp"}},[t._v("Google Cloud Platform")]),t._v(" or\n"),a("RouterLink",{attrs:{to:"/self-hosted/installation/digitalocean-app-platform/"}},[t._v("DigitalOcean App Platform")]),t._v(".")],1),t._v(" "),a("div",{staticClass:"language-json extra-class"},[a("pre",{pre:!0,attrs:{class:"language-json"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t...\n\t"),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"scripts"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t\t"),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"start"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"directus start"')]),t._v("\n\t"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\t...\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"_2-install-directus"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_2-install-directus"}},[t._v("#")]),t._v(" 2. Install Directus")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" directus\n")])])]),a("h2",{attrs:{id:"_3-setup-a-configuration-file"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_3-setup-a-configuration-file"}},[t._v("#")]),t._v(" 3. Setup a Configuration File")]),t._v(" "),a("p",[t._v("Finally, you'll need to setup your "),a("code",[t._v(".env")]),t._v(" file, or configure the environment variables through other means, such as\nDocker, etc.")]),t._v(" "),a("p",[a("strong",[t._v("Don't forget to fill your database information before continuing to next step")])]),t._v(" "),a("p",[t._v("See "),a("RouterLink",{attrs:{to:"/self-hosted/config-options/#general"}},[t._v("Environment Variables")]),t._v(" for all available variables.")],1),t._v(" "),a("h2",{attrs:{id:"_4-bootstrap-it"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_4-bootstrap-it"}},[t._v("#")]),t._v(" 4. Bootstrap It")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[t._v("npx directus bootstrap\n")])])]),a("h2",{attrs:{id:"_5-start-server"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_5-start-server"}},[t._v("#")]),t._v(" 5. Start Server")]),t._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" run start\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]);