Aller au contenu

Deploy your Astro Site with DeployHQ

Ce contenu n’est pas encore disponible dans votre langue.

You can deploy your Astro project to your own servers using DeployHQ, a deployment automation platform that builds your code and pushes it to SSH/SFTP servers, FTP servers, cloud storage (e.g. Amazon S3, Cloudflare R2), and modern hosting platforms (e.g. Netlify, Heroku).

  1. If you do not already have one, sign up for a DeployHQ account.

  2. From the DeployHQ web interface, create a new project and connect the Git repository for your Astro project (GitHub, GitLab, Bitbucket, or any private repository). You will also need to authorize DeployHQ to access your repository.

  3. Add a server and enter your server details:

    • Give your server a name.
    • Select your protocol (SSH/SFTP, FTP, or cloud platform).
    • Enter your server hostname, username, and password/SSH key.
    • Set Deployment Path to your web root (e.g. public_html/).
  4. In your project settings, navigate to Build Pipeline and add your build commands:

    Terminal window
    npm install
    npm run build
  5. Click Deploy Project, then select your server and click Deploy to start your first deployment.

Your Astro site will be built and deployed to your server. You can enable automatic deployments to deploy on every Git push, or schedule deployments for specific times.

See DeployHQ’s documentation for more info on advanced deployment features.

Plus de guides de déploiement

Contribuer Communauté Parrainer