fix: use cwd when running application

This commit is contained in:
Eli Bosley
2024-11-06 15:27:02 -05:00
parent abd8e09908
commit e27776df3d

View File

@@ -11,5 +11,6 @@ export const start = async () => {
execSync(`${PM2_PATH} start ${join(import.meta.dirname, '../../', 'ecosystem.config.json')} --update-env`, { execSync(`${PM2_PATH} start ${join(import.meta.dirname, '../../', 'ecosystem.config.json')} --update-env`, {
env: process.env, env: process.env,
stdio: 'inherit', stdio: 'inherit',
cwd: process.cwd()
}); });
}; };