Skip to content
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

No api server? #119

Open
JohnnyDarks opened this issue Feb 9, 2024 · 3 comments
Open

No api server? #119

JohnnyDarks opened this issue Feb 9, 2024 · 3 comments

Comments

@JohnnyDarks
Copy link

Is it possible to build project with no api server at all? My current use case does not have a need for a api server.

@xemle
Copy link
Owner

xemle commented Feb 9, 2024

Hi @JohnnyDarks

you can disable the api server calls via the gallery.config.yml:

extractor:
  apiServer:
    disable:
      - similarDetection
      - objectDetection
      - faceDetection

@JohnnyDarks
Copy link
Author

OK, That is what I initially tried. Let me alter the question a bit. Is there anyway to build home-gallery without having to build api-server or download the dependence that solely depend on the api-server?

@xemle
Copy link
Owner

xemle commented Feb 10, 2024

If you mean how to build the gallery from source without the api-server to save disk space:

  • remove packages/api-server directory and
  • remove the dependency from root package.json. IMHO removing the dependency should be sufficient but cant remember.

The same is done on the CI in .github/workflows/build-binary.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants