Giter Club home page Giter Club logo

Comments (5)

dosubot avatar dosubot commented on May 29, 2024 2

🤖

Hey @ichengang, good to see you back! Hope everything else is going well.

Based on the context provided, it seems like there might be a discrepancy between the ports that your frontend and backend services are using.

The frontend service, as defined in the frontend/Dockerfile, is set to expose and use port 3000. This is indicated by the lines EXPOSE 3000 and ENV PORT 3000. This means that the application is listening for connections on port 3000, not port 5050.

On the other hand, your backend service, as defined in the backend/Dockerfile.dev, is set to expose and use port 5050. This is indicated by the line EXPOSE 5050 and the command CMD ["uvicorn", "main:app","--reload", "--host", "0.0.0.0", "--port", "5050", "--workers", "6"].

Furthermore, the .env.example file indicates that the Quivr application's frontend expects the backend service to be available at http://localhost:5050. This suggests that, at least for the local development environment, the backend service should be configured to listen on port 5050.

To resolve this issue, you might need to ensure that your frontend service is correctly configured to connect to your backend service's port. If you want to use port 5050 for your frontend service, you would need to change the lines in the frontend Dockerfile to EXPOSE 5050 and ENV PORT 5050 respectively. After making these changes, you would need to rebuild your Docker image and run it again.

Please let me know if this helps or if you need further assistance.

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

from quivr.

ichengang avatar ichengang commented on May 29, 2024

I think I don't want 5050 as the front end, 5050 is just a port of a certain management service to facilitate management through the web page.

But I have installed quivr many times, and every time the front-end page of port 3000 is messed up, and the login port inside cannot be used.

My steps are to pull the warehouse, modify OPENAPIKEY in the .env file, and then start it through docker compose. Later, the configuration of supabase was modified in this file. But there is still no effective change in this result, depending on

from quivr.

StanGirard avatar StanGirard commented on May 29, 2024

Hey my friend the frontend is on port 3000. If you have issues with it please change the variable from localhost to your IP in the .env file.

from quivr.

ichengang avatar ichengang commented on May 29, 2024

ok 我试一下

from quivr.

ichengang avatar ichengang commented on May 29, 2024

嘿,我的朋友,前端位于端口 3000 上。如果您遇到问题,请将 .env 文件中的变量从 localhost 更改为您的 IP。

I like you, you can see my problem at a glance

from quivr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.