File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -83,5 +83,6 @@ ENTRYPOINT ["/rails/bin/docker-entrypoint"]
83
83
# Start server via Thruster by default, this can be overwritten by envionment variable
84
84
EXPOSE 4000
85
85
ENV HTTP_PORT=4000
86
+ ENV GOOD_JOB_PROBE_PORT=4000
86
87
ENV SERVER_TYPE=thrust
87
88
CMD ["./bin/start.sh" ]
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
4
- cd " $SCRIPT_DIR " || { echo " Failed to change directory to $SCRIPT_DIR " ; exit 1; }
5
4
6
5
if [ " $SERVER_TYPE " == " thrust" ]; then
7
6
echo " Starting Thrust server..."
8
- . /thrust . /rails server
7
+ exec " $SCRIPT_DIR " /thrust " $SCRIPT_DIR " /rails server
9
8
elif [ " $SERVER_TYPE " == " background" ]; then
10
9
echo " Starting background server..."
11
- . /bundle exec good_job start
10
+ exec " $SCRIPT_DIR " /bundle exec good_job start
12
11
else
13
12
echo " SERVER_TYPE variable: '$SERVER_TYPE ' unknown. Allowed values ['thrust','background']"
14
- cd - && exit 1
13
+ exit 1
15
14
fi
16
- cd - || return 2
You can’t perform that action at this time.
0 commit comments