-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add installation, update, and migration scripts
- Loading branch information
Showing
6 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |