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:
21
21
22
22
1 . Set ` ` in ` app.yaml ` to the name of your Cloud Storage Bucket.
23
23
24
- ## Deploy to App Engine
25
-
26
- ** Prerequisites**
24
+ ## Run Locally
27
25
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 ) .
29
29
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.
31
33
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 :
33
35
34
36
```
35
- mkdir /tmp/gs
37
+ php -S localhost:8080
36
38
```
37
39
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.
42
41
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
47
43
48
- > Note: Your PHP executable path may be different than the one above.
44
+ ** Prerequisites **
49
45
50
- Now browse to ` http ://localhost:8080 ` to view the sample .
46
+ - Install the [ Google Cloud SDK ] ( https ://developers.google.com/cloud/sdk/ ) .
51
47
52
48
** Deploy with gcloud**
53
49
You can’t perform that action at this time.
0 commit comments