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

info about required dependencies for the ServerMode #29

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/WorkingModes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ In such cases, it is allowed and recommended to run the server part and the AI p

Steps to run `Vix` in a Server mode:

1. Set ``VIX_MODE`` environment variable to ``SERVER``
2. Setup **PostgreSQL** database and set correct ``DATABASE_URI`` environment variable to point on it.
1. Install both `psycopg` and `greenlet` python libraries: `pip install psycopg greenlet`
2. Set ``VIX_MODE`` environment variable to ``SERVER``
3. Setup **PostgreSQL** database and set correct ``DATABASE_URI`` environment variable to point on it.

.. note:: `PgSQL example <https://docs.sqlalchemy.org/en/20/dialects/postgresql.html#module-sqlalchemy.dialects.postgresql.psycopg>`_: ``DATABASE_URI="postgresql+psycopg://vix_user:vix_password@localhost:5432/vix_db"``

3. Use ``python3 -m visionatrix create-user`` command to create a user in the database.
4. Connect at least one Worker to handle task processing.
4. Use ``python3 -m visionatrix create-user`` command to create a user in the database.
5. Connect at least one Worker to handle task processing.


*We will provide a docker-compose file soon, with full server setup to deploy it in one click.*
Expand Down