mgilangjanuar / teledrive

The Google Drive/OneDrive/etc alternative using Telegram API
https://teledriveapp.com
GNU General Public License v3.0
2.06k stars 949 forks source link

add deployment to fly.io #470

Closed umarhadi closed 1 year ago

umarhadi commented 1 year ago

If you already have an account on fly.io and have installed flyctl, follow these steps:

  1. Clone this repository.
  2. Copy and rename .env.fly.example to .env.fly, and then modify its contents.
  3. Run flyctl launch, do not confirm the deployment, and then check fly.toml to ensure that the internal port is 4000.
  4. Increase the RAM by running the command fly scale memory 512 because this application requires at least 512MB of memory.
  5. If everything is correct, run the command flyctl deploy --dockerfile Dockerfile.fly.
vercel[bot] commented 1 year ago

@umarhadi is attempting to deploy a commit to the Restfire Studio Team on Vercel.

A member of the Team first needs to authorize it.

birdup000 commented 1 year ago

Awesome thanks for your contribution 😀 I'll check this out and test before I merge the pull request

umarhadi commented 1 year ago

Oh, I forgot. For database migration, I do it manually after the application is deployed. The way to do it is to SSH into the machine by running fly ssh console, and then run the migration.