Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Project

기본적인 Flask 웹 애플리케이션 프로젝트입니다.

설치 방법

  1. 가상환경 생성 및 활성화
python -m venv venv
source venv/bin/activate  # Mac/Linux
# Windows의 경우: venv\Scripts\activate
  1. 필요한 패키지 설치
pip install -r requirements.txt

실행 방법

python app.py

서버가 실행되면 http://localhost:5001에서 웹 애플리케이션에 접속할 수 있습니다.

데몬 서비스 관리 (macOS)

데몬 서비스 등록 및 시작

# plist 파일을 LaunchDaemons 디렉토리로 복사
sudo cp com.hagibis.monitor.plist /Library/LaunchDaemons/

# 파일 권한 설정
sudo chown root:wheel /Library/LaunchDaemons/com.hagibis.monitor.plist
sudo chmod 644 /Library/LaunchDaemons/com.hagibis.monitor.plist

# 데몬 로드 (시작)
sudo launchctl load /Library/LaunchDaemons/com.hagibis.monitor.plist

데몬 서비스 상태 확인

sudo launchctl list | grep com.hagibis.monitor

데몬 서비스 중지

sudo launchctl unload /Library/LaunchDaemons/com.hagibis.monitor.plist

로그 확인

  • 에러 로그: /tmp/hagibis.monitor.err
  • 출력 로그: /tmp/hagibis.monitor.out

프로젝트 구조

.
├── README.md
├── app.py
├── requirements.txt
├── com.hagibis.monitor.plist
├── static/
│   └── css/
│       └── style.css
└── templates/
    └── index.html

About

Flask system-monitor dashboard built for a Hagibis secondary display on macOS.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages