script : main.py
cwd : 작업 위치
interpreter : 실행하고자 하는 python을 interpreter로 지정
- cwd가 interpreter 경로에 영향을 미칠 수 있으니 주의
- venv 안의 /bin/python 경로로 사용
{
"apps": [
{
"name": "name",
"script": "main.py",
"cwd": "/path/to/cwd",
"interpreter": "path/to/python/env/bin/python",
}
]
}
'Tips' 카테고리의 다른 글
| python의 변수와 객체 참조 (0) | 2025.08.23 |
|---|---|
| MySQL GENERATED 칼럼 사용법 (3) | 2025.08.16 |
| FastAPI 실행 및 문서 접근 가이드 (0) | 2025.06.21 |
| [Rabbitmq] ERROR: could not bind to distribution port (0) | 2025.06.06 |
| pm2 사용 시 python logging이 에러 로그로 출력되는 문제 (0) | 2025.05.31 |