Skip to content

Commit 3f31ebc

Browse files
committed
Move startup.sh functionality to GitHub workflow
- Remove startup.sh from build artifacts - Switch ecosystem.config.js to use dist/server.js directly - Remove startup.sh file (no longer needed) - Add npm rebuild in workflow for native modules
1 parent 72989a3 commit 3f31ebc

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

.github/workflows/node.js.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
path: |
3131
dist
3232
ecosystem.config.js
33-
startup.sh
3433
package.json
3534
package-lock.json
3635
@@ -100,6 +99,8 @@ jobs:
10099
script: |
101100
cd /home/puppeteer-user/candycomp-location-correction
102101
npm ci
102+
# Rebuild native modules for current Node version
103+
npm rebuild || true
103104
104105
- name: Start or Reload and Save PM2 Process on Linode
105106
uses: appleboy/ssh-action@master

ecosystem.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
apps: [
33
{
44
name: 'address-validation-service',
5-
script: 'startup.sh',
5+
script: 'dist/server.js',
66
cwd: '/home/puppeteer-user/candycomp-location-correction',
77
exec_mode: 'fork',
88
max_memory_restart: '256M',

startup.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)