chore: update service startup script
This commit is contained in:
parent
89b055b329
commit
d5cfef0fa6
1 changed files with 11 additions and 5 deletions
|
|
@ -23,17 +23,23 @@ pkill -f "target/debug/graphic_designers" || true
|
|||
pkill -f "target/debug/social_media_managers" || true
|
||||
pkill -f "target/debug/fitness_trainers" || true
|
||||
pkill -f "target/debug/catering_services" || true
|
||||
pkill -f "target/debug/payments" || true
|
||||
pkill -f "target/debug/ugc_content_creators" || true
|
||||
pkill -f "target/debug/employees" || true
|
||||
|
||||
apps=(
|
||||
"gateway" "users" "companies" "job_seekers" "customers"
|
||||
"photographers" "makeup_artists" "tutors" "developers" "video_editors"
|
||||
"graphic_designers" "social_media_managers" "fitness_trainers" "catering_services" "payments"
|
||||
"graphic_designers" "social_media_managers" "fitness_trainers" "catering_services"
|
||||
"ugc_content_creators" "employees"
|
||||
)
|
||||
|
||||
for app in "${apps[@]}"; do
|
||||
echo "Starting $app..."
|
||||
./target/debug/$app > "$app.log" 2>&1 &
|
||||
if [[ -x "./target/debug/$app" ]]; then
|
||||
echo "Starting $app..."
|
||||
nohup ./target/debug/$app > "$app.log" 2>&1 &
|
||||
else
|
||||
echo "Skipping $app (binary not found at ./target/debug/$app)"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "All services booted up!"
|
||||
echo "All available services booted up!"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue