Skip to content
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 39 commits into from
Dec 13, 2022
Merged
Changes from 2 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d3ea481
Laravel on Cloud Run -- initial code
glasnt Jul 27, 2022
f7f1c3c
Add procfile with re-routed log files to Cloud Run visible places
glasnt Aug 5, 2022
300df47
Create README.md
glasnt Aug 29, 2022
e7fb062
Fix formatting
glasnt Aug 29, 2022
d43b0eb
Show demo outcome
glasnt Aug 29, 2022
17488fa
php-cs-fixer
glasnt Aug 29, 2022
f4ba7e5
Resize/rescale demo screenshot
glasnt Aug 29, 2022
34d1c4f
Update README.md
glasnt Aug 29, 2022
a3775db
Update README.md for launch
glasnt Aug 29, 2022
1c8be7b
Merge branch 'master' into laravel
glasnt Aug 29, 2022
3e18156
php-cs-fixer w/.php-cs-fixer.dist.php config
glasnt Aug 29, 2022
11c8056
Merge branch 'laravel' of github.com:glasnt/php-docs-samples into lar…
glasnt Aug 29, 2022
09c539a
Apply php-cs-fix to all files in config, outside my demo
glasnt Aug 29, 2022
0e36cb5
Update run/laravel/app/Providers/RouteServiceProvider.php
glasnt Sep 12, 2022
84b934b
Merge branch 'master' into laravel
glasnt Sep 12, 2022
07af9e2
Merge branch 'master' into laravel
glasnt Oct 4, 2022
8c8da02
Merge branch 'master' into laravel
glasnt Nov 4, 2022
9bd19f3
Merge branch 'master' into laravel
glasnt Nov 29, 2022
9c0f499
Update dependencies
glasnt Dec 1, 2022
7b3c3ef
Merge branch 'main' into laravel
glasnt Dec 1, 2022
4842971
Merge branch 'main' into laravel
glasnt Dec 11, 2022
b788437
Revert "Apply php-cs-fix to all files in config, outside my demo"
glasnt Dec 11, 2022
9e41a88
Merge branch 'laravel' of github.com:glasnt/php-docs-samples into lar…
glasnt Dec 11, 2022
aab5810
Move PROJECTNUM
glasnt Dec 11, 2022
065ed58
Update REGION, clarify update steps
glasnt Dec 11, 2022
8e39de8
update minimum PHP (pending changes in comments)
glasnt Dec 11, 2022
d8c9e4f
Move tests to test/ (might fix kokoro?)
glasnt Dec 11, 2022
875159a
Reorder template envs
glasnt Dec 11, 2022
d6d02a4
Make registry name an envvar
glasnt Dec 11, 2022
96eae35
Unpin expected version output
glasnt Dec 11, 2022
e24ab87
Update run/laravel/routes/web.php
glasnt Dec 11, 2022
36549f4
Update asset bucket/url notes
glasnt Dec 11, 2022
c8c47b6
Merge branch 'laravel' of github.com:glasnt/php-docs-samples into lar…
glasnt Dec 11, 2022
cbb857c
remove unused app/helpers.php, update docs to suit
glasnt Dec 12, 2022
ab14be7
Update reasoning for local installations
glasnt Dec 12, 2022
ac9f702
Merge branch 'main' into laravel
glasnt Dec 12, 2022
5c8e22b
Update run/laravel/README.md
bshaffer Dec 12, 2022
62aca7d
Merge branch 'main' into laravel
glasnt Dec 12, 2022
87f466e
Merge branch 'main' into laravel
glasnt Dec 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions run/laravel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ This tutorial uses the following billable components of Google Cloud:

## Confirm your PHP setup

You will need PHP on your local system in order to generate run `php artisan` commands later.
bshaffer marked this conversation as resolved.
Show resolved Hide resolved

* Check you have PHP 8.0.2 or higher installed (or [install it](https://www.php.net/manual/en/install.php)):

```bash
Expand All @@ -81,6 +83,8 @@ This tutorial uses the following billable components of Google Cloud:

## Confirm your Node setup

You will need Node on your local system in order to generate static assets later.

* Check you have node and npm installed (or [install them](https://cloud.google.com/nodejs/docs/setup)):

```bash
Expand All @@ -96,7 +100,6 @@ This tutorial uses the following billable components of Google Cloud:
```



## Preparing backing services

There are many variables in this tutorial. Set these early to help with copying code snippets:
Expand Down Expand Up @@ -186,7 +189,8 @@ export ASSET_BUCKET=${PROJECT_ID}-static
* ASSET_BUCKET: `${ASSET_BUCKET}`
glasnt marked this conversation as resolved.
Show resolved Hide resolved

Note: `ASSET_URL` is generated from `ASSET_BUCKET` and doesn't need to be hardcoded.
* Update app key:

* Update the `APP_KEY` by generating a new key:
```bash
php artisan key:generate
```
Expand Down Expand Up @@ -222,7 +226,6 @@ export ASSET_BUCKET=${PROJECT_ID}-static
--pack image=${REGISTRY_NAME}/laravel
```


### Applying database migrations

With Cloud Run Jobs, you can use the same container from your service to perform administration tasks, such as database migrations.
Expand Down