Skip to content

implemented telebit tunelling #2

implemented telebit tunelling

implemented telebit tunelling #2

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- development
jobs:
build:
runs-on: self-hosted # Self-hosted Ubuntu runner
steps:
- name: Checkout code
uses: actions/checkout@v2 # Action to checkout your repository
- name: Stop PM2 process "node"
run: |
if pm2 list | grep -q 'node'; then
pm2 stop node
else
echo "PM2 process 'node' is not running."
fi
- name: Install Backend Dependencies
run: |
cd backend
npm install
- name: Install Frontend Dependencies
run: |
cd frontend
npm install
- name: Start Backend Application with PM2
run: |
cd backend
pm2 start index.js --name node # Start your backend application using PM2, replace 'index.js' with your entry file if different
- name: Start Frontend Application
run: |
cd frontend
npm start & # Start your frontend application, replace 'npm start' with your actual start command if different
- name: Tunnel Frontend with Telebit
run: |
cd frontend
~/telebit http 3000