Skip to content

Commit

Permalink
Switch to bun
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug6739 committed Mar 31, 2024
1 parent 3f09bd9 commit 385a251
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 25,653 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy_to_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@ jobs:
- name: Install dependencies
run: |
cd frontend
npm install
bun install
cd ../dashboard
npm install
bun install
cd ../backend
npm install
bun install
- name: Build frontend
run: |
cd frontend
npm run build
bun run build
- name: Build dashboard
run: |
cd dashboard
npm run build
bun run build
- name: Build backend
run: |
cd backend
npm run build
bun run build
- name: Set up SSH
run: |
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
ssh -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "cd ${INPUT_REMOTE} && tar -xzf frontend.tar.gz && tar -xzf dashboard.tar.gz && tar -xzf backend.tar.gz && rm frontend.tar.gz dashboard.tar.gz backend.tar.gz"
- name: Install dependencies for backend
run: |
ssh -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "source ~/.bashrc && cd ${INPUT_REMOTE} && cd backend && npm install --production"
ssh -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "source ~/.bashrc && cd ${INPUT_REMOTE} && cd backend && bun install --production"
- name: Start application
run: |
ssh -i deploy_key ${SSH_USER}@"${INPUT_HOST}" "cd ${INPUT_REMOTE} && NODE_ENV='production' DATABASE_PASSWORD='${{ secrets.DATABASE_PASSWORD }}' DATABASE_USER='${{ secrets.DATABASE_USER }}' JWT_SECRET='${{ secrets.JWT_SECRET }}' pm2 start ecosystem.config.js --update-env"
Expand Down
Binary file added backend/bun.lockb
Binary file not shown.
Loading

0 comments on commit 385a251

Please sign in to comment.