mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 16:15:56 +08:00
doc: fix better doc for api develop, droping dead hint (#10906)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
af53e2b6b0
commit
ec9f6220c9
@ -18,12 +18,17 @@
|
|||||||
```
|
```
|
||||||
|
|
||||||
2. Copy `.env.example` to `.env`
|
2. Copy `.env.example` to `.env`
|
||||||
|
|
||||||
|
```cli
|
||||||
|
cp .env.example .env
|
||||||
|
```
|
||||||
3. Generate a `SECRET_KEY` in the `.env` file.
|
3. Generate a `SECRET_KEY` in the `.env` file.
|
||||||
|
|
||||||
|
bash for Linux
|
||||||
```bash for Linux
|
```bash for Linux
|
||||||
sed -i "/^SECRET_KEY=/c\SECRET_KEY=$(openssl rand -base64 42)" .env
|
sed -i "/^SECRET_KEY=/c\SECRET_KEY=$(openssl rand -base64 42)" .env
|
||||||
```
|
```
|
||||||
|
bash for Mac
|
||||||
```bash for Mac
|
```bash for Mac
|
||||||
secret_key=$(openssl rand -base64 42)
|
secret_key=$(openssl rand -base64 42)
|
||||||
sed -i '' "/^SECRET_KEY=/c\\
|
sed -i '' "/^SECRET_KEY=/c\\
|
||||||
@ -41,14 +46,6 @@
|
|||||||
poetry install
|
poetry install
|
||||||
```
|
```
|
||||||
|
|
||||||
In case of contributors missing to update dependencies for `pyproject.toml`, you can perform the following shell instead.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
poetry shell # activate current environment
|
|
||||||
poetry add $(cat requirements.txt) # install dependencies of production and update pyproject.toml
|
|
||||||
poetry add $(cat requirements-dev.txt) --group dev # install dependencies of development and update pyproject.toml
|
|
||||||
```
|
|
||||||
|
|
||||||
6. Run migrate
|
6. Run migrate
|
||||||
|
|
||||||
Before the first launch, migrate the database to the latest version.
|
Before the first launch, migrate the database to the latest version.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user