We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4f6025 commit a5fe4d5Copy full SHA for a5fe4d5
1 file changed
entrypoint.sh
@@ -4,6 +4,14 @@ set -e
4
ASPNETCORE_URLS="${ASPNETCORE_URLS:-http://0.0.0.0:8080}"
5
NEXT_PORT="${NEXT_PORT:-3000}"
6
7
+# If running an AppTask (e.g. --AppTasks=migrate), run only the .NET app and exit
8
+if [[ "$*" == *"--AppTasks"* ]]; then
9
+ echo "Running AppTask with args: $*"
10
+ ASPNETCORE_CONTENTROOT="/app/api" ASPNETCORE_URLS="${ASPNETCORE_URLS}" \
11
+ dotnet /app/api/TechStacks.dll "$@"
12
+ exit $?
13
+fi
14
+
15
echo "Starting ASP.NET Core on ${ASPNETCORE_URLS}..."
16
DOTNET_ENV_VARS=("ASPNETCORE_URLS=${ASPNETCORE_URLS}")
17
@@ -36,4 +44,3 @@ EXIT_CODE=$?
36
44
37
45
echo "One of the processes exited with code ${EXIT_CODE}, shutting down the other..."
38
46
term_handler
39
-
0 commit comments