Files
simple-laravel/build/start-container.sh
vista 129af47626
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
Update build/start-container.sh
2023-08-15 14:49:07 +02:00

21 lines
359 B
Bash

#!/usr/bin/env bash
# exit when any command fails
set -e
# init nvm
\. $NVM_DIR/nvm.sh
if [ ! -f /var/www/html/artisan ]; then
echo "No existing Laravel project found"
exit
fi
if [[ "$AUTO_START_NPM_DEV" = true ]]; then
echo "Staring npm dev"
npm run dev --prefix /var/www/html &
fi
echo "Staring Laravel"
php /var/www/html/artisan serve