Skip to content

Commit c37f9d6

Browse files
authored
More README fixes (GoogleCloudPlatform#14)
1 parent ee513a9 commit c37f9d6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ Open `http://localhost:8080/` in your browser and see *Hello World...*.
7676

7777
# Run your function in a container
7878

79+
Add the Functions Framework to your `composer.json` file using `composer`.
80+
81+
```sh
82+
composer require google/cloud-functions-framework
83+
```
84+
7985
Create an `index.php` file with the following contents:
8086

8187
```php
@@ -89,12 +95,6 @@ function helloHttp(Request $request)
8995
}
9096
```
9197

92-
Now install the Functions Framework:
93-
94-
```sh
95-
composer require google-cloud/functions-framework
96-
```
97-
9898
Build the container using the example Dockerfile:
9999

100100
```
@@ -109,7 +109,6 @@ Run the cloud functions framework container:
109109
docker run -p 8080:8080 \
110110
-e FUNCTION_TARGET=helloHttp \
111111
-e FUNCTION_SIGNATURE_TYPE=http \
112-
-e FUNCTION_SOURCE=index.php \
113112
my-cloud-function
114113
```
115114

0 commit comments

Comments
 (0)