diff --git a/scripts/direct/install.bat b/scripts/direct/install.bat new file mode 100644 index 0000000..d7a3e90 --- /dev/null +++ b/scripts/direct/install.bat @@ -0,0 +1,19 @@ +@REM First installation of apps + +@REM ~~~~~~~~ Laravel App ~~~~~~~~ + +@REM go to backend folder +cd ../../ + +@REM install PHP packges +CALL composer install + +@REM laravel app key +CALL php artisan key:generate + +@REM install NPM packges +CALL npm i -s + +@REM run build scripts +CALL npm run build +CALL npm run prod diff --git a/scripts/direct/install.sh b/scripts/direct/install.sh new file mode 100644 index 0000000..77e15d7 --- /dev/null +++ b/scripts/direct/install.sh @@ -0,0 +1,19 @@ +# First installation of apps + +# ~~~~~~~~ Laravel App ~~~~~~~~ + +# go to backend folder +cd ../../ + +# install PHP packges +composer install + +# laravel app key +php artisan key:generate + +# install NPM packges +npm i -s + +# run build script +npm run build +npm run prod diff --git a/scripts/direct/migrate.bat b/scripts/direct/migrate.bat new file mode 100644 index 0000000..cb480ce --- /dev/null +++ b/scripts/direct/migrate.bat @@ -0,0 +1,9 @@ +@REM First migrations + +@REM ~~~~~~~~ Laravel App ~~~~~~~~ + +@REM go to backend folder +cd ../../ + +@REM run app migrations +CALL php artisan migrate:fresh --seed --force diff --git a/scripts/direct/migrate.sh b/scripts/direct/migrate.sh new file mode 100644 index 0000000..ed1544e --- /dev/null +++ b/scripts/direct/migrate.sh @@ -0,0 +1,9 @@ +# First migrations + +# ~~~~~~~~ Laravel App ~~~~~~~~ + +# go to backend folder +cd ../../ + +# run app migrations +php artisan migrate:fresh --seed --force diff --git a/scripts/direct/update.bat b/scripts/direct/update.bat new file mode 100644 index 0000000..294361d --- /dev/null +++ b/scripts/direct/update.bat @@ -0,0 +1,16 @@ +@REM You need to run this on every update + +@REM ~~~~~~~~ Laravel App ~~~~~~~~ + +@REM go to backend folder +cd ../../ + +@REM migrate database +CALL php artisan migrate + +@REM install NPM packges +CALL npm i -s + +@REM run build script +CALL npm run build +CALL npm run prod diff --git a/scripts/direct/update.sh b/scripts/direct/update.sh new file mode 100644 index 0000000..20c3f5b --- /dev/null +++ b/scripts/direct/update.sh @@ -0,0 +1,16 @@ +# You need to run this on every update + +# ~~~~~~~~ Laravel App ~~~~~~~~ + +# go to backend folder +cd ../../ + +# migrate database +php artisan migrate + +# install NPM packges +npm i -s + +# run build script +npm run build +npm run prod