Install on Heroku

Bastion stores its data in files on disk. Heroku’s Cedar stack has an ephemeral filesystem. Bastion will work with Heroku, but the data will be cleared periodically by Heroku. If you were to use Bastion on Heroku, you would lose your entire data at least once every 24 hours.


Before you can install Bastion in Heroku, you need these in your computer. Install them if you don't already have it.

Set up Heroku

  • Go to Heroku and create a new account (or login, if you already have an account).

  • Open the Command Prompt (Windows) or Terminal (Linux/macOS) and run the following command:

    heroku login
  • Enter your Heroku credentials as prompted and you will be logged in to Heroku.

Install Bastion

  • First you need to get Bastion in your local computer before you can install it in Heroku. Run the following command to clone Bastion into your computer:

    git clone -b stable -q --depth 1
    cd Bastion
  • You also need to create an app in Heroku where you will install Bastion. Run the following command to create an app in Heroku:

    heroku create
  • Now you can install Bastion in Heroku. Run the following command to deploy Bastion to Heroku:

    git push heroku stable:master

Hey!👋Was this page helpful?

We're always looking to make our docs better, please let us know if you have any suggestions or advice about what's working and what's not!