Skip to content

Commit

Permalink
deno yaml changes + init -> initCommands
Browse files Browse the repository at this point in the history
  • Loading branch information
nermalcat69 committed Dec 1, 2024
1 parent d640315 commit 79601ce
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 28 deletions.
2 changes: 1 addition & 1 deletion apps/docs/content/bun/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your Bun application is started.
# init:
# initCommands:
# - rm -rf ./cache

# REQUIRED. Your Bun application start command
Expand Down
30 changes: 13 additions & 17 deletions apps/docs/content/deno/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,17 @@ zerops:

# REQUIRED. Build your application
buildCommands:
- npm i
- npm run build
- deno task build

# REQUIRED. Select which files / folders to deploy after
# the build has successfully finished
deployFiles:
- dist
- package.json
- node_modules
- deno.jsonc

# OPTIONAL. Which files / folders you want to cache for the next build.
# Next builds will be faster when the cache is used.
cache: node_modules
# cache: directory

# ==== how to run your application ====
run:
Expand All @@ -65,11 +63,11 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your Deno application is started.
# init:
# initCommands:
# - rm -rf ./cache

# REQUIRED. Your Deno application start command
start: npm start
start: deno task start
```
The top-level element is always `zerops`.
Expand Down Expand Up @@ -247,8 +245,7 @@ zerops:
# REQUIRED. Build your application
buildCommands:
- npm i
- npm run build
- deno task build
...
```

Expand All @@ -267,8 +264,8 @@ Use following syntax to run all commands in the same environment context. For ex
```yml
buildCommands:
- |
npm i
npm run build
deno test
deno task build
```

#### Run build commands as a separate shell instances
Expand All @@ -277,8 +274,7 @@ When the following syntax is used, each command is triggered in a separate envir

```yml
buildCommands:
- npm i
- npm run build
- deno task build
```

#### Command exit code
Expand Down Expand Up @@ -682,10 +678,10 @@ zerops:
# ==== how to run your application ====
run:
# REQUIRED. Your Deno application start command
start: npm start
start: deno task start
```

We recommend starting your Deno application using `npm start`.
We recommend starting your Deno application using `deno task start`.

### health check

Expand Down Expand Up @@ -718,7 +714,7 @@ zerops:
# ==== how to run your application ====
run:
# REQUIRED. Your Deno application start command
start: npm start
start: deno task start
# OPTIONAL. Define a health check with a HTTP GET request option.
# Configures the check on http://127.0.0.1:80/status
Expand Down Expand Up @@ -751,7 +747,7 @@ zerops:
# ==== how to run your application ====
run:
# REQUIRED. Your Deno application start command
start: npm start
start: deno task start
# OPTIONAL. Define a health check with a shell command.
healthCheck:
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/dotnet/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your .NET application is started.
# init:
# initCommands:
# - rm -rf ./cache

# REQUIRED. Your .NET application start command
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/elixir/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your Elixir application is started.
# init:
# initCommands:
# - rm -rf ./cache

# REQUIRED. Your Elixir application start command
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/gleam/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your Gleam application is started.
# init:
# initCommands:
# - rm -rf ./cache

# REQUIRED. Your Gleam application start command
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/go/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your Go application is started.
# init:
# initCommands:
# - rm -rf ./cache

# REQUIRED. Your Go application start command
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/java/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your Java application is started.
# init:
# initCommands:
# - rm -rf ./cache

# REQUIRED. Your Java application start command
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/nginx/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your Nginx application is started.
# init:
# initCommands:
# - rm -rf ./cache

# OPTIONAL. Customise the folder that will be used as the root of the publicly
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/nodejs/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your Node.js application is started.
# init:
# initCommands:
# - rm -rf ./cache

# REQUIRED. Your Node.js application start command
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/php/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your PHP application is started.
# init:
# initCommands:
# - rm -rf ./cache

# OPTIONAL. Customise the folder that will be used as the root of the publicly
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/python/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your Python application is started.
# init:
# initCommands:
# - rm -rf ./cache

# REQUIRED. Your Python application start command
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/rust/how-to/build-pipeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ zerops:
# OPTIONAL. Run one or more commands each time a new runtime container
# is started or restarted. These commands are triggered before
# your Rust application is started.
# init:
# initCommands:
# - rm -rf ./cache

# REQUIRED. Your Rust application start command
Expand Down

0 comments on commit 79601ce

Please sign in to comment.