We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537349b commit a18730eCopy full SHA for a18730e
entrypoint.sh
@@ -1,7 +1,22 @@
1
#!/bin/bash
2
set -euo pipefail
3
4
-# Start the main Rust binary with runtime args/envs
+# If an explicit tool is passed (migration/seed_db), run it directly
5
+if [[ $# -gt 0 ]]; then
6
+ case "$1" in
7
+ migration|seed_db)
8
+ exec /app/"$@"
9
+ ;;
10
+ esac
11
+fi
12
+
13
+# If no args passed (default case for migrator service), run SeaORM migration up
14
+if [[ "$(basename "$0")" == "entrypoint.sh" ]]; then
15
+ echo "🔧 Running SeaORM migration up (initial setup if needed)..."
16
+ exec /app/migration up
17
18
19
+# Otherwise, start the main backend app
20
exec /app/refactor_platform_rs \
21
-l "$BACKEND_LOG_FILTER_LEVEL" \
22
-i "$BACKEND_INTERFACE" \
0 commit comments