blog.broncotoxique.com

Just another geek website

Deploy Proprietas on Clever-Cloud

I was searching for a solution to manage the common area maintenance charges of the building I live in. I found many solutions like Diacamma which seems to be the best one but with a very old GUI. I found Proprietas, it seems its a brand new one, AI produced I guess, still it seems me easier to use.

In order to make some tests I decided to deploy Proprietas on Clever-Cloud.

Let’s assume you already have an Clever-Cloud account, you have a GitHub (or equivalent) account. Now, clone Proprietas repo.

Since you have the Proprietas clone repo, keep in mind that we will not use the docker-compose.yml to deploy. The deployment we will make will be : one docker runtime, one Postgres db, one filesystem.

Go on you Clever-Cloud console, create a new Application from a repository, select your Proprietas clone, select the runtime Docker, add a Postgres add-on, validate. Then create a FS Buckets add-on and link it to the Proprietas runtime.

Now the runtime configuration:

  • Information:
    • Application edition:
      • Zero downtime deployment = Yes
      • Force HTTPS = Yes
  • Environment variables:
CC_DOCKER_EXPOSED_HTTP_PORT="8000"
CC_DOCKERFILE="backend/Dockerfile"
COPRO_DATABASE_URL="postgresql+psycopg2://${USER}:${PASSWORD}@...-postgresql.services.clever-cloud.com:${DB_PORT}/${DB_NAME}"
COPRO_FRONTEND_DIST="/app/frontend_dist"
COPRO_SECRET_KEY="${YOUR_GENERATED_SECRET_SALT}"
COPRO_UPLOAD_DIR="/data/uploads:bucket-...-fsbucket.services.clever-cloud.com"
PORT="8080"

Then run you app, click RE-BUILD AND START, it should run.

If you face any issue, please write a comment.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *