Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.46 KB

cleavr.mdx

File metadata and controls

52 lines (34 loc) · 1.46 KB
title description type i18nReady
Deploy your Astro Site with Cleavr
How to deploy your Astro site to your VPS server using Cleavr.
deploy
true

import { Steps } from '@astrojs/starlight/components';

You can deploy your Astro project to your own Virtual Private Server (VPS) using Cleavr, a server and app deployment management tool.

:::tip Check out the Astro guide in Cleavr's docs! :::

Prerequisites

To get started, you will need:

  • A Cleavr account
  • A server on your VPS provider using Cleavr

Add your site

1. In Cleavr, navigate to the server you want to add your Astro project to.
  1. Select Add Site and fill in the details for your application, such as domain name.

  2. For App Type, select 'NodeJS Static' or 'NodeJS SSR' according to how you are setting up your Astro app.

  3. For Static apps, set Artifact Folder to dist.

  4. For SSR apps:

    • Set Entry Point to entry.mjs.
    • Set Artifact Folder to dist/server.
  5. Select Add to add the site to your server.

Setup and deploy

1. Once your new site is added, click **Setup and deploy**.
  1. Select the VC Profile, Repo, and Branch for your Astro Project.

  2. Make any additional configurations necessary for your project.

  3. Click on the Deployments tab and then click on Deploy.

Congratulations, you've just deployed your Astro app!