-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Laravel on Cloud Run #1680
Merged
Merged
Changes from 36 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
d3ea481
Laravel on Cloud Run -- initial code
glasnt f7f1c3c
Add procfile with re-routed log files to Cloud Run visible places
glasnt 300df47
Create README.md
glasnt e7fb062
Fix formatting
glasnt d43b0eb
Show demo outcome
glasnt 17488fa
php-cs-fixer
glasnt f4ba7e5
Resize/rescale demo screenshot
glasnt 34d1c4f
Update README.md
glasnt a3775db
Update README.md for launch
glasnt 1c8be7b
Merge branch 'master' into laravel
glasnt 3e18156
php-cs-fixer w/.php-cs-fixer.dist.php config
glasnt 11c8056
Merge branch 'laravel' of github.com:glasnt/php-docs-samples into lar…
glasnt 09c539a
Apply php-cs-fix to all files in config, outside my demo
glasnt 0e36cb5
Update run/laravel/app/Providers/RouteServiceProvider.php
glasnt 84b934b
Merge branch 'master' into laravel
glasnt 07af9e2
Merge branch 'master' into laravel
glasnt 8c8da02
Merge branch 'master' into laravel
glasnt 9bd19f3
Merge branch 'master' into laravel
glasnt 9c0f499
Update dependencies
glasnt 7b3c3ef
Merge branch 'main' into laravel
glasnt 4842971
Merge branch 'main' into laravel
glasnt b788437
Revert "Apply php-cs-fix to all files in config, outside my demo"
glasnt 9e41a88
Merge branch 'laravel' of github.com:glasnt/php-docs-samples into lar…
glasnt aab5810
Move PROJECTNUM
glasnt 065ed58
Update REGION, clarify update steps
glasnt 8e39de8
update minimum PHP (pending changes in comments)
glasnt d8c9e4f
Move tests to test/ (might fix kokoro?)
glasnt 875159a
Reorder template envs
glasnt d6d02a4
Make registry name an envvar
glasnt 96eae35
Unpin expected version output
glasnt e24ab87
Update run/laravel/routes/web.php
glasnt 36549f4
Update asset bucket/url notes
glasnt c8c47b6
Merge branch 'laravel' of github.com:glasnt/php-docs-samples into lar…
glasnt cbb857c
remove unused app/helpers.php, update docs to suit
glasnt ab14be7
Update reasoning for local installations
glasnt ac9f702
Merge branch 'main' into laravel
glasnt 5c8e22b
Update run/laravel/README.md
bshaffer 62aca7d
Merge branch 'main' into laravel
glasnt 87f466e
Merge branch 'main' into laravel
glasnt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
APP_NAME=MyApp | ||
APP_ENV=local | ||
|
||
# this value will be generated | ||
APP_KEY= | ||
|
||
|
||
# Logging | ||
LOG_CHANNEL=syslog | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
# Database | ||
DB_CONNECTION=mysql | ||
DB_SOCKET=/cloudsql/PROJECT_ID:REGION:INSTANCE | ||
DB_DATABASE= | ||
DB_USERNAME= | ||
DB_PASSWORD= | ||
|
||
# Static (generate ASSET_URL from the bucket name) | ||
ASSET_BUCKET=BUCKET_NAME | ||
ASSET_URL=https://storage.googleapis.com/${ASSET_BUCKET} |
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,2 @@ | ||
#!include:.gitignore | ||
.git |
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,17 @@ | ||
/node_modules | ||
/public/build | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
.env | ||
.env.backup | ||
.phpunit.result.cache | ||
Homestead.json | ||
Homestead.yaml | ||
auth.json | ||
npm-debug.log | ||
yarn-error.log | ||
/.idea | ||
/.vscode | ||
package.lock |
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,3 @@ | ||
web: pid1 --nginxBinaryPath nginx --nginxConfigPath /layers/google.php.webconfig/webconfig/nginx.conf --serverConfigPath /layers/google.php.webconfig/webconfig/nginxserver.conf --nginxErrLogFilePath /var/log/nginx.log --customAppCmd "php-fpm -R --nodaemonize --fpm-config /layers/google.php.webconfig/webconfig/php-fpm.conf" --pid1LogFilePath /var/log/pid1.log --mimeTypesPath /layers/google.utils.nginx/nginx/conf/mime.types --customAppSocket /layers/google.php.webconfig/webconfig/app.sock | ||
migrate: php artisan migrate | ||
static: npm run update-static |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just confirmed this setup vs the current buildpack web config, and it's still 'up to date', and the logs end up in Cloud Run successfully.