okiba/buildfiles/start_services.sh

13 lines
227 B
Bash

#!/bin/bash
#Start backend
cd /root/okiba-org-frontend; pnpm start &
#Start frontend
cd /root/okiba-org-backend; pnpm run dev &
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?