Skip to content

adding updated nginx.conf #66

adding updated nginx.conf

adding updated nginx.conf #66

Workflow file for this run

on:
push:
branches:
- main
workflow_run:
workflows: ["run-tests.yml"]
types:
- completed
name: deploy
jobs:
build:
name: Run Deploy Script on EC2
runs-on: ubuntu-latest
steps:
- name: Execute pull scripts on EC2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AWS_HOST }}
username: ${{ secrets.AWS_USERNAME }}
key: ${{ secrets.AWS_KEY }}
script: |
cd /home/ec2-user/byte-server
pm2 stop server.ts
git pull
bun install
pm2 start server.ts