Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: static section and updated yml in zerops guide #8496

Merged
merged 23 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
475159a
chore: fix wrong cache file in zerops.yml script
nermalcat69 Jun 8, 2024
d45f901
Merge branch 'main' into main
sarah11918 Jun 8, 2024
f0b51c9
Merge branch 'withastro:main' into main
nermalcat69 Jun 12, 2024
597b18d
chore: update zerops.yml script
nermalcat69 Jun 12, 2024
580a72e
Merge branch 'main' into main
nermalcat69 Jun 13, 2024
d7e041e
Merge branch 'main' into main
nermalcat69 Jun 13, 2024
5abc010
feat: zerops update + lowercase "Yarn"
nermalcat69 Jun 13, 2024
cd6575b
Merge branch 'main' of https://github.com/nermalcat69/docs
nermalcat69 Jun 13, 2024
61d7fb3
Merge branch 'main' into main
nermalcat69 Jun 13, 2024
1ad92e8
Update src/components/tabs/PackageManagerTabs.astro
sarah11918 Jun 14, 2024
7575bbd
Merge branch 'main' into main
nermalcat69 Jun 15, 2024
521baee
Merge branch 'main' into main
nermalcat69 Jun 16, 2024
83a3012
Merge branch 'withastro:main' into main
nermalcat69 Jun 17, 2024
76b14c6
chore: cleaning up
nermalcat69 Jun 17, 2024
b466d78
chore: add static support
nermalcat69 Jun 17, 2024
6875865
fix link
sarah11918 Jun 17, 2024
67abf68
Merge branch 'main' into main
nermalcat69 Jun 17, 2024
0deb235
Apply suggestions from code review
sarah11918 Jun 18, 2024
e48f63f
Apply suggestions from code review
sarah11918 Jun 18, 2024
25bd6f9
Merge branch 'main' into main
sarah11918 Jun 18, 2024
e0ce7bf
Merge branch 'main' into main
nermalcat69 Jun 18, 2024
8b3ed05
fix links
sarah11918 Jun 18, 2024
83e520c
Merge branch 'main' into main
sarah11918 Jun 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update zerops.yml script
  • Loading branch information
nermalcat69 committed Jun 12, 2024
commit 597b18d0953738bd4cd3dc82d2031bd6b02bec9b
114 changes: 63 additions & 51 deletions src/content/docs/en/guides/deploy/zerops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,71 +62,83 @@ The following example shows configuring the required build and run operations fo
<PackageManagerTabs>
<Fragment slot="npm">
```yaml title="zerops.yml"
zerops:
- setup: hellothere
build:
base: nodejs@20
buildCommands:
- npm i
- npm run build
deploy:
- dist
- package.json
- node_modules
cache:
- node_modules
- package-lock.json
run:
start: node dist/server/entry.mjs
zerops:
- setup: app
build:
base: nodejs@20
buildCommands:
- npm i
- npm run build
deployFiles:
- dist
- package.json
- node_modules
cache:
- node_modules
- package-lock.json
run:
base: nodejs@20
ports:
- port: 3000
httpSupport: true
envVariables:
PORT: 3000
HOST: 0.0.0.0
NODE_ENV: production
start: npm start
```
</Fragment>
<Fragment slot="pnpm">
```yaml title="zerops.yml"
zerops:
- setup: hellothere
build:
base: nodejs@20
buildCommands:
- pnpm i
- pnpm run build
deploy:
- dist
- package.json
- node_modules
cache:
- node_modules
- pnpm-lock.yaml
run:
start: node dist/server/entry.mjs
zerops:
- setup: app
build:
base: nodejs@20
buildCommands:
- pnpm i
- pnpm run build
deployFiles:
- dist
- package.json
- node_modules
cache:
- node_modules
- pnpm-lock.yaml
run:
base: nodejs@20
ports:
- port: 3000
httpSupport: true
envVariables:
PORT: 3000
HOST: 0.0.0.0
NODE_ENV: production
start: pnpm start
```
</Fragment>
<Fragment slot="yarn">
```yaml title="zerops.yml"
zerops:
- setup: astronode
build:
base: nodejs@20
buildCommands:
- yarn
- yarn build
deploy:
- dist
- package.json
- node_modules
cache:
- node_modules
- yarn.lock
run:
start: node dist/server/entry.mjs
zerops:
- setup: app
build:
base: nodejs@20
buildCommands:
- yarn
- yarn build
deployFiles:
- dist
- package.json
- node_modules
cache:
- node_modules
- yarn.lock
run:
base: nodejs@20
ports:
- port: 3000
httpSupport: true
envVariables:
PORT: 3000
HOST: 0.0.0.0
NODE_ENV: production
start: yarn start
```
</Fragment>
</PackageManagerTabs>
Expand Down
Loading