#Deploy in VPS server

7 messages · Page 1 of 1 (latest)

nimble depot
#

I want to deploy the dist folder on a VPS server, within a subfolder. What should I configure in ast

delicate laurelBOT
#

Hi @nimble depot. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

To deploy your Astro project on a Virtual Private Server (VPS), you can use Cleavr, a server and app deployment management tool. Here are the steps you need to follow:

  1. In Cleavr, navigate to the server where you want to add your Astro project.
  2. Select Add Site and fill in the details for your application, such as domain name.
  3. For App Type, select 'NodeJS Static' or 'NodeJS SSR' according to how you are setting up your Astro app.
  4. For Static apps, set Artifact Folder to dist.
  5. For SSR apps:
    • Set Entry Point to entry.mjs.
    • Set Artifact Folder to dist/server.
  6. Select Add to add the site to your server.

Once your new site is added, click Setup and deploy. Select the VC Profile, Repo, and Branch for your Astro Project. Make any additional configurations necessary for your project. Click on the Deployments tab and then click on Deploy.

Please note that you need a Cleavr account and a server on your VPS provider using Cleavr to get started.

For more details, you can check out the Astro guide in Cleavr’s docs (https://docs.cleavr.io/guides/astro) or the Astro deployment guide (https://docs.astro.build/en/guides/deploy/cleavr/#_top).

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@nimble depot kapa.ai is still learning and improving, please let us know how it did by reacting below

nimble depot
#

@delicate laurel Is it possible to do it without using Cleavr?

delicate laurelBOT
#

Let me check the knowledge base for you. One moment! :books:

#

Yes, it's possible to deploy your Astro project on a VPS without using Cleavr. However, the exact steps can vary depending on the specific VPS and its configuration. Generally, you would need to:

  1. Build your Astro project locally or on the server. This can be done by running the astro build command which generates a dist folder with your built project.

  2. Transfer the dist folder to your VPS. This can be done using various methods like scp or rsync if you're using a Unix-like system, or tools like FileZilla for a more graphical approach.

  3. On your VPS, you would need to serve the dist folder. This can be done using a web server like Nginx or Apache. You would need to configure the web server to serve the dist folder at the desired subfolder location.

Please note that these are general steps and might need to be adjusted based on your specific VPS and its configuration. For more detailed instructions, you should refer to the documentation of your VPS provider or the web server software you're using.

Unfortunately, the provided knowledge sources do not contain specific instructions for deploying an Astro project on a VPS without using Cleavr. For more detailed instructions, you might find the Astro Deployment Guide (https://docs.astro.build/en/guides/deploy/) helpful.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: