create venv on ec2 instance and then run the app - Fix 1
All checks were successful
AWS Deploy on Push / build (push) Successful in 3m38s
All checks were successful
AWS Deploy on Push / build (push) Successful in 3m38s
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -3,6 +3,8 @@
|
|||||||
"altinstall",
|
"altinstall",
|
||||||
"certbot",
|
"certbot",
|
||||||
"devel",
|
"devel",
|
||||||
|
"dotenv",
|
||||||
|
"fastapi",
|
||||||
"fiorinis",
|
"fiorinis",
|
||||||
"gitea",
|
"gitea",
|
||||||
"iptv",
|
"iptv",
|
||||||
|
|||||||
0
app/__init__.py
Normal file
0
app/__init__.py
Normal file
0
infrastructure/__init__.py
Normal file
0
infrastructure/__init__.py
Normal file
@@ -12,20 +12,6 @@ cd /home/ec2-user
|
|||||||
git clone https://git.fiorinis.com/Home/iptv-updater-aws.git
|
git clone https://git.fiorinis.com/Home/iptv-updater-aws.git
|
||||||
cd iptv-updater-aws
|
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
|
pip3 install -r requirements.txt
|
||||||
|
|
||||||
# Create nginx config
|
# Create nginx config
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
fastapi==0.104.1
|
fastapi==0.103.2
|
||||||
uvicorn==0.24.0
|
|
||||||
aws-cdk-lib>=2.0.0
|
aws-cdk-lib>=2.0.0
|
||||||
constructs>=10.0.0
|
constructs>=10.0.0
|
||||||
python-dotenv==1.0.0
|
python-dotenv==0.21.1
|
||||||
uvicorn==0.24.0
|
uvicorn==0.22.0
|
||||||
Reference in New Issue
Block a user