Skip to content

Commit b6bbf50

Browse files
committed
chore: fix node path in shebang
1 parent 133852b commit b6bbf50

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/ecosystem.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"max_restarts": 10,
1212
"min_uptime": 10000,
1313
"watch": false,
14+
"interpreter": "/usr/local/node/bin/node",
1415
"ignore_watch": ["node_modules", "src", ".env.*", "myservers.cfg"],
1516
"log_file": "/var/log/graphql-api.log",
1617
"kill_timeout": 10000

api/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default defineConfig(({ mode }): ViteUserConfig => {
9696
interop: 'auto',
9797
banner: (chunk) => {
9898
if (chunk.fileName === 'main.js' || chunk.fileName === 'cli.js') {
99-
return '#!/bin/sh\n":" //# comment; /opt/homebrew/bin/node "$0" "$@" 2>/dev/null && exit 0 || /usr/local/bin/node "$0" "$@" 2>/dev/null && exit 0 || /usr/local/node/bin/node "$0" "$@" 2>/dev/null && exit 0 || /usr/bin/env node "$0" "$@" 2>/dev/null && exit 0 || { echo "Node.js not found or errored. Exiting."; exit 1; }\n';
99+
return '#!/usr/local/node/bin/node\n';
100100
}
101101
return '';
102102
},

0 commit comments

Comments
 (0)