2. Deployment of reelnn‐backend. - rafsanbasunia/reelnn GitHub Wiki

Welcome to the reelnn wiki!

This wiki aims to provide better documentation about installation and deployment of reelnn-backend.

reelnn-backend

🛠️ Deployment

1. Config Setup

  • Clone the repository
    git clone https://github.com/rafsanbasunia/reelnn-backend.git
    
  • Open config.py in a text editor.
  • Fill all the mandatory variables.
  • Save the file

2. Deployment

2.1 Local Deployment

  • Create a virtual environment using venv. How to?
  • Install dependencies in your virtual environment.
    pip install -r requirements.txt
    
  • Run the application
    python app.py
    

2.2 Heroku Deployment


  • Prerequisites

    • Heroku CLI installed on your machine. Download here
    • Git installed and configured
    • Heroku account created
  • Login to Heroku

    heroku login
    
  • Create a new Heroku app

    heroku create -a your-app-name
    

    Replace your-app-name with your desired application name.

  • Initalize git

    git init
    
  • Connect the git with your app.

    heroku git:remote -a appname
    
  • Deploy to Heroku

    git add .
    git commit -m "Deploy to Heroku"
    git push heroku master
    
  • After a successful deploy, you should see bot started message in your logs channel.

  • Use the Open App button in your heroku app to open the app in your browser. Copy the link. This is the value of BACKEND_URL variable of your frontend.