Skip to content

(쿠버네티스 전문가 양성과정)파이널 프로젝트

Notifications You must be signed in to change notification settings

sonkeehoon/final_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Final-Project

Flask를 통한 웹페이지 구성

templates 폴더 : html 파일들

static 폴더 : css, js 파일들과 이미지 폴더

EC2 instance(OS : ubuntu)에 flask 실행환경 구축



ubuntu에서 flask 웹서버를 구축할때 쓰던 명령어들


  • sudo git clone https://github.com/sonkeehoon/final_project.git
  • sudo cd final_project
  • pip3 install -r requirements.txt # 필요 모듈 및 패키지 설치
  • /static/script.js의 var url부분을 퍼블릭IP로 변경하자(5000번 포트가 열려 있어야 함)
  • sudo python3 app.py (서버 실행)
  • 접속 방법 "퍼블릭IP:5000"