Skip to content

Commit f85098b

Browse files
committed
Update environment configuration with PYTHONPATH
1 parent b884911 commit f85098b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.ebextensions/01_application.config

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
option_settings:
22
aws:elasticbeanstalk:container:python:
3-
WSGIPath: application:application
3+
WSGIPath: application:app
44
aws:elasticbeanstalk:application:environment:
5-
PORT: 8000
5+
PORT: "5000"
6+
PYTHONPATH: "/var/app/current"
67
aws:elasticbeanstalk:environment:proxy:
78
ProxyServer: nginx
89
aws:elasticbeanstalk:environment:process:default:
9-
Port: 8000
10+
Port: 5000
1011
Protocol: HTTP
1112

1213
files:
@@ -16,7 +17,7 @@ files:
1617
group: root
1718
content: |
1819
upstream backend {
19-
server 127.0.0.1:8000;
20+
server 127.0.0.1:5000;
2021
}
2122

2223
server {

0 commit comments

Comments
 (0)