ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
16.26k stars 1.52k forks source link

How can I change the port for perplexica-frontend and perplexica-backend? #71

Closed wwjCMP closed 6 months ago

wwjCMP commented 6 months ago

I want to change their ports to 3010 and 3011 respectively, how should I do it? I have made changes to the corresponding parts of the docker-compose.yaml and config.toml files, but the web page still cannot be opened correctly.

wwjCMP commented 6 months ago

[GENERAL] PORT = 3011 # Port to run the server on SIMILARITY_MEASURE = "cosine" # "cosine" or "dot"

wwjCMP commented 6 months ago

services: searxng: build: context: . dockerfile: searxng.dockerfile expose:

networks: perplexica-network:

ItzCrazyKns commented 6 months ago

You need to rebuild the images, making sure the previous ones are deleted

wwjCMP commented 6 months ago

image

ItzCrazyKns commented 6 months ago

image

Don't edit the internal port, make it 3010:3000

wwjCMP commented 6 months ago

image

Don't edit the internal port, make it 3010:3000

image image

After the modification, I can load the chat model, but I cannot load the embedding model.

ItzCrazyKns commented 6 months ago

Open up the application tab (from the developer menu) and delete everything from the localStorage. The issue will be resolved. After doing that perform a hard refresh CTRL+SHIFT+R