Open evereq opened 1 year ago
flyctl auth token
.See https://github.com/triggerdotdev/fly.io for example of full project deployment into Fly.io
Some commands we run manually:
Open terminate in .fly\applications
folder and run all commands from either api
or webapp
subfolders
To (re)deploy app, run command flyctl deploy
for each app
Create Volumes for API public
and data
folder (Note: public
volume is not in use yet because can't attach multiple for now):
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
NOW:
Note: wait up to ~1 min for instance to power on for the first request due to inactivity timeout!
TODOs:
when @superfly adds support for multiple volumes we need to fix issue with screenshots that did not save correctly in between app restarts (of course can be fixed also if we switch to another S3 compatible storage for screenshots and other blobs)
put somewhere button "Deploy with Fly.io" and create a Wiki page that describes step by step how to do it (similar to https://github.com/triggerdotdev/fly.io readme)
we provisioned the machine for PostgreSQL in Fly.io, but did not try to use it yet. That would be required if someone want to use fly.io for live hosting.
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