mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 03:46:05 +08:00
Remove legacy docker startup docs in frontend (#1645)
This commit is contained in:
parent
53be4d2712
commit
454577c6b1
@ -53,12 +53,3 @@
|
|||||||
```
|
```
|
||||||
7. Setup your application by visiting http://localhost:5001/console/api/setup or other apis...
|
7. Setup your application by visiting http://localhost:5001/console/api/setup or other apis...
|
||||||
8. If you need to debug local async processing, you can run `celery -A app.celery worker -P gevent -c 1 --loglevel INFO -Q dataset,generation,mail`, celery can do dataset importing and other async tasks.
|
8. If you need to debug local async processing, you can run `celery -A app.celery worker -P gevent -c 1 --loglevel INFO -Q dataset,generation,mail`, celery can do dataset importing and other async tasks.
|
||||||
|
|
||||||
8. Start frontend
|
|
||||||
|
|
||||||
You can start the frontend by running `npm install && npm run dev` in web/ folder, or you can use docker to start the frontend, for example:
|
|
||||||
|
|
||||||
```
|
|
||||||
docker run -it -d --platform linux/amd64 -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0.1:5001 --name web-self-hosted langgenius/dify-web:latest
|
|
||||||
```
|
|
||||||
This will start a dify frontend, now you are all set, happy coding!
|
|
@ -44,23 +44,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
|
|||||||
|
|
||||||
You can start editing the file under folder `app`. The page auto-updates as you edit the file.
|
You can start editing the file under folder `app`. The page auto-updates as you edit the file.
|
||||||
|
|
||||||
### Run by Docker
|
|
||||||
First, Build the frontend image:
|
|
||||||
```bash
|
|
||||||
docker build . -t dify-web
|
|
||||||
```
|
|
||||||
|
|
||||||
Then, configure the environment variables.Use the same method mentioned in run by source code.
|
|
||||||
|
|
||||||
Finally, run the frontend service:
|
|
||||||
```bash
|
|
||||||
docker run -it -p 3000:3000 -e EDITION=SELF_HOSTED -e CONSOLE_URL=http://127.0.0.1:3000 -e APP_URL=http://127.0.0.1:3000 dify-web
|
|
||||||
```
|
|
||||||
|
|
||||||
When the console api domain and web app api domain are different, you can set the CONSOLE_URL and APP_URL separately.
|
|
||||||
|
|
||||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
|
||||||
|
|
||||||
## Deploy
|
## Deploy
|
||||||
### Deploy on server
|
### Deploy on server
|
||||||
First, build the app for production:
|
First, build the app for production:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user