Describes how to permanently connect fastapi and domains to nginx on Ubuntu Linux
https://www.youtube.com/watch?v=ryoLV3juTOc
영상 순서
0. ngixn 설정과 관련된 이전 영상을 참고해 주세요.
https://youtu.be/elPmCNeOlsc
1. uvicorn.service 파일 생성
cd /etc/systemd/system
vi uvicorn.service
2. uvicorn.service 실행
systemctl start uvicorn.service
또는
systemctl start uvicorn.service
3. 시스템 부팅시 설정
systemctl enable uvicorn.service
=끝=
그누보드6 github 저장소
https://github.com/gnuboard/g6
그누보드6 사용자데모
https://g6.demo.sir.kr/
그누보드6 파이썬 커뮤니티
https://sir.kr/main/g6/
=================================================================
/etc/systemd/system/uvicorn.service 파일 내용
=================================================================
[Unit]
Description=Uvicorn server with virtual environment
After=network.target
[Service]
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/g6
Environment="PATH=/home/ubuntu/g6/venv/bin"
ExecStart=/home/ubuntu/g6/venv/bin/uvicorn main:app --host 0.0.0.0 --port 8000
[Install]
WantedBy=multi-user.target
=================================================================
게시글 목록
| 번호 | 제목 |
|---|---|
| 49 | |
| 36 | |
| 33 | |
| 31 | |
| 22 | |
| 21 | |
| 17 | |
| 16 | |
| 15 | |
| 14 | |
| 11 | |
| 10 | |
| 9 | |
| 8 | |
| 7 | |
| 3 | |
| 2 | |
| 1 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기