Skip to content

Deploy to Digital Ocean

Aahnik Daw edited this page Nov 20, 2022 · 10 revisions

DigitalOcean infrastructure is a leading cloud service provider based in the United States of America. Their headquarter operates from New York City, and their data centers are prevalent in every corner of the world in order to provide seamless cloud services across the globe.

App Platform
  1. Click Create -> Apps

    create-app

  2. Choose Docker Hub as the source. repository path is "aahnik/tgcf". Click "Next".

    select-docker-hub

  3. A page will appear where you can edit your app resources. (Zoom and understand the image)

    app-resources

  4. Set your environment variables.

    set-env-vars

  5. Choose your location

    choose-region

  6. Wait for the deployment to be done. Once done click on "Live App" and enjoy!

    waiting for deploy success

Ubuntu Droplet

If you want more control, you may run tgcf on a VPS like DigitalOcean's ubuntu droplets.

Steps: Create a Droplet and SSH into it using Termius App or Open Console in Browser. Then in your terminal execute the following commands.

  1. Update packages and reboot

    sudo apt update && sudo apt upgrade -y
    reboot
  2. Reconnect and install dependencies

    sudo apt install python3-pip python3-venv
  3. Follow the steps as shown in README to install and run tgcf.

  4. Closing the console stops the running tgcf-web process. You can use a detached screen session to keep tgcf running in the background.

    # make sure you are inside your my-tgcf directory
    screen -S tgcfSession
    source .venv/bin/activate
    tgcf-web

Exit the screen session by Ctrl + a then press d. Now you can safely close the console to VPS.