sebo-b / warp

Workspace Autonomous Reservation Program - a system to help you efficiently manage hybrid (assigned, hot-desks, etc) office space.
MIT License
139 stars 60 forks source link

Guidance for a productive environment #22

Closed DzeTro closed 1 year ago

DzeTro commented 1 year ago

Hello Sebo-b

Is there perhaps a tutorial on how I can set up WARP on my server and use it productively?

I have already read the README and found out that it doesn't go any further after the secret key.

Maybe there is a possibility that we contact each other by e-mail, and you explain to me how I can use WARP, or maybe you have a documentation or description that you can send me.

Thank you

sebo-b commented 1 year ago

Hi @DzeTro,

It all depends on how familiar you are with general Linux administration (namely Nginx, PostgreSQL, and docker). If you are then the description is quite straightforward:

- setup Postgresql
- setup Nginx as rev-proxy to Warp in a docker container

$ docker run --name warp-demo-wsgi \
> --env 'WARP_DATABASE=postgresql://postgres:postgres_password@db-addr:5432/postgres' \
> --env WARP_SECRET_KEY=mysecretkey \
> --env WARP_DATABASE_INIT_SCRIPT='["sql/schema.sql","sql/sample_data.sql"]' \
> -d warp:latest

If that doesn't ring a bell for you, then you can reach me out at sebastian (at) baberowski (dot) com However as you are talking abt the production environment I can basically offer you commercial help.