mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
Update HD_DATABASE_*
Fix leftovers from #2278 cd5256da7f
Signed-off-by: Tamotsu Takahashi <ttakah+github@gmail.com>
This commit is contained in:
parent
4ef1ffb312
commit
af0b34efa1
3 changed files with 5 additions and 5 deletions
|
@ -5,5 +5,5 @@
|
||||||
HD_DOMAIN="http://localhost"
|
HD_DOMAIN="http://localhost"
|
||||||
HD_MEDIA_BACKEND="filesystem"
|
HD_MEDIA_BACKEND="filesystem"
|
||||||
HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH="uploads/"
|
HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH="uploads/"
|
||||||
HD_DATABASE_DIALECT="sqlite"
|
HD_DATABASE_TYPE="sqlite"
|
||||||
HD_DATABASE_STORAGE="./hedgedoc.sqlite"
|
HD_DATABASE_NAME="./hedgedoc.sqlite"
|
||||||
|
|
|
@ -21,7 +21,7 @@ To build a production image, run the following command *from the root of the rep
|
||||||
When you run the image, you need to provide environment variables to configure HedgeDoc.
|
When you run the image, you need to provide environment variables to configure HedgeDoc.
|
||||||
See [the config docs](../docs/content/config/index.md) for more information.
|
See [the config docs](../docs/content/config/index.md) for more information.
|
||||||
This example starts HedgeDoc on localhost, with non-persistent storage:
|
This example starts HedgeDoc on localhost, with non-persistent storage:
|
||||||
`docker run -e HD_DOMAIN=http://localhost -e HD_MEDIA_BACKEND=filesystem -e HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH=uploads -e HD_DATABASE_DIALECT=sqlite -e HD_DATABASE_STORAGE=hedgedoc.sqlite -e HD_SESSION_SECRET=foobar -e HD_LOGLEVEL=debug -p 3000:3000 hedgedoc-prod`
|
`docker run -e HD_DOMAIN=http://localhost -e HD_MEDIA_BACKEND=filesystem -e HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH=uploads -e HD_DATABASE_TYPE=sqlite -e HD_DATABASE_NAME=hedgedoc.sqlite -e HD_SESSION_SECRET=foobar -e HD_LOGLEVEL=debug -p 3000:3000 hedgedoc-prod`
|
||||||
|
|
||||||
|
|
||||||
## Build a development image
|
## Build a development image
|
||||||
|
|
|
@ -8,8 +8,8 @@ The `.env` file should be placed in the root of the project and contains key-val
|
||||||
HD_DOMAIN="http://localhost"
|
HD_DOMAIN="http://localhost"
|
||||||
HD_MEDIA_BACKEND="filesystem"
|
HD_MEDIA_BACKEND="filesystem"
|
||||||
HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH="uploads/"
|
HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH="uploads/"
|
||||||
HD_DATABASE_DIALECT="sqlite"
|
HD_DATABASE_TYPE="sqlite"
|
||||||
HD_DATABASE_STORAGE="./hedgedoc.sqlite"
|
HD_DATABASE_NAME="./hedgedoc.sqlite"
|
||||||
```
|
```
|
||||||
|
|
||||||
We also provide an `.env.example` file containing a minimal configuration in the root of the project. This should help you to write your own configuration.
|
We also provide an `.env.example` file containing a minimal configuration in the root of the project. This should help you to write your own configuration.
|
||||||
|
|
Loading…
Reference in a new issue