revert(ci): no more bun

i give up. the bun wouldn't cool down.
This commit is contained in:
parent ec0210bb2e
commit 0183223f32
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -7,13 +7,13 @@ stages:
build_stage: build_stage:
stage: build stage: build
# use node docker image as enviroment # use node docker image as enviroment
image: oven/bun:debian image: node:latest
script: script:
# install & build the NuxtJS application # install & build the NuxtJS application
- apt update - apt update
- apt-get install -y --no-install-recommends python3 build-essential - apt-get install -y --no-install-recommends python3 build-essential
- bun install - npm install
- bun run --bun build - npm run build
# define artifacts which are shared between stages # define artifacts which are shared between stages
artifacts: artifacts:
paths: paths:
@ -47,7 +47,7 @@ deploy_stage:
# restart Node.js and reload nginx configuration # restart Node.js and reload nginx configuration
- ssh rockfic@${DEPLOY_SERVER} 'mongosh mongodb://localhost --eval "use ${DB_NAME}; db.dropDatabase();"' - ssh rockfic@${DEPLOY_SERVER} 'mongosh mongodb://localhost --eval "use ${DB_NAME}; db.dropDatabase();"'
- ssh rockfic@${DEPLOY_SERVER} 'cd migrator && bun install && bun run ./index.ts' - ssh rockfic@${DEPLOY_SERVER} 'cd migrator && bun install && bun run ./index.ts'
- ssh rockfic@${DEPLOY_SERVER} bun --watch run "~/rockfic-staging/.output/server/index.mjs" \&\>/dev/null \& disown \%1 - ssh rockfic@${DEPLOY_SERVER} node run "~/rockfic-staging/.output/server/index.mjs" \&\>/dev/null \& disown \%1
- ssh rockfic@${DEPLOY_SERVER} systemctl reload apache2 - ssh rockfic@${DEPLOY_SERVER} systemctl reload apache2
environment: environment:
name: staging name: staging