-
Notifications
You must be signed in to change notification settings - Fork 39
/
remp.sh
executable file
·53 lines (42 loc) · 1.18 KB
/
remp.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
51
52
#!/bin/bash
cd ${APP_NAME}
if [ ! -f ".env" ]
then
# create .env with default values, preserve user permissions
cp -p .env.example .env
composer install
yarn install
chmod -R u+x node_modules
yarn link --cwd ../Package/remp
yarn link remp
npm run | grep "all-dev"
if [ $? -eq "0" ]; then
yarn run all-dev
else
yarn run dev
fi
if [ -f "artisan" ]
then
php artisan migrate
php artisan db:seed
php artisan key:generate
php artisan ide-helper:generate
php artisan ide-helper:meta
php artisan ide-helper:models
php artisan list | grep "jwt:secret" > /dev/null
if [ $? -eq "0" ]; then
php artisan jwt:secret
fi
# Update permissions for Laravel storage (cache) folder
chmod -R 777 storage
elif [ -f "bin/command.php" ]
then
cp app/config/config.local.neon.example app/config/config.local.neon
php bin/command.php migrate:migrate
php bin/command.php db:seed
php bin/command.php demo:seed
# Update permissions for Nette temp (cache) & log folder
chmod -R 777 temp log
fi
fi
php-fpm