Skip to content

Commit

Permalink
Add installation, update, and migration scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
relliv committed Sep 1, 2022
1 parent 8a7287b commit 8e4b76a
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/direct/install.bat
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions scripts/direct/install.sh
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions scripts/direct/migrate.bat
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions scripts/direct/migrate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# First migrations

# ~~~~~~~~ Laravel App ~~~~~~~~

# go to backend folder
cd ../../

# run app migrations
php artisan migrate:fresh --seed --force
16 changes: 16 additions & 0 deletions scripts/direct/update.bat
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions scripts/direct/update.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8e4b76a

Please sign in to comment.