Skip to content

Commit

Permalink
Merge pull request #7 from Ashesi-Org/server
Browse files Browse the repository at this point in the history
setup: added CI/CD azure deploy file
  • Loading branch information
Simon-157 authored Dec 8, 2023
2 parents a711f4b + b0cc300 commit c1b99de
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 c1b99de

Please sign in to comment.