singhjagpreet commited on
Commit
fac529d
β€’
1 Parent(s): d7e1d8f

deployment configuration

Browse files
.ebextensions/python.config ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ option_setting:
2
+ "aws:elasticbeanstalk:container:python":
3
+ WSGIPath: application:application
app.py β†’ application.py RENAMED
@@ -7,7 +7,9 @@ from src.exception import CustomException
7
 
8
  from src.pipeline.predict_pipeline import CustomData,PredictPipeline
9
 
10
- app = Flask(__name__)
 
 
11
 
12
  ## route for home page
13
 
@@ -41,4 +43,4 @@ def predict_datapoint():
41
  raise CustomException(e,sys)
42
 
43
  if __name__ == '__main__':
44
- app.run(host='0.0.0.0',debug=True)
 
7
 
8
  from src.pipeline.predict_pipeline import CustomData,PredictPipeline
9
 
10
+ application = Flask(__name__)
11
+
12
+ app = application
13
 
14
  ## route for home page
15
 
 
43
  raise CustomException(e,sys)
44
 
45
  if __name__ == '__main__':
46
+ app.run(host='0.0.0.0')
logs/09_13_2023_01_23_55.log/09_13_2023_01_23_55.log ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ [ 2023-09-13 01:23:56,412 ] 187 werkzeug - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
2
+ * Running on all addresses (0.0.0.0)
3
+ * Running on http://127.0.0.1:5000
4
+ * Running on http://10.0.0.91:5000
5
+ [ 2023-09-13 01:23:56,412 ] 187 werkzeug - INFO - Press CTRL+C to quit
6
+ [ 2023-09-13 01:23:56,413 ] 187 werkzeug - INFO - * Restarting with stat
logs/09_13_2023_01_23_56.log/09_13_2023_01_23_56.log ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ [ 2023-09-13 01:23:57,007 ] 187 werkzeug - WARNING - * Debugger is active!
2
+ [ 2023-09-13 01:23:57,014 ] 187 werkzeug - INFO - * Debugger PIN: 107-465-610
3
+ [ 2023-09-13 01:24:02,473 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 01:24:02] "POST /predictdata HTTP/1.1" 200 -
4
+ [ 2023-09-13 01:24:19,252 ] 187 werkzeug - INFO - 127.0.0.1 - - [13/Sep/2023 01:24:19] "POST /predictdata HTTP/1.1" 200 -