Spaces:
Runtime error
Runtime error
| set -x # Enable debug mode | |
| echo "Current directory: $(pwd)" | |
| echo "Contents of /app:" | |
| ls -la /app | |
| echo "Contents of /app/gateway:" | |
| ls -la /app/gateway | |
| echo "Contents of /app/cf5s:" | |
| ls -la /app/cf5s | |
| # Try to find the executables | |
| find /app -name gateway -type f | |
| find /app -name cf5s -type f | |
| # Start services (using find results) | |
| GATEWAY_PATH=$(find /app -name gateway -type f) | |
| CF5S_PATH=$(find /app -name cf5s -type f) | |
| if [ -n "$GATEWAY_PATH" ]; then | |
| cd $(dirname "$GATEWAY_PATH") && $GATEWAY_PATH & | |
| else | |
| echo "Gateway executable not found!" | |
| fi | |
| if [ -n "$CF5S_PATH" ]; then | |
| cd $(dirname "$CF5S_PATH") && $CF5S_PATH | |
| else | |
| echo "CF5S executable not found!" | |
| fi | |