okiba/buildfiles/start_services.sh

14 lines
277 B
Bash

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