We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 365db38 commit 4185258Copy full SHA for 4185258
deploy.sh
@@ -1,10 +1,21 @@
1
#!/bin/bash
2
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
13
# Install dependencies
14
+pip install --upgrade pip
15
pip install -r requirements.txt
16
-# Additional deployment commands
-# ...
17
+# Navigate back to the root directory if needed
18
+cd ..
19
-# Restart the web app
-service apache2 restart
20
+# Restart services if necessary
21
+# service apache2 restart
0 commit comments