New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes made to frontend not showing up when app run locally using Docker #3986
Comments
To address the issue of frontend changes not reflecting when running your app locally with Docker, follow these steps:
By following these steps, you should be able to resolve the encountered errors and ensure that frontend changes are correctly reflected. If issues persist, ensure all steps are correctly followed and consider enabling script debugging in
|
Hey @aymanzbaig, Do you want to develop the front end locally? The following method may help you If you need to start the front end separately, you can make some modifications to the docker-compose.yml file, uncomment these two lines. dify/docker/docker-compose.yaml Lines 165 to 166 in 2fdd64c
If you do not want to expose this port, you need to configure the environment variables of the front-end development environment so that the front-end can access it through the port exposed by Nginx. dify/docker/docker-compose.yaml Lines 379 to 391 in 2fdd64c
And then run To save resources, you can delete this. This will not start the front-end production environment. dify/docker/docker-compose.yaml Lines 267 to 283 in 2fdd64c
|
Self Checks
Dify version
0.6.5
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Git clone cd docker docker compose up -d
changes to the frontend doesn’t reflect
so we tried running the frontend seperately
cd web && docker build . -t dify-web
docker run -it -p 3000:3000 -e CONSOLE_URL=http://127.0.0.1:5001/ -e APP_URL=http://127.0.0.1:5001/ dify-web
not foundt.sh: line 2:
: not foundt.sh: line 3:
: not foundt.sh: line 4:
: not foundt.sh: line 8:
: not foundt.sh: line 11:
: not foundt.sh: line 12:
./entrypoint.sh: set: line 13: illegal option
✔️ Expected Behavior
Changes in css , icons showing up when the app is run.
❌ Actual Behavior
Changes made to the front end not reflected when app is composed and run. Started the app using docker compose up -d. Any changes to source code not reflected . Ran the frontend container seperately. This error follows after following the dify doc instructions(https://docs.dify.ai/getting-started/install-self-hosted/start-the-frontend-docker-container) for running the frontend seperately.
: not foundt.sh: line 2:
: not foundt.sh: line 3:
: not foundt.sh: line 4:
: not foundt.sh: line 8:
: not foundt.sh: line 11:
: not foundt.sh: line 12:
./entrypoint.sh: set: line 13: illegal option -
The text was updated successfully, but these errors were encountered: