lightspeed commited on
Commit
e3d5ebd
·
verified ·
1 Parent(s): c24939e

Upload start.sh

Browse files
Files changed (1) hide show
  1. start.sh +24 -4
start.sh CHANGED
@@ -1,10 +1,30 @@
1
  #!/bin/bash
2
  set -x # Enable debug mode
3
 
4
- # List contents of directories
 
 
 
5
  ls -la /app/gateway
 
6
  ls -la /app/cf5s
7
 
8
- # Start services
9
- cd /app/gateway && ./gateway &
10
- cd /app/cf5s && ./cf5s
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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