From 61e6d8cd6a0f4f841abc18cb7184a0d1e4b957a5 Mon Sep 17 00:00:00 2001 From: Arjun Aditya <73933669+nermalcat69@users.noreply.github.com> Date: Mon, 22 Apr 2024 21:43:53 +0530 Subject: [PATCH 01/26] feat: zerops guide --- public/logos/zerops.svg | 7 + src/components/DeployGuidesNav.astro | 1 + src/content/docs/en/guides/deploy/zerops.mdx | 222 +++++++++++++++++++ src/data/logos.ts | 1 + 4 files changed, 231 insertions(+) create mode 100644 public/logos/zerops.svg create mode 100644 src/content/docs/en/guides/deploy/zerops.mdx diff --git a/public/logos/zerops.svg b/public/logos/zerops.svg new file mode 100644 index 0000000000000..8388d06ef727c --- /dev/null +++ b/public/logos/zerops.svg @@ -0,0 +1,7 @@ + + + + + + diff --git a/src/components/DeployGuidesNav.astro b/src/components/DeployGuidesNav.astro index ad13f3dc4e8b6..06109ce488d9f 100644 --- a/src/components/DeployGuidesNav.astro +++ b/src/components/DeployGuidesNav.astro @@ -43,6 +43,7 @@ const services: Service[] = [ { title: 'Kinsta', slug: 'kinsta', supports: ['ssr', 'static'] }, { title: 'Deta Space', slug: 'space', supports: ['ssr', 'static'] }, { title: 'Zeabur', slug: 'zeabur', supports: ['ssr', 'static'] }, + { title: 'Zerops', slug: 'zerops', supports: ['ssr'] }, ]; --- diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx new file mode 100644 index 0000000000000..8403e3424343c --- /dev/null +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -0,0 +1,222 @@ +--- +title: Deploy your Astro Site to Zerops +description: How to deploy your Astro site to the web using Zerops. +type: deploy +i18nReady: true +--- +import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' + +[Zerops](https://zerops.io/) is a cloud platform that can be used to deploy an Astro site. + +As of April 2024, it only supports SSR deployments. + +This guide will walk you through how you can deploy an astro Node.js service on Zerops. If you get stuck, go to the [Zerops Docs](https://docs.zerops.io/). + +## Prerequisites + +Before starting you should know this: + +- A Zerops account. If you don’t already have one, you can create an account for free. +- Zerops Dashboard Mapping: Dashboard > Projects > Services(You can manage ENVs, Public Access, Internal Ports, Manage Pipelines & CI / CD, Preview Runtime Logs and File Browser). +- Install [zCLI](https://docs.zerops.io/references/cli/) on your system (CLI by Zerops). +- As of April 2024, Your web app's code should be pushed to [GitHub](https://github.com/) or a [GitLab](https://about.gitlab.com/) repository to use zCLI but its not necessary to connect your github on zerops dashboard unless you plan to automatically push the new commit and redeploy. +- @astrojs/node package + +### Importing a Project +:::tip[Looking for an example?] +Check out [Zerops with Astro Example](https://github.com/fxck/zerops-astro-nodejs)! +::: + +To import a project from a github repository you need to +1. Navigate to [Zerops Dashboard](https://app.zerops.io/dashboard/projects), and navigate to the sidebar, and click on `Import a project` . +2. Paste this YAML code in the textarea. +```yaml +project: + name: astro + +services: + - hostname: astronode + type: nodejs@20 + buildFromGit: https://github.com/fxck/zerops-astro-nodejs + ports: + - port: 4321 + enableSubdomainAccess: true + minContainers: 1 +``` + +This YAML code will create a project named `astro`, use a Node.js server with version 20, set up a service called `astronode`, fetch code from `https://github.com/fxck/zerops-astro-nodejs`, and deploy it on port `4321`. Zerops will assign a new subdomain for this project, which you can find in the Service Dashboard of the astro project. + +For more info you can navigate to Service Dashboard check Runtime Log and File Browser. + + +### Setting Up SSR + +To deploy your project on **Zerops**, you need to: +- Include a `build` script in your `package.json`. (Your Astro project should already include this.) +- Install the [`@astrojs/node`](https://docs.astro.build/en/guides/integrations-guide/node/) package and set the `start` script to `node ./dist/server/entry.mjs`. +- Set the `astro.config.mjs` to use `@astrojs/node`. + +Here are the necessary lines in your `package.json` file: +```json title="package.json" ins={5,12} "node ./dist/server/entry.mjs" +{ + "name": "your-project-name", // This is required, but the value does not matter. + "scripts": { + "dev": "astro dev", + "start": "node ./dist/server/entry.mjs", + "build": "astro build", + "preview": "astro preview", + "astro": "astro" + }, + "dependencies": { + "astro": "^4.6.3", + "@astrojs/node": "^8.2.5" + }, +} +``` + +Here are the necessary lines in your `astro.config.mjs` file: +```js title="astro.config.mjs" + import { defineConfig } from 'astro/config'; + import node from "@astrojs/node"; + + export default defineConfig({ + output: 'server', + adapter: node({ + mode: "standalone" + }), + }); +``` + + + +## Deploying to Zerops + + +Zerops is a bare-metal platform designed to simplify the deployment of full-stack projects. + +You can easily set up automatic deployments when using GitHub or Gitlab as their codebase. Additionally, Zerops offers a CLI called zCLI, which facilitates code deployment to the platform + + +1. Go to [Zerops Dashboard](https://app.zerops.io/dashboard/projects), and navigate to the sidebar, and click on `Add new Project` . +2. Choose the node runtime for Astro SSR, Change the name of the service then scroll down and add new Node service (You'll also see a default zerops.yml code). +3. Start by adding `zerops.yml` to the root of your astro web app and modify it to fit your application. + + :::caution + Do not forget to replace `setup: your-service-name` with the name of your Node.js service. + ::: + + + + ```yaml + zerops: + - setup: astronode + build: + base: nodejs@20 + buildCommands: + - npm i + - npm run build + deploy: + - dist + - package.json + - node_modules + cache: + - node_modules + - package-lock.json + run: + start: npm start + envVariables: + HOST: 0.0.0.0 + ``` + + + ```yaml + zerops: + - setup: astronode + build: + base: nodejs@20 + buildCommands: + - pnpm i + - pnpm run build + deploy: + - dist + - package.json + - node_modules + cache: + - node_modules + - pnpm-lock.json + run: + start: pnpm start + envVariables: + HOST: 0.0.0.0 + ``` + + + ```yaml + zerops: + - setup: astronode + build: + base: nodejs@20 + buildCommands: + - yarn + - yarn build + deploy: + - dist + - package.json + - node_modules + cache: + - node_modules + - yarn.lock + run: + start: pnpm start + envVariables: + HOST: 0.0.0.0 + ``` + + + + +### Deploying Using zCLI +zCLI is a command-line tool that simplifies the deployment of projects on Zerops. + +1. Install zCLI on your System (Use your MacOS / Windows / Linux Terminal) +```shell +npm i -g @zerops/zcli +``` + +Currently, the zCLI is distributed for Linux (x86 & x64 architecture), macOS (x64 & M1 architecture) and Windows (x64 architecture). + +To download the zCLI directly, use the [latest release](https://github.com/zeropsio/zcli/releases) on GitHub. + +2. Go to the Zerops Dashboard, then click on your profile icon at the top left. Click on `Access Token Management`, generate a new access token, and copy it. + +3. Login using zCLI +```shell +zcli login +``` + +4. Use your project's root terminal (assuming you've added `zerops.yml` file in your project's root) and push the code. +```shell +zcli push +``` +It will prompt you projects you'll have to click `enter` then it will show services click `enter` again to push the code. + + +### Deploying Using Github + +Zerops will automatically deploy your website and update it whenever you push a commit to your repository. + +1. Go to Zerops Dashboard > Your Project > Your Astro Node Service +2. Connect your Repository to update your web app whenever you push your code to your repository `Connect with a Github Repository` & `Connect with a Gitlab Repository`(Make sure pop ups are not blocked in your browser). +3. Choose your github repository. + +You can also push your code manually without pushing the code to your repository by using Zerops CLI from your local terminal. You can also trigger the pipeline from your existing CI/CD pipeline and reDeploy. + + + + +## Community Resources + +- [Deploying Astro to Zerops in 3 mins](https://medium.com/@arjun.js/how-to-deploy-astro-to-zerops-4230816a62b4) +- [Detailed guide to create a Node.js service](https://docs.zerops.io/nodejs/how-to/create) +- [Managing Environment Variables](https://docs.zerops.io/nodejs/how-to/env-variables) +- [Updating Internal Ports](https://docs.zerops.io/nodejs/how-to/ports) diff --git a/src/data/logos.ts b/src/data/logos.ts index 43d32eea7b44f..f58c43442a657 100644 --- a/src/data/logos.ts +++ b/src/data/logos.ts @@ -87,6 +87,7 @@ export const logos = LogoCheck({ 'kontent-ai': { file: 'kontent-ai.svg', padding: '.15em' }, keystatic: { file: 'keystatic.svg', padding: '0' }, zeabur: { file: 'zeabur.svg', padding: '.2em' }, + zerops: { file: 'zerops.svg', padding: '.2em' }, apostrophecms: { file: 'apostrophecms.svg', padding: '.15em .15em' }, db: { file: 'db.svg', padding: '.1em' }, }); From c9172c03eaf5da02ac76053500f966a9c79cb0f4 Mon Sep 17 00:00:00 2001 From: Arjun Aditya <73933669+nermalcat69@users.noreply.github.com> Date: Tue, 23 Apr 2024 00:53:39 +0530 Subject: [PATCH 02/26] feat: link to "add new project" --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 8403e3424343c..32e58aaad03a1 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -97,7 +97,7 @@ Zerops is a bare-metal platform designed to simplify the deployment of full-stac You can easily set up automatic deployments when using GitHub or Gitlab as their codebase. Additionally, Zerops offers a CLI called zCLI, which facilitates code deployment to the platform -1. Go to [Zerops Dashboard](https://app.zerops.io/dashboard/projects), and navigate to the sidebar, and click on `Add new Project` . +1. Go to [Zerops Dashboard](https://app.zerops.io/dashboard/projects), and navigate to the sidebar, and [Add new Project](https://app.zerops.io/dashboard/project-add). 2. Choose the node runtime for Astro SSR, Change the name of the service then scroll down and add new Node service (You'll also see a default zerops.yml code). 3. Start by adding `zerops.yml` to the root of your astro web app and modify it to fit your application. From d616ecc546f3ab05e9628406400b54588be1d1a5 Mon Sep 17 00:00:00 2001 From: Arjun Aditya <73933669+nermalcat69@users.noreply.github.com> Date: Tue, 23 Apr 2024 00:54:36 +0530 Subject: [PATCH 03/26] feat: fix link error --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 32e58aaad03a1..30368098d62b6 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -53,7 +53,7 @@ For more info you can navigate to Service Dashboard check Runtime Log and File B To deploy your project on **Zerops**, you need to: - Include a `build` script in your `package.json`. (Your Astro project should already include this.) -- Install the [`@astrojs/node`](https://docs.astro.build/en/guides/integrations-guide/node/) package and set the `start` script to `node ./dist/server/entry.mjs`. +- Install the [`@astrojs/node`](/en/guides/integrations-guide/node/) package and set the `start` script to `node ./dist/server/entry.mjs`. - Set the `astro.config.mjs` to use `@astrojs/node`. Here are the necessary lines in your `package.json` file: From 1b4df233d5aabdf583c238f6180eb1e56f86928f Mon Sep 17 00:00:00 2001 From: Ales Rechtorik Date: Mon, 22 Apr 2024 22:33:20 +0200 Subject: [PATCH 04/26] tidyup --- src/content/docs/en/guides/deploy/zerops.mdx | 149 +++++++------------ 1 file changed, 53 insertions(+), 96 deletions(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 30368098d62b6..87ae763599ae7 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -6,74 +6,55 @@ i18nReady: true --- import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' -[Zerops](https://zerops.io/) is a cloud platform that can be used to deploy an Astro site. +[Zerops](https://zerops.io/) is a dev-first cloud platform that can be used to deploy an Astro site. As of April 2024, it only supports SSR deployments. -As of April 2024, it only supports SSR deployments. - -This guide will walk you through how you can deploy an astro Node.js service on Zerops. If you get stuck, go to the [Zerops Docs](https://docs.zerops.io/). +This guide will walk you through deploying an Astro Node.js service to Zerops. ## Prerequisites -Before starting you should know this: - - A Zerops account. If you don’t already have one, you can create an account for free. -- Zerops Dashboard Mapping: Dashboard > Projects > Services(You can manage ENVs, Public Access, Internal Ports, Manage Pipelines & CI / CD, Preview Runtime Logs and File Browser). -- Install [zCLI](https://docs.zerops.io/references/cli/) on your system (CLI by Zerops). -- As of April 2024, Your web app's code should be pushed to [GitHub](https://github.com/) or a [GitLab](https://about.gitlab.com/) repository to use zCLI but its not necessary to connect your github on zerops dashboard unless you plan to automatically push the new commit and redeploy. -- @astrojs/node package - -### Importing a Project -:::tip[Looking for an example?] -Check out [Zerops with Astro Example](https://github.com/fxck/zerops-astro-nodejs)! -::: +- `@astrojs/node` package -To import a project from a github repository you need to -1. Navigate to [Zerops Dashboard](https://app.zerops.io/dashboard/projects), and navigate to the sidebar, and click on `Import a project` . -2. Paste this YAML code in the textarea. +:::tip[How about a one-click example?] +Import [Zerops x Astro - Node.js](https://github.com/zeropsio/recipe-astro-nodejs) example app into Zerops. +Open [Zerops Dashboard](https://app.zerops.io/dashboard/projects), click "Import project", paste ⬇️ — built, deployed, done. ```yaml project: name: astro - services: - hostname: astronode type: nodejs@20 - buildFromGit: https://github.com/fxck/zerops-astro-nodejs + buildFromGit: https://github.com/zeropsio/recipe-astro-nodejs ports: - port: 4321 + httpSupport: true enableSubdomainAccess: true minContainers: 1 ``` +::: + +### Creating your own Zerops project with Astro apps + +You can either add project and your first Node.js service through the [project add](https://app.zerops.io/dashboard/project-add) wizard in Zerops app, or by importing it using a yaml structure. + +```yaml +# +project: + name: my-astro-sites -This YAML code will create a project named `astro`, use a Node.js server with version 20, set up a service called `astronode`, fetch code from `https://github.com/fxck/zerops-astro-nodejs`, and deploy it on port `4321`. Zerops will assign a new subdomain for this project, which you can find in the Service Dashboard of the astro project. - -For more info you can navigate to Service Dashboard check Runtime Log and File Browser. - - -### Setting Up SSR - -To deploy your project on **Zerops**, you need to: -- Include a `build` script in your `package.json`. (Your Astro project should already include this.) -- Install the [`@astrojs/node`](/en/guides/integrations-guide/node/) package and set the `start` script to `node ./dist/server/entry.mjs`. -- Set the `astro.config.mjs` to use `@astrojs/node`. - -Here are the necessary lines in your `package.json` file: -```json title="package.json" ins={5,12} "node ./dist/server/entry.mjs" -{ - "name": "your-project-name", // This is required, but the value does not matter. - "scripts": { - "dev": "astro dev", - "start": "node ./dist/server/entry.mjs", - "build": "astro build", - "preview": "astro preview", - "astro": "astro" - }, - "dependencies": { - "astro": "^4.6.3", - "@astrojs/node": "^8.2.5" - }, -} +services: + - hostname: hellothere + type: nodejs@20 + ports: + - port: 3000 + minContainers: 1 ``` +This will setup a project called `my-astro-sites`, with a Node.js v20 service called `hellothere`, which will be ready for you to deploy your Astro app into. One Zerops project can contain many Astro apps. + +### Setting Up Node.js SSR in your app +Zerops is using [`@astrojs/node`](/en/guides/integrations-guide/node/) package to run the app. Add it to your deps, if you haven't already, and modify your Astro config to utilize it. + Here are the necessary lines in your `astro.config.mjs` file: ```js title="astro.config.mjs" import { defineConfig } from 'astro/config'; @@ -87,29 +68,17 @@ Here are the necessary lines in your `astro.config.mjs` file: }); ``` +## Building and deploying your app to Zerops +Now that you you've set up your app and prepared a Node.js service on Zerops, we can trigger the build and deploy pipeline on Zerops. -## Deploying to Zerops - - -Zerops is a bare-metal platform designed to simplify the deployment of full-stack projects. - -You can easily set up automatic deployments when using GitHub or Gitlab as their codebase. Additionally, Zerops offers a CLI called zCLI, which facilitates code deployment to the platform - - -1. Go to [Zerops Dashboard](https://app.zerops.io/dashboard/projects), and navigate to the sidebar, and [Add new Project](https://app.zerops.io/dashboard/project-add). -2. Choose the node runtime for Astro SSR, Change the name of the service then scroll down and add new Node service (You'll also see a default zerops.yml code). -3. Start by adding `zerops.yml` to the root of your astro web app and modify it to fit your application. - - :::caution - Do not forget to replace `setup: your-service-name` with the name of your Node.js service. - ::: +Start by describing how to build and run your app through `zerops.yml` file placed at the root of your codebase. `setup:` part should match the hostname your chose for your service, in case of our example - `hellothere`. ```yaml zerops: - - setup: astronode + - setup: hellothere build: base: nodejs@20 buildCommands: @@ -123,15 +92,16 @@ You can easily set up automatic deployments when using GitHub or Gitlab as their - node_modules - package-lock.json run: - start: npm start + start: node dist/server/entry.mjs envVariables: HOST: 0.0.0.0 + NODE_ENV: production ``` ```yaml zerops: - - setup: astronode + - setup: hellothere build: base: nodejs@20 buildCommands: @@ -145,11 +115,12 @@ You can easily set up automatic deployments when using GitHub or Gitlab as their - node_modules - pnpm-lock.json run: - start: pnpm start + start: node dist/server/entry.mjs envVariables: HOST: 0.0.0.0 + NODE_ENV: production ``` - + ```yaml zerops: @@ -167,54 +138,40 @@ You can easily set up automatic deployments when using GitHub or Gitlab as their - node_modules - yarn.lock run: - start: pnpm start + start: node dist/server/entry.mjs envVariables: HOST: 0.0.0.0 + NODE_ENV: production ``` - + +### Trigger the pipeline by connecting the service to GitHub / GitLab +Zerops continuous deployment on push to branch or a new release connecting your Zerops service with either GitHub or GitLab repository. Open Zerops, navigate to service detail, connect with GitHub / GitLab. -### Deploying Using zCLI -zCLI is a command-line tool that simplifies the deployment of projects on Zerops. -1. Install zCLI on your System (Use your MacOS / Windows / Linux Terminal) +### Trigger the pipeline Using Zerops CLI (zcli) + +1. **Install Zerops CLI** ```shell +# To download the zcli binary directly, +# use https://github.com/zeropsio/zcli/releases npm i -g @zerops/zcli ``` -Currently, the zCLI is distributed for Linux (x86 & x64 architecture), macOS (x64 & M1 architecture) and Windows (x64 architecture). - -To download the zCLI directly, use the [latest release](https://github.com/zeropsio/zcli/releases) on GitHub. +2. **Open [`Settigs > Access Token Management`](https://app.zerops.io/settings/token-management) in Zerops app, generate a new access token** -2. Go to the Zerops Dashboard, then click on your profile icon at the top left. Click on `Access Token Management`, generate a new access token, and copy it. - -3. Login using zCLI +3. **Login** ```shell zcli login ``` -4. Use your project's root terminal (assuming you've added `zerops.yml` file in your project's root) and push the code. +4. **Navigate to your apps root (where zerops.yml is also placed)** ```shell zcli push ``` -It will prompt you projects you'll have to click `enter` then it will show services click `enter` again to push the code. - - -### Deploying Using Github - -Zerops will automatically deploy your website and update it whenever you push a commit to your repository. - -1. Go to Zerops Dashboard > Your Project > Your Astro Node Service -2. Connect your Repository to update your web app whenever you push your code to your repository `Connect with a Github Repository` & `Connect with a Gitlab Repository`(Make sure pop ups are not blocked in your browser). -3. Choose your github repository. - -You can also push your code manually without pushing the code to your repository by using Zerops CLI from your local terminal. You can also trigger the pipeline from your existing CI/CD pipeline and reDeploy. - - - -## Community Resources +## Resources - [Deploying Astro to Zerops in 3 mins](https://medium.com/@arjun.js/how-to-deploy-astro-to-zerops-4230816a62b4) - [Detailed guide to create a Node.js service](https://docs.zerops.io/nodejs/how-to/create) From 08a6683f92485067a221d014c33c462e9e145303 Mon Sep 17 00:00:00 2001 From: Ales Rechtorik Date: Mon, 22 Apr 2024 22:37:55 +0200 Subject: [PATCH 05/26] typo --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 87ae763599ae7..c507b309c6e12 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -147,7 +147,7 @@ Start by describing how to build and run your app through `zerops.yml` file plac ### Trigger the pipeline by connecting the service to GitHub / GitLab -Zerops continuous deployment on push to branch or a new release connecting your Zerops service with either GitHub or GitLab repository. Open Zerops, navigate to service detail, connect with GitHub / GitLab. +To setup continuous deployment on push to branch or a new release connecting your Zerops service with either GitHub or GitLab repository. Open Zerops, navigate to service detail, connect with GitHub / GitLab. ### Trigger the pipeline Using Zerops CLI (zcli) From b21e30473dcabcecde2d697363d4ccae52cc6164 Mon Sep 17 00:00:00 2001 From: Ales Rechtorik Date: Mon, 22 Apr 2024 22:39:21 +0200 Subject: [PATCH 06/26] typoe --- src/content/docs/en/guides/deploy/zerops.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index c507b309c6e12..7a439e32a099c 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -38,7 +38,6 @@ services: You can either add project and your first Node.js service through the [project add](https://app.zerops.io/dashboard/project-add) wizard in Zerops app, or by importing it using a yaml structure. ```yaml -# project: name: my-astro-sites From 5d67ca16ce93afbed0f357967b1a7261e18f34ac Mon Sep 17 00:00:00 2001 From: Ales Rechtorik Date: Mon, 22 Apr 2024 22:41:22 +0200 Subject: [PATCH 07/26] typo --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 7a439e32a099c..f01191fb32447 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -146,7 +146,7 @@ Start by describing how to build and run your app through `zerops.yml` file plac ### Trigger the pipeline by connecting the service to GitHub / GitLab -To setup continuous deployment on push to branch or a new release connecting your Zerops service with either GitHub or GitLab repository. Open Zerops, navigate to service detail, connect with GitHub / GitLab. +To setup continuous deployment on either push to branch or a new release, go to your Node.js service detail and connect your Zerops service with either GitHub or GitLab repository. ### Trigger the pipeline Using Zerops CLI (zcli) From 3fe87f277be08596864ccf294e3074ec50ba6014 Mon Sep 17 00:00:00 2001 From: Ales Rechtorik Date: Mon, 22 Apr 2024 22:42:57 +0200 Subject: [PATCH 08/26] typo --- src/content/docs/en/guides/deploy/zerops.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index f01191fb32447..9da488f2368c0 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -35,12 +35,11 @@ services: ### Creating your own Zerops project with Astro apps -You can either add project and your first Node.js service through the [project add](https://app.zerops.io/dashboard/project-add) wizard in Zerops app, or by importing it using a yaml structure. +You can either add project and your first Node.js service through the [project add](https://app.zerops.io/dashboard/project-add) wizard in Zerops app, or quickly by importing it using a yaml structure. ```yaml project: name: my-astro-sites - services: - hostname: hellothere type: nodejs@20 From 5bc29f6a2f748ab7d0d09d37efd141a820d5a82d Mon Sep 17 00:00:00 2001 From: Arjun Aditya <73933669+nermalcat69@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:29:18 +0530 Subject: [PATCH 09/26] feat: fix ports and httpsupport --- src/content/docs/en/guides/deploy/zerops.mdx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 9da488f2368c0..9e279354e63c3 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -44,7 +44,8 @@ services: - hostname: hellothere type: nodejs@20 ports: - - port: 3000 + - port: 4321 + httpSupport: true minContainers: 1 ``` @@ -150,21 +151,21 @@ To setup continuous deployment on either push to branch or a new release, go to ### Trigger the pipeline Using Zerops CLI (zcli) -1. **Install Zerops CLI** +1. Install Zerops CLI ```shell # To download the zcli binary directly, # use https://github.com/zeropsio/zcli/releases npm i -g @zerops/zcli ``` -2. **Open [`Settigs > Access Token Management`](https://app.zerops.io/settings/token-management) in Zerops app, generate a new access token** +2. Open [`Settigs > Access Token Management`](https://app.zerops.io/settings/token-management) in Zerops app, generate a new access token -3. **Login** +3. Login ```shell zcli login ``` -4. **Navigate to your apps root (where zerops.yml is also placed)** +4. Navigate to your apps root (where zerops.yml is also placed) ```shell zcli push ``` From c7f14d90925d4414d5d4487a325afae6555dd23a Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:05:28 +0530 Subject: [PATCH 10/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 9e279354e63c3..2f15ebb810eda 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -15,9 +15,9 @@ This guide will walk you through deploying an Astro Node.js service to Zerops. - A Zerops account. If you don’t already have one, you can create an account for free. - `@astrojs/node` package -:::tip[How about a one-click example?] -Import [Zerops x Astro - Node.js](https://github.com/zeropsio/recipe-astro-nodejs) example app into Zerops. -Open [Zerops Dashboard](https://app.zerops.io/dashboard/projects), click "Import project", paste ⬇️ — built, deployed, done. +:::tip[Start from a template] +The [Zerops x Astro - Node.js example app](https://github.com/zeropsio/recipe-astro-nodejs) can be imported directly into your [Zerops Dashboard](https://app.zerops.io/dashboard/projects), and deployed in one click! + ```yaml project: name: astro From edb3513dfdd510f0bfd2612fd44928f09184140d Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:05:39 +0530 Subject: [PATCH 11/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 2f15ebb810eda..319a4d803f497 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -6,7 +6,7 @@ i18nReady: true --- import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' -[Zerops](https://zerops.io/) is a dev-first cloud platform that can be used to deploy an Astro site. As of April 2024, it only supports SSR deployments. +[Zerops](https://zerops.io/) is a dev-first cloud platform that can be used to deploy an SSR Astro site. This guide will walk you through deploying an Astro Node.js service to Zerops. From 2fda2407d403cb83115eeb9c8325600e80107ea3 Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:05:48 +0530 Subject: [PATCH 12/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 319a4d803f497..bf554ce22647a 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -8,7 +8,7 @@ import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' [Zerops](https://zerops.io/) is a dev-first cloud platform that can be used to deploy an SSR Astro site. -This guide will walk you through deploying an Astro Node.js service to Zerops. +This guide will walk you through deploying an Astro project using the Node.js adapter to Zerops. ## Prerequisites From 37b85c029385bdaff875f930436729ba9d5708e6 Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:05:58 +0530 Subject: [PATCH 13/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index bf554ce22647a..d96bab4186a5a 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -12,8 +12,8 @@ This guide will walk you through deploying an Astro project using the Node.js ad ## Prerequisites -- A Zerops account. If you don’t already have one, you can create an account for free. -- `@astrojs/node` package +- **An Astro project using the [`@astrojs/node` SSR adapter](/en/guides/integrations-guide/node/)** +- **A Zerops account** - If you don’t already have one, you can [create a Zerops account](https://zerops.io/) for free. :::tip[Start from a template] The [Zerops x Astro - Node.js example app](https://github.com/zeropsio/recipe-astro-nodejs) can be imported directly into your [Zerops Dashboard](https://app.zerops.io/dashboard/projects), and deployed in one click! From 20f1923ce02e0dbc3c1dcfef2fe7df487663e328 Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:06:06 +0530 Subject: [PATCH 14/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index d96bab4186a5a..369e4ef0cd7c7 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -33,7 +33,7 @@ services: ``` ::: -### Creating your own Zerops project with Astro apps +## Creating a Zerops Node.js project You can either add project and your first Node.js service through the [project add](https://app.zerops.io/dashboard/project-add) wizard in Zerops app, or quickly by importing it using a yaml structure. From 45d6d635c68b66315515b07d28631b3c76a3c006 Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:06:27 +0530 Subject: [PATCH 15/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 369e4ef0cd7c7..c3af342edd923 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -75,7 +75,7 @@ Start by describing how to build and run your app through `zerops.yml` file plac - ```yaml + ```yaml title="zerops.yml" zerops: - setup: hellothere build: @@ -98,7 +98,7 @@ Start by describing how to build and run your app through `zerops.yml` file plac ``` - ```yaml + ```yaml title="zerops.yml" zerops: - setup: hellothere build: @@ -121,7 +121,7 @@ Start by describing how to build and run your app through `zerops.yml` file plac ``` - ```yaml + ```yaml title="zerops.yml" zerops: - setup: astronode build: From 96cd8801d990093f21044492976e31fa866c633f Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:06:35 +0530 Subject: [PATCH 16/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 38 ++++++++++---------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index c3af342edd923..e1c578884a697 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -151,24 +151,26 @@ To setup continuous deployment on either push to branch or a new release, go to ### Trigger the pipeline Using Zerops CLI (zcli) -1. Install Zerops CLI -```shell -# To download the zcli binary directly, -# use https://github.com/zeropsio/zcli/releases -npm i -g @zerops/zcli -``` - -2. Open [`Settigs > Access Token Management`](https://app.zerops.io/settings/token-management) in Zerops app, generate a new access token - -3. Login -```shell -zcli login -``` - -4. Navigate to your apps root (where zerops.yml is also placed) -```shell -zcli push -``` + +1. Install the Zerops CLI. + ```shell + # To download the zcli binary directly, + # use https://github.com/zeropsio/zcli/releases + npm i -g @zerops/zcli + ``` + +2. Open [`Settings > Access Token Management`](https://app.zerops.io/settings/token-management) in the Zerops app and generate a new access token. + +3. Log in using your access token with the following command: + ```shell + zcli login + ``` + +4. Navigate to the root of your app (where `zerops.yml` is located) and run the following command to trigger the deploy: + ```shell + zcli push + ``` + ## Resources From 2a46f5b10fec0cbe2ee07fb2930e53ac56d49489 Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:06:44 +0530 Subject: [PATCH 17/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index e1c578884a697..aed35a0eb4609 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -5,6 +5,7 @@ type: deploy i18nReady: true --- import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro' +import { Steps } from '@astrojs/starlight/components'; [Zerops](https://zerops.io/) is a dev-first cloud platform that can be used to deploy an SSR Astro site. From c270098425cc117871f68640129e13d0abbfc27f Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:06:53 +0530 Subject: [PATCH 18/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index aed35a0eb4609..0bdedc18d56c2 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -146,8 +146,8 @@ Start by describing how to build and run your app through `zerops.yml` file plac -### Trigger the pipeline by connecting the service to GitHub / GitLab -To setup continuous deployment on either push to branch or a new release, go to your Node.js service detail and connect your Zerops service with either GitHub or GitLab repository. +### Trigger the pipeline using GitHub / GitLab +To setup continuous deployment on either a push to a branch or on a new release, go to your Node.js service detail and connect your Zerops service with a GitHub or GitLab repository. ### Trigger the pipeline Using Zerops CLI (zcli) From 62d38243f073879342c79350f6f464b878da1269 Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:07:00 +0530 Subject: [PATCH 19/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 0bdedc18d56c2..87fab7f9c9e13 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -176,6 +176,4 @@ To setup continuous deployment on either a push to a branch or on a new release, ## Resources - [Deploying Astro to Zerops in 3 mins](https://medium.com/@arjun.js/how-to-deploy-astro-to-zerops-4230816a62b4) -- [Detailed guide to create a Node.js service](https://docs.zerops.io/nodejs/how-to/create) -- [Managing Environment Variables](https://docs.zerops.io/nodejs/how-to/env-variables) -- [Updating Internal Ports](https://docs.zerops.io/nodejs/how-to/ports) +- [Detailed guide to creating a Zerops Node.js service](https://docs.zerops.io/nodejs/how-to/create) From c6912c76fede1804de80daaab7ae942e627ddf79 Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:08:54 +0530 Subject: [PATCH 20/26] fix url in resources --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 87fab7f9c9e13..31b1cdcc10aeb 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -175,5 +175,5 @@ To setup continuous deployment on either a push to a branch or on a new release, ## Resources -- [Deploying Astro to Zerops in 3 mins](https://medium.com/@arjun.js/how-to-deploy-astro-to-zerops-4230816a62b4) +- [Deploying Astro to Zerops in 3 mins](https://medium.com/@arjunaditya/how-to-deploy-astro-to-zerops-4230816a62b4) - [Detailed guide to creating a Zerops Node.js service](https://docs.zerops.io/nodejs/how-to/create) From c07917ef238e1cf0e621729a52b0a19724f6bc91 Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:09:26 +0530 Subject: [PATCH 21/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 31b1cdcc10aeb..e36a89fbaf474 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -36,7 +36,9 @@ services: ## Creating a Zerops Node.js project -You can either add project and your first Node.js service through the [project add](https://app.zerops.io/dashboard/project-add) wizard in Zerops app, or quickly by importing it using a yaml structure. +You can create a Node.js service for your Astro site through the [Zerops `project add` wizard](https://app.zerops.io/dashboard/project-add) wizard, or by importing an Astro site using `.yaml`. + +The following YAML structure will setup a project called `my-astro-sites` with a Node.js v20 service called `hellothere`. One Zerops project can contain many Astro apps. ```yaml project: From bcbb7d888dd4fceffa76fe4b38daea9891111124 Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:09:42 +0530 Subject: [PATCH 22/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index e36a89fbaf474..21afc9643983b 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -52,7 +52,6 @@ services: minContainers: 1 ``` -This will setup a project called `my-astro-sites`, with a Node.js v20 service called `hellothere`, which will be ready for you to deploy your Astro app into. One Zerops project can contain many Astro apps. ### Setting Up Node.js SSR in your app Zerops is using [`@astrojs/node`](/en/guides/integrations-guide/node/) package to run the app. Add it to your deps, if you haven't already, and modify your Astro config to utilize it. From a8e1a90cc010ce1e1bf4316c887bf3596ad069cf Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:09:54 +0530 Subject: [PATCH 23/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 21afc9643983b..665ebb4446d57 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -53,22 +53,6 @@ services: ``` -### Setting Up Node.js SSR in your app -Zerops is using [`@astrojs/node`](/en/guides/integrations-guide/node/) package to run the app. Add it to your deps, if you haven't already, and modify your Astro config to utilize it. - -Here are the necessary lines in your `astro.config.mjs` file: -```js title="astro.config.mjs" - import { defineConfig } from 'astro/config'; - import node from "@astrojs/node"; - - export default defineConfig({ - output: 'server', - adapter: node({ - mode: "standalone" - }), - }); -``` - ## Building and deploying your app to Zerops Now that you you've set up your app and prepared a Node.js service on Zerops, we can trigger the build and deploy pipeline on Zerops. From d78938dcb556c39a2fdb69d4154e108f5de54235 Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:10:05 +0530 Subject: [PATCH 24/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 665ebb4446d57..005afa75276df 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -55,7 +55,7 @@ services: ## Building and deploying your app to Zerops -Now that you you've set up your app and prepared a Node.js service on Zerops, we can trigger the build and deploy pipeline on Zerops. +Now that you've prepared a Node.js service on Zerops, you will need to create a `zerops.yml` file at the root of your project to trigger the build and deploy pipeline on Zerops. Start by describing how to build and run your app through `zerops.yml` file placed at the root of your codebase. `setup:` part should match the hostname your chose for your service, in case of our example - `hellothere`. From 8ee83146b4724454169f8aa85c67a44d5ad45bfe Mon Sep 17 00:00:00 2001 From: Nermal Date: Sun, 5 May 2024 03:10:15 +0530 Subject: [PATCH 25/26] Update src/content/docs/en/guides/deploy/zerops.mdx Co-authored-by: Sarah Rainsberger --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index 005afa75276df..ebb009ab2d10b 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -57,7 +57,7 @@ services: Now that you've prepared a Node.js service on Zerops, you will need to create a `zerops.yml` file at the root of your project to trigger the build and deploy pipeline on Zerops. -Start by describing how to build and run your app through `zerops.yml` file placed at the root of your codebase. `setup:` part should match the hostname your chose for your service, in case of our example - `hellothere`. +The following example shows configuring the required build and run operations for the example project with hostname `hellothere`: From 59e5cd3c3ff6fb2b81d16b03f834b8f12b62619a Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Sat, 4 May 2024 21:02:51 -0300 Subject: [PATCH 26/26] wizard wizard! --- src/content/docs/en/guides/deploy/zerops.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/guides/deploy/zerops.mdx b/src/content/docs/en/guides/deploy/zerops.mdx index ebb009ab2d10b..ba47aa195b64b 100644 --- a/src/content/docs/en/guides/deploy/zerops.mdx +++ b/src/content/docs/en/guides/deploy/zerops.mdx @@ -36,7 +36,7 @@ services: ## Creating a Zerops Node.js project -You can create a Node.js service for your Astro site through the [Zerops `project add` wizard](https://app.zerops.io/dashboard/project-add) wizard, or by importing an Astro site using `.yaml`. +You can create a Node.js service for your Astro site through the [Zerops `project add` wizard](https://app.zerops.io/dashboard/project-add), or by importing an Astro site using `.yaml`. The following YAML structure will setup a project called `my-astro-sites` with a Node.js v20 service called `hellothere`. One Zerops project can contain many Astro apps.