okiba/buildfiles/start_services.sh

13 lines
227 B
Bash
Raw Normal View History

2022-12-13 20:07:50 +05:00
#!/bin/bash
2022-12-13 23:46:50 +05:00
#Start backend
cd /root/okiba-org-frontend; pnpm start &
2022-12-13 20:07:50 +05:00
#Start frontend
2022-12-13 23:46:50 +05:00
cd /root/okiba-org-backend; pnpm run dev &
2022-12-13 20:07:50 +05:00
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?