mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-07 22:45:23 +02:00
update development docs and default config
This commit is contained in:
parent
d8b03d387a
commit
35a0eea6af
2 changed files with 25 additions and 2 deletions
|
@ -26,3 +26,26 @@ touch app-config.local.yaml
|
|||
```shell
|
||||
yarn dev
|
||||
```
|
||||
|
||||
## Starting docs with MongoDB
|
||||
|
||||
### 1. Run MongoDB instance with docker-compose
|
||||
|
||||
```shell
|
||||
docker-compose up mongodb
|
||||
```
|
||||
|
||||
### 2. Setup MongoDB driver in app-config.local.yaml
|
||||
|
||||
```yaml
|
||||
database:
|
||||
driver: mongodb
|
||||
mongodb:
|
||||
uri: mongodb://localhost:27017/docs
|
||||
```
|
||||
|
||||
### 3. Run the application
|
||||
|
||||
```shell
|
||||
yarn dev
|
||||
```
|
||||
|
|
|
@ -27,5 +27,5 @@ database:
|
|||
driver: local # you can change database driver here. 'mongodb' or 'local'
|
||||
local:
|
||||
path: ./db
|
||||
mongodb:
|
||||
uri: mongodb://localhost:27017/docs1
|
||||
# mongodb:
|
||||
# uri: mongodb://localhost:27017/docs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue