@@ -69,9 +69,6 @@ After the commands complete, your project contains the following files:
69
69
- ``index.php``: Defines a sample webpage
70
70
- ``serverless.yml``: Configures the deployment
71
71
72
- Deploy the Sample Application
73
- -----------------------------
74
-
75
72
To validate your setup, try to deploy the default application. The
76
73
following command deploys the application and returns a URL that renders
77
74
a webpage that shows the Bref logo:
@@ -85,8 +82,8 @@ Add the MongoDB Extension to Your Configuration
85
82
86
83
After you initialize the project, you can add the ``mongodb`` extension.
87
84
Locate the ``Serverless config`` name in the list of extensions provided
88
- by the `bref/extra-php-extension
89
- <https://github.com/brefphp/extra-php-extensions>`__ package.
85
+ by the :github: `bref/extra-php-extension <brefphp/extra-php-extensions>`
86
+ package.
90
87
91
88
Add it to the ``layers`` of the function in the ``serverless.yaml``
92
89
file, as shown in the following code:
@@ -122,8 +119,8 @@ following command:
122
119
serverless deploy
123
120
124
121
The application page displays an error message because the ``MONGODB_URI``
125
- environment variable is not set.The following section explains how to
126
- set your connection string as an environment variable.
122
+ environment variable is not set. The following section explains how to
123
+ set your connection string in an environment variable.
127
124
128
125
Set AWS Credentials
129
126
-------------------
@@ -185,4 +182,4 @@ Finally, deploy with the new configuration:
185
182
serverless deploy
186
183
187
184
After deployment completes, you can access the URL and see the
188
- list of planets from your collection.
185
+ list of planets from your collection.
0 commit comments