Laravel: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „= Links = = Projekt einrichten = <syntaxhighlight lang="bash"> PROJ=langutor PASSW=topsecret BASE=/home/ws/php/$PROJ cd $(basename $BASE) composer create-project laravel/laravel $PROJ cd $BASE composer require laravel/ui php artisan ui bootstrap --auth dbtool create-db-and-user app$PROJ $PROJ "$PASSW" sed -i -e "s/DB_DATABASE=.*/DB_DATABASE=app$PROJ" \ -e "s/DB_USERNAME=.*/DB_USERNAME=$PROJ" \ -e "s/DB_PASSWORD=.*/DB_USERNAME=$PASSWD" .env </syntaxhi…“) |
|||
Zeile 15: | Zeile 15: | ||
-e "s/DB_USERNAME=.*/DB_USERNAME=$PROJ" \ | -e "s/DB_USERNAME=.*/DB_USERNAME=$PROJ" \ | ||
-e "s/DB_PASSWORD=.*/DB_USERNAME=$PASSWD" .env | -e "s/DB_PASSWORD=.*/DB_USERNAME=$PASSWD" .env | ||
</syntaxhighlight> | |||
= Projekt aktualisieren = | |||
<syntaxhighlight lang="bash"> | |||
npm install | |||
npm run dev | |||
</syntaxhighlight> | </syntaxhighlight> |
Version vom 28. Oktober 2023, 19:02 Uhr
Links
Projekt einrichten
PROJ=langutor
PASSW=topsecret
BASE=/home/ws/php/$PROJ
cd $(basename $BASE)
composer create-project laravel/laravel $PROJ
cd $BASE
composer require laravel/ui
php artisan ui bootstrap --auth
dbtool create-db-and-user app$PROJ $PROJ "$PASSW"
sed -i -e "s/DB_DATABASE=.*/DB_DATABASE=app$PROJ" \
-e "s/DB_USERNAME=.*/DB_USERNAME=$PROJ" \
-e "s/DB_PASSWORD=.*/DB_USERNAME=$PASSWD" .env
Projekt aktualisieren
npm install
npm run dev