-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change how right start command is chosen to improve reliability
- Loading branch information
Showing
16 changed files
with
35 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
kubernetes/production/headless-lms/patch-calculate-page-visit-stats.yml
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
kubernetes/production/headless-lms/patch-ended-exams-processor.yml
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
kubernetes/production/headless-lms/patch-open-university-registration-link-fetcher.yml
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
kubernetes/production/headless-lms/patch-peer-review-updater.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
kubernetes/production/headless-lms/patch-service-info-fetcher.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
BASEDIR="$(dirname "${BASH_SOURCE[0]}")" | ||
FOLDER_PATH="$BASEDIR/.." | ||
ABSOLUTE_PATH=$(realpath "$FOLDER_PATH") | ||
|
||
# Cd to the root of the headless-lms folder | ||
echo "\$ cd $ABSOLUTE_PATH" | ||
cd "$ABSOLUTE_PATH" || exit | ||
|
||
|
||
if [ "$#" -eq 0 ]; then | ||
echo "Error: Please give the program name as an argument e.g. \"./run.sh start-server\"" | ||
exit 1 | ||
fi | ||
|
||
if [ -f "headless-lms-entrypoint" ]; then | ||
# This happens in production and in bin/test | ||
echo "\$ ./headless-lms-entrypoint $*" | ||
exec ./headless-lms-entrypoint "$*" | ||
else | ||
# This happens in bin/dev | ||
echo "\$ cargo run -- $*" | ||
exec cargo run -- "$*" | ||
fi |