Skip to content

Commit 60cf267

Browse files
committed
Update README.md
1 parent 277315f commit 60cf267

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

0x1A-application_server/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,14 @@ ubuntu@229-web-01:~/AirBnB_clone_v2$ curl 127.0.0.1:5000/airbnb-onepage/
6161
Hello HBNB!ubuntu@229-web-01:~/AirBnB_clone_v2$
6262
```
6363

64+
[1. Set up production with Gunicorn](./README.md)
65+
66+
Now that you have your development environment set up, let’s get your production application server set up with `Gunicorn` on `web-01`, port `5000`. You’ll need to install `Gunicorn` and any libraries required by your application. Your `Flask` application object will serve as a WSGI entry point into your application. This will be your production environment. As you can see we want the production and development of your application to use the same port, so the conditions for serving your dynamic content are the same in both environments.
67+
68+
**Requirements**:
69+
70+
* Install `Gunicorn` and any other libraries required by your application.
71+
* The Flask application object should be called `app`. (This will allow us to run and check your code)
72+
* You will serve the same content from the same route as in the previous task. You can verify that it’s working by binding a `Gunicorn` instance to localhost listening on port `5000` with your application object as the entry point.
73+
* In order to check your code, the checker will bind a `Gunicorn` instance to port `6000`, so make sure nothing is listening on that port.
74+

0 commit comments

Comments
 (0)