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

Change startup commands for bun and deno #6531

Merged
merged 15 commits into from
Jul 24, 2023
13 changes: 11 additions & 2 deletions javascript/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,18 @@ language:
- npm install
command: pm2-runtime start app.js -i $(nproc)
deno:
jim-king-2000 marked this conversation as resolved.
Show resolved Hide resolved
command: deno run --allow-net --allow-read --allow-env app.ts
deps:
- npm
bootstrap:
- npm -g install pm2
command: nohup pm2-runtime start "deno run --allow-net --allow-read=. app.ts" -i max
bun:
jim-king-2000 marked this conversation as resolved.
Show resolved Hide resolved
command: bun run app.ts
deps:
- npm
bootstrap:
- npm -g install pm2
- bun install
command: nohup pm2-runtime start "NODE_ENV=production bun app.ts" -i max

framework:
engines:
Expand Down
8 changes: 8 additions & 0 deletions javascript/deno.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ FROM denoland/deno:alpine-1.34.2

WORKDIR /usr/src/app

{{#deps}}
RUN apk add {{{.}}}
{{/deps}}

{{#bootstrap}}
RUN {{{.}}}
{{/bootstrap}}

{{#files}}
COPY '{{source}}' '{{target}}'
{{/files}}
Expand Down
2 changes: 1 addition & 1 deletion javascript/stricjs/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework:
website: stricjs.gitbook.io/docs/quick-start/intro
version: 3.1
version: 3.2

engines:
- bun
Loading