|
@@ -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.
|
|
|
|
|
|
-### 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 on server
|
|
|
First, build the app for production:
|