Skip to content

Commit 4185258

Browse files
committed
Try again
1 parent 365db38 commit 4185258

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

deploy.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
#!/bin/bash
22

3+
# Navigate to the backend directory if it's separate
4+
cd backend # Adjust this if your requirements.txt is in the root
5+
6+
# Ensure pip is up to date
7+
python -m ensurepip --upgrade
8+
9+
# Create and activate a virtual environment
10+
python -m venv venv
11+
source venv/bin/activate
12+
313
# Install dependencies
14+
pip install --upgrade pip
415
pip install -r requirements.txt
516

6-
# Additional deployment commands
7-
# ...
17+
# Navigate back to the root directory if needed
18+
cd ..
819

9-
# Restart the web app
10-
service apache2 restart
20+
# Restart services if necessary
21+
# service apache2 restart

0 commit comments

Comments
 (0)