-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
38 lines (29 loc) · 1.09 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# comment until we get it working on render
# STORAGE_DIR=/opt/render/project/.render
# CHROME_DIR=$STORAGE_DIR/chrome
# CHROME_BINARY_PATH=$CHROME_DIR/opt/google/chrome/google-chrome
# CHROMEDRIVER_PATH=$CHROME_DIR/chromedriver
# mkdir -p $CHROME_DIR
# cd $CHROME_DIR
# wget -P ./ https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# dpkg -x ./google-chrome-stable_current_amd64.deb $CHROME_DIR
# rm ./google-chrome-stable_current_amd64.deb
# wget -O chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip
# echo "Downloaded Chromedriver"
# unzip chromedriver_linux64.zip
# echo "Unzipped Chromedriver"
# rm chromedriver_linux64.zip
# chmod +x $CHROMEDRIVER_PATH
# echo "Set execute permissions on Chromedriver"
# cd -
# echo "chrome_binary_path"
# echo $CHROME_BINARY_PATH
# echo "chromedriver_path"
# echo $CHROMEDRIVER_PATH
# $CHROME_BINARY_PATH --version
# $CHROMEDRIVER_PATH --version
#poetry install
pip install -r requirements.txt
python manage.py migrate --noinput
python manage.py collectstatic --noinput