Skip to content

Deploying to Heroku

Levi edited this page Oct 25, 2022 · 8 revisions

Heroku

Deploying with Heroku CLI

  • Install Heroku CLI
  • Login to your heroku account
    heroku login -i
    
  • Create a new app
    heroku apps:create APPNAME
    
  • Add the app remote to the repo
    heroku git:remote -a APPNAME
    
  • Change stack of the app to container
    heroku stack:set container -a APPNAME
    
  • Add the config files
    git add -f .
    
  • Commit new changes
    git commit -m "Add configuration"
    
  • Push the repo to heroku
    git push heroku main --force
    
  • Now restart the app dyno
    heroku ps:scale worker=0 -a APPNAME
    
    heroku ps:scale worker=1 -a APPNAME
    

    Note: Remember to replace APPNAME with your app's name

Clone this wiki locally