-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1143 from superfly/laravel-improvements
Laravel docker improvements
- Loading branch information
Showing
18 changed files
with
228 additions
and
1,018 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
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ storage/logs/* | |
*.env* | ||
.rr.yml | ||
rr | ||
vendor | ||
|
||
# 2. Ignore common files/directories we don't need | ||
.vscode | ||
|
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
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 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ $# -gt 0 ];then | ||
# If we passed a command, run it as root | ||
exec "$@" | ||
else | ||
# Otherwise start the web server | ||
|
||
## Prepare Laravel caches | ||
/usr/bin/php /var/www/html/artisan config:cache --no-ansi -q | ||
/usr/bin/php /var/www/html/artisan route:cache --no-ansi -q | ||
/usr/bin/php /var/www/html/artisan view:cache --no-ansi -q | ||
chown -R webuser:webgroup /var/www/html | ||
|
||
exec /init | ||
fi |
5 changes: 5 additions & 0 deletions
5
scanner/templates/laravel/common/docker/nginx-websockets.conf
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,5 @@ | ||
# See https://laravel.com/docs/9.x/octane#reloading-the-workers | ||
map $http_upgrade $connection_upgrade { | ||
default upgrade; | ||
'' close; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.