File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy To Server
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Setup Node.js
13+ uses : actions/setup-node@v4
14+ with :
15+ node-version : " 20"
16+
17+ - name : Deploy to Server
18+ 19+ with :
20+ host : ${{secrets.SERVER_HOST}}
21+ key : ${{secrets.SERVER_SSH_KEY}}
22+ username : ${{secrets.SERVER_USERNAME}}
23+ script : |
24+ cd /var/www/micah-code-error-integration-telex
25+ # Stash changes to prevent conflicts
26+ git stash
27+ git pull https://github.com/telexintegrations/code-error-microservice main
28+ npm install
29+ export NODE_OPTIONS="--max-old-space-size=4096"
30+ npm run start:prod
31+ echo "Deployment to Server Completed"
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ import "./services/zeromqService";
33import { ENV_CONFIG } from "./utils/envConfig" ;
44
55app . listen ( ENV_CONFIG . PORT , ( ) => {
6- console . log ( `Microservice running on port ${ ENV_CONFIG . PORT } ` ) ;
6+ console . log ( `Microservice running on http://localhost: ${ ENV_CONFIG . PORT } ` ) ;
77} ) ;
You can’t perform that action at this time.
0 commit comments