File tree Expand file tree Collapse file tree 1 file changed +13
-17
lines changed
Expand file tree Collapse file tree 1 file changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -21,33 +21,29 @@ Before you can run or deploy the sample, you will need to do the following:
2121
22221 . Set ` <your-bucket-name> ` in ` app.yaml ` to the name of your Cloud Storage Bucket.
2323
24- ## Deploy to App Engine
25-
26- ** Prerequisites**
24+ ## Run Locally
2725
28- - Install the [ Google Cloud SDK] ( https://developers.google.com/cloud/sdk/ ) .
26+ First, set the ` GOOGLE_APPLICATION_CREDENTIALS ` environment variable to the
27+ path to a set of downloaded
28+ [ service account credentials] ( https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually ) .
2929
30- ** Run Locally**
30+ Next, set the ` GOOGLE_STORAGE_BUCKET ` environment variable to the name of a
31+ Cloud Storage bucket in the same project as the credentials you downloaded.
32+ Make sure the service account you created has access.
3133
32- Create a local directory for the Dev AppServer to use for Cloud Storage :
34+ Finally, run the PHP built-in web server to serve the demo app :
3335
3436```
35- mkdir /tmp/gs
37+ php -S localhost:8080
3638```
3739
38- > Note: This directory can be wherever you like, as long as it's consistent with
39- the ` --storage_path ` option below.
40-
41- Run the sample with ` dev_appserver.py ` :
40+ Now browse to ` http://localhost:8080 ` to view the sample.
4241
43- ```
44- cd /path/to/php-docs-samples/appengine/standard/storage
45- dev_appserver.py --php_executable=/usr/local/bin/php-cgi --storage_path=/tmp/gs .
46- ```
42+ ## Deploy to App Engine
4743
48- > Note: Your PHP executable path may be different than the one above.
44+ ** Prerequisites **
4945
50- Now browse to ` http ://localhost:8080 ` to view the sample .
46+ - Install the [ Google Cloud SDK ] ( https ://developers.google.com/cloud/sdk/ ) .
5147
5248** Deploy with gcloud**
5349
You can’t perform that action at this time.
0 commit comments