-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
50 lines (33 loc) · 966 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
*) machine="UNKNOWN:${unameOut}"
esac
if [ "$machine" == "Mac" ]; then
/Applications/xampp/xamppfiles/bin/mysql -uroot -e "CREATE DATABASE IF NOT EXISTS rentalVOD;" # Mac
elif [ "$machine" == "Linux" ]; then
/opt/lampp/bin/mysql -uroot -e "CREATE DATABASE IF NOT EXISTS rentalVOD;" # Linux
else
echo ${machine}
(exit 0)
fi
if [ $? -eq 1 ]; then
echo "Nie udalo sie utworzyc bazy danych."
exit
fi
php -r "copy('.env.example', '.env');"
composer install
# composer update
composer require stripe/stripe-php
composer require bensampo/laravel-enum
composer require --dev barryvdh/laravel-ide-helper
composer require hoa/ruler
php artisan key:generate
php artisan storage:link
# php artisan migrate
# php artisan db:seed
php artisan migrate:fresh --seed
php artisan ide-helper:generate
php artisan serve
code .