Programing Language/Python
-
Python) Flask 서버 작업후 업데이트 하는방법Programing Language/Python 2020. 12. 13. 22:34
Gunicorn + nginx + falsk로 서버 작업을 하다 가상환경에서 실행중인 py파일을 업데이트 하려면 systemctl restart myproject 을 적용하면 from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello There!" //추가 코드 @app.route("/test") def hi(): return "test" if __name__ == "__main__": app.run(host='0.0.0.0') 추가 코드가 적용된다.
-
Python) Flask+Gunicorn+Nginx 설치 (참고 자료)Programing Language/Python 2020. 12. 2. 01:25
www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04 How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu | DigitalOcean In this guide, you will build a Python application using the Flask microframework on Ubuntu 18.04. The bulk of this article will be about how to set up the Gunicorn application server and how to launch th..