-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfresh_install.sh
More file actions
executable file
·30 lines (23 loc) · 777 Bytes
/
fresh_install.sh
File metadata and controls
executable file
·30 lines (23 loc) · 777 Bytes
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
#!/bin/bash
# run from the root folder of the project (either in Docker or not)
if [ -f ".env" ]; then
echo "Lets goo";
else
ls;
echo "Probably not in the laravel root folder. (.env file not found)";
exit;
fi
composer install --ignore-platform-reqs
yarn
# if there is the storage linked, then remove and link again
# i.e. when switching docker and non-docker, the paths don't match
rm -f ./public/storage && php artisan storage:link
php artisan key:generate
php artisan migrate:fresh --seed
php artisan view:clear
php artisan config:clear
php artisan vendor:publish --all
sudo chmod -R 777 storage
# if [ "$SCOUT_DRIVER" == "elastic" ] && [ "$DISABLE_ELASTIC" != "true" ]; then
# # todo: build a new index, if necessary, import models with scout
# fi