Skip to main content

Heroku

For deployment to Heroku you need to create an account first.

Note. You need to clone TeleDrive in your local machine first.

One-click Deployment

Deploy

If you want to upgrade your application to the latest version, you can use these following steps:

Prerequisite

Get started by build all needed services.

Environment variables

  • Server variables

    envrequireddescription
    ENVnoHide the logs for production, default: develop
    TG_API_IDyesApplication ID from your Telegram App
    TG_API_HASHyesApplication hash from Telegram App
    ADMIN_USERNAMEyesTelegram username of the admin TeleDrive
    DATABASE_URLyesPostgreSQL connection URI, format: postgresql://[user]:[password]@[host]:[port][/dbname][?paramspec]
  • Web variables

    envrequireddescription
    REACT_APP_API_URLnoBase URL for the API, default: '' (empty string)
    REACT_APP_TG_API_IDyesApplication ID from your Telegram App (for experimental features)
    REACT_APP_TG_API_HASHyesApplication hash from Telegram App (for experimental features)

Set up Heroku CLI

  • Clone the repository to your local machine and point to the local directory:

    git clone https://github.com/mgilangjanuar/teledrive.git
    cd teledrive
  • Login from Heroku CLI in terminal:

    heroku login
  • Add heroku as a remote repository:

    heroku git:remote -a [YOUR_APP_NAME]

Upgrade

Upgrade to the latest version of TeleDrive with this command:


git pull origin main # or, staging for the latest updates

git push heroku main # or staging:main, if you're from staging branch