Update build/start-container.sh
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
This commit is contained in:
@@ -8,12 +8,7 @@ set -e
|
|||||||
|
|
||||||
if [ ! -f /var/www/html/artisan ]; then
|
if [ ! -f /var/www/html/artisan ]; then
|
||||||
echo "No existing Laravel project found"
|
echo "No existing Laravel project found"
|
||||||
composer create-project laravel/laravel /var/www/html "$LARAVEL_VERSION"
|
exit
|
||||||
npm install -D tailwindcss postcss autoprefixer --prefix /var/www/html
|
|
||||||
sed -i "/export default defineConfig({/a\ server: {host: '0.0.0.0'}," /var/www/html/vite.config.js
|
|
||||||
echo -e "@tailwind base;\n@tailwind components;\n@tailwind utilities;" >> /var/www/html/resources/css/app.css
|
|
||||||
echo -e '/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n content: [\n "./resources/**/*.blade.php",\n "./resources/**/*.js",\n "./resources/**/*.vue",\n ],\n theme: {\n extend: {},\n },\n plugins: [],\n}' > /var/www/html/tailwind.config.js
|
|
||||||
npx tailwindcss init -p
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$AUTO_START_NPM_DEV" = true ]]; then
|
if [[ "$AUTO_START_NPM_DEV" = true ]]; then
|
||||||
@@ -22,4 +17,4 @@ if [[ "$AUTO_START_NPM_DEV" = true ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Staring Laravel"
|
echo "Staring Laravel"
|
||||||
php /var/www/html/artisan serve --host=0.0.0.0 --port=8080
|
php /var/www/html/artisan serve
|
||||||
|
|||||||
Reference in New Issue
Block a user