mirror of
https://github.com/directus/directus.git
synced 2026-02-01 07:24:57 -05:00
* Added missing data field to sessions yaml * rebased sessions.yaml * Initial commit * Initial complete guide * Added LOGGER_LEVELS addition * Removed redundant VPC cost aspect * Added login details after deployment * Minor textual changes * Made requested changes by @azrikahar * Changed github repo link from keesvanbemmel to gcp-example in community * Added Run on Google Cloud button to readme.
47 lines
1.2 KiB
Markdown
47 lines
1.2 KiB
Markdown
# Installing Manually
|
|
|
|
::: tip Automation
|
|
|
|
We've created a little CLI tool you can run that does this process automatically. For more info, check the doc on
|
|
[installing through the CLI](/getting-started/installation/cli/).
|
|
|
|
:::
|
|
|
|
## 1. Setup a Project Folder
|
|
|
|
Create a new directory, and add a `package.json` by running the following command.
|
|
|
|
```bash
|
|
npm init -y
|
|
```
|
|
|
|
We recommend aliasing the `start` script to Directus' start for easier deployments to services like
|
|
[AWS](/getting-started/installation/aws/), [Google Cloud Platform](/getting-started/installation/gcp) or
|
|
[DigitalOcean App Platform](/getting-started/installation/digitalocean-app-platform/).
|
|
|
|
```json
|
|
{
|
|
...
|
|
"scripts": {
|
|
"start": "directus start"
|
|
}
|
|
...
|
|
}
|
|
```
|
|
|
|
## 2. Install Directus
|
|
|
|
```bash
|
|
npm install directus
|
|
```
|
|
|
|
## 3. Setup a Configuration File
|
|
|
|
Finally, you'll need to setup your `.env` file, or configure the environment variables through other means, such as
|
|
Docker, etc.
|
|
|
|
You can use a copy of [the `example.env` file](https://github.com/directus/directus/blob/main/api/example.env) as a
|
|
starting point.
|
|
|
|
See [Environment Variables](/configuration/config-options/#general) for all available variables.
|