Skip to content

Commit 307c67e

Browse files
committed
Add a gunicorn service unit file to serve airbnb clone
1 parent e7d6343 commit 307c67e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[Unit]
2+
Description=Gunicorn instance to serve AirBnB Clone Project
3+
After=network.target
4+
After=syslog.target
5+
6+
[Service]
7+
User=ubuntu
8+
Group=www-data
9+
WorkingDirectory=/home/ubuntu/AirBnB_clone_v4
10+
ExecStart=/home/ubuntu/.local/bin/gunicorn --workers 3 --bind 0.0.0.0:5003 web_dynamic.2-hbnb:app --access-logfile /tmp/airbnb-access.log --error-logfile /tmp/airbnb-error.log
11+
Restart=on-failure
12+
13+
[Install]
14+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)