Skip to content

Commit f1c4889

Browse files
committed
Install & Download Requirements In DigitalOcean's deploy.sh
1 parent ecb210c commit f1c4889

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

DigitalOcean/root/deploy.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
cd /home
55

66
# Clean up cached static files
7-
rm -r static Website/static/min
7+
rm -r static Website/static/min Website/static/fonts
88

99
# Backup database file
1010
mv db.sqlite3 db.save
@@ -22,8 +22,16 @@ cd ../..
2222
# Restore database file
2323
mv db.save db.sqlite3
2424

25+
# Install python packages updates if any
26+
pip3 install -r requirements.txt
27+
28+
# Download & combine static requirements
29+
cd Website
30+
python3 download.py
31+
cd ..
32+
2533
# Compress and collect static files
26-
python3 manage.py compress
34+
python3 manage.py compress --force
2735
python3 manage.py collectstatic
2836

2937
# Clean up uncompressed static files

0 commit comments

Comments
 (0)