try to implement the global containerization
This commit is contained in:
1 parent
e2b471312c
commit
ed38086d09
24 files changed
+966
No files matched your search
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
setup_laravel() {
|
||||
echo "Setting up Laravel..."
|
||||
|
||||
run php artisan key:generate --force
|
||||
run php artisan config:clear
|
||||
run php artisan cache:clear
|
||||
run php artisan migrate --force --seed
|
||||
|
||||
if [ "$IS_DEV" = 1 ]; then
|
||||
chmod -R 775 storage bootstrap/cache
|
||||
chmod -R 755 public
|
||||
else
|
||||
chown -R www-data:www-data storage bootstrap/cache
|
||||
chmod -R 775 storage bootstrap/cache
|
||||
fi
|
||||
|
||||
run php artisan storage:link
|
||||
}
|
||||
Reference in new issue
Block a user