Spaces:
Runtime error
Runtime error
Upload start.sh
Browse files
start.sh
CHANGED
|
@@ -1,10 +1,30 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -x # Enable debug mode
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
| 5 |
ls -la /app/gateway
|
|
|
|
| 6 |
ls -la /app/cf5s
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
set -x # Enable debug mode
|
| 3 |
|
| 4 |
+
echo "Current directory: $(pwd)"
|
| 5 |
+
echo "Contents of /app:"
|
| 6 |
+
ls -la /app
|
| 7 |
+
echo "Contents of /app/gateway:"
|
| 8 |
ls -la /app/gateway
|
| 9 |
+
echo "Contents of /app/cf5s:"
|
| 10 |
ls -la /app/cf5s
|
| 11 |
|
| 12 |
+
# Try to find the executables
|
| 13 |
+
find /app -name gateway -type f
|
| 14 |
+
find /app -name cf5s -type f
|
| 15 |
+
|
| 16 |
+
# Start services (using find results)
|
| 17 |
+
GATEWAY_PATH=$(find /app -name gateway -type f)
|
| 18 |
+
CF5S_PATH=$(find /app -name cf5s -type f)
|
| 19 |
+
|
| 20 |
+
if [ -n "$GATEWAY_PATH" ]; then
|
| 21 |
+
cd $(dirname "$GATEWAY_PATH") && $GATEWAY_PATH &
|
| 22 |
+
else
|
| 23 |
+
echo "Gateway executable not found!"
|
| 24 |
+
fi
|
| 25 |
+
|
| 26 |
+
if [ -n "$CF5S_PATH" ]; then
|
| 27 |
+
cd $(dirname "$CF5S_PATH") && $CF5S_PATH
|
| 28 |
+
else
|
| 29 |
+
echo "CF5S executable not found!"
|
| 30 |
+
fi
|