create venv on ec2 instance and then run the app
All checks were successful
AWS Deploy on Push / build (push) Successful in 2m20s
All checks were successful
AWS Deploy on Push / build (push) Successful in 2m20s
This commit is contained in:
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@@ -1,8 +1,13 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"altinstall",
|
||||
"certbot",
|
||||
"devel",
|
||||
"fiorinis",
|
||||
"gitea",
|
||||
"iptv"
|
||||
"iptv",
|
||||
"nohup",
|
||||
"uvicorn",
|
||||
"venv"
|
||||
]
|
||||
}
|
||||
@@ -11,6 +11,21 @@ cd /home/ec2-user
|
||||
|
||||
git clone https://git.fiorinis.com/Home/iptv-updater-aws.git
|
||||
cd iptv-updater-aws
|
||||
|
||||
# Install Python 3.12
|
||||
yum install -y gcc openssl-devel bzip2-devel libffi-devel
|
||||
wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz
|
||||
tar xzf Python-3.12.0.tgz
|
||||
cd Python-3.12.0
|
||||
./configure --enable-optimizations
|
||||
make altinstall
|
||||
cd ..
|
||||
rm -rf Python-3.12.0 Python-3.12.0.tgz
|
||||
|
||||
# Create and activate virtual environment
|
||||
python3.12 -m venv venv
|
||||
source venv/bin/activate
|
||||
|
||||
pip3 install -r requirements.txt
|
||||
|
||||
# Create nginx config
|
||||
@@ -25,4 +40,4 @@ pip3 install -r requirements.txt
|
||||
# }' > /etc/nginx/conf.d/iptvUpdater.conf
|
||||
|
||||
# Start IptvUpdater on port 8000
|
||||
# nohup uvicorn app.main:app --host 127.0.0.1 --port 8000 &
|
||||
nohup uvicorn app.main:app --host 127.0.0.1 --port 8000 </dev/null &>/dev/null &
|
||||
@@ -3,3 +3,4 @@ uvicorn==0.24.0
|
||||
aws-cdk-lib>=2.0.0
|
||||
constructs>=10.0.0
|
||||
python-dotenv==1.0.0
|
||||
uvicorn==0.24.0
|
||||
Reference in New Issue
Block a user