From 0183223f32245ab2e68933ce6944fb95eef74e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Mon, 25 Dec 2023 22:59:31 -0500 Subject: [PATCH] revert(ci): no more bun i give up. the bun wouldn't cool down. --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c54bd1..902a31c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,13 +7,13 @@ stages: build_stage: stage: build # use node docker image as enviroment - image: oven/bun:debian + image: node:latest script: # install & build the NuxtJS application - apt update - apt-get install -y --no-install-recommends python3 build-essential - - bun install - - bun run --bun build + - npm install + - npm run build # define artifacts which are shared between stages artifacts: paths: @@ -47,7 +47,7 @@ deploy_stage: # restart Node.js and reload nginx configuration - 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} 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 environment: name: staging