astro / latest / guides / deploy / heroku / index.html

Deploy your Astro Site to Heroku

Heroku is a platform-as-a-service for building, running, and managing modern apps in the cloud. You can deploy an Astro site to Heroku using this guide.

How to deploy

  1. Install the Heroku CLI.

  2. Create a Heroku account by signing up.

  3. Run heroku login and fill in your Heroku credentials:

    Terminal window
  4. Create a file called static.json in the root of your project with the below content:

    static.json:

    This is the configuration of your site; read more at heroku-buildpack-static.

  5. Set up your Heroku git remote:

    Terminal window
  6. Deploy your site:

    Terminal window

More Deployment Guides

Filter by deploy type

© 2021 Fred K. Schott
Licensed under the MIT License.
https://docs.astro.build/en/guides/deploy/heroku/