ever-co / ever-gauzy

Ever® Gauzy™ - Open Business Management Platform (ERP/CRM/HRM/ATS/PM) - https://gauzy.co
https://gauzy.co
GNU Affero General Public License v3.0
2.22k stars 527 forks source link

DevOps: deployment with fly.io #5525

Open evereq opened 1 year ago

evereq commented 1 year ago

See https://fly.io. Make it possible to quickly deploy Gauzy into Fly.io infra. See https://fly.io/docs/languages-and-frameworks/dockerfile for the best way to make it (I think). Plus we have to use https://fly.io/docs/postgres

evereq commented 1 year ago
  1. For a more powerful token that can manage multiple applications, run flyctl auth token.
  2. GitHub Actions: https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
  3. Secrets management: https://fly.io/docs/reference/secrets
  4. Terraform - https://github.com/fly-apps/terraform-provider-fly
evereq commented 1 year ago

Posted question in https://community.fly.io/t/is-fly-still-pursuing-one-click-app-deployments/2611/10?u=ever

evereq commented 1 year ago

See https://github.com/triggerdotdev/fly.io for example of full project deployment into Fly.io

evereq commented 1 year ago

Some commands we run manually:

flyctl volumes create api_data --region lax --size 1
flyctl volumes create api_public --region lax --size 1
cd api
flyctl scale vm shared-cpu-2x
cd api
flyctl scale count 1
cd webapp
flyctl scale count 1
cd api
flyctl scale memory 2048
cd webapp
flyctl scale memory 512
evereq commented 1 year ago

NOW:

Note: wait up to ~1 min for instance to power on for the first request due to inactivity timeout!

TODOs: