Skip to content

Commit

Permalink
setup: added CI/CD azure deploy file
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-157 committed Dec 8, 2023
1 parent d2f4d4b commit b0cc300
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/azuredeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: iConnect Server

on:
pull_request:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Deploy using SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: 22
script: |
/home/azureuser/iconnect
git pull origin main
git status
pm2 kill
export NODE_ENV=production
npm install
npm run tsc
npm run start:prod # Start the application using pm2
1 change: 0 additions & 1 deletion client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function App() {
return (

<div className='flex h-screen w-screen bg-app-background-1 overflow-hidden' >
<div className='flex h-full no-scrollbar' >
<Routes>
<Route path={HOME} element={<HomePage setSelectedLink = {setSelectedLink} />} />
<Route path={LANDINGPAGE} element={<LandingPage />} />
Expand Down

0 comments on commit b0cc300

Please sign in to comment.