Deploy your Astro Site to Heroku
Questi contenuti non sono ancora disponibili nella tua lingua.
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.
The following instructions use the deprecated heroku-static-buildpack
. Please see Heroku’s documentation for using heroku-buildpack-nginx
instead.
How to deploy
Section titled How to deploy-
Install the Heroku CLI.
-
Create a Heroku account by signing up.
-
Run
heroku login
and fill in your Heroku credentials: -
Create a file called
static.json
in the root of your project with the below content:This is the configuration of your site; read more at heroku-buildpack-static.
-
Set up your Heroku git remote:
-
Deploy your site: