You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It took me a long time to figure this out, but if I use a symbolic link pointing to the deployment directory (e.g., /opt/traveler/current) instead of the directory itself (/opt/traveler/traveler-APS-1.5.5), the scripts fail due to module resolution errors.
For example, if I run "./etc/init.d/traveler-webapp stop" from /opt//traveler/current it fails with the error "[PM2][ERROR] Process or Namespace /opt/traveler/current/app.js not found", but it works if I run it from /opt/traveler/traveler-APS-1.5.5.
I tested that changing:
MY_DIR=dirname $0
CUR_DIR=pwd
cd $MY_DIR
MY_DIR=pwd
cd $CUR_DIR
to:
MY_DIR=dirname $0
CUR_DIR=pwd -P
cd $MY_DIR
MY_DIR=pwd -P
cd $CUR_DIR
solves the problem.
The text was updated successfully, but these errors were encountered:
It took me a long time to figure this out, but if I use a symbolic link pointing to the deployment directory (e.g., /opt/traveler/current) instead of the directory itself (/opt/traveler/traveler-APS-1.5.5), the scripts fail due to module resolution errors.
For example, if I run "./etc/init.d/traveler-webapp stop" from /opt//traveler/current it fails with the error "[PM2][ERROR] Process or Namespace /opt/traveler/current/app.js not found", but it works if I run it from /opt/traveler/traveler-APS-1.5.5.
I tested that changing:
MY_DIR=
dirname $0
CUR_DIR=
pwd
cd $MY_DIR
MY_DIR=
pwd
cd $CUR_DIR
to:
MY_DIR=
dirname $0
CUR_DIR=
pwd -P
cd $MY_DIR
MY_DIR=
pwd -P
cd $CUR_DIR
solves the problem.
The text was updated successfully, but these errors were encountered: