This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default backend definition. Set this to point to your content | |
# server. | |
# | |
backend web { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
} | |
sub vcl_recv { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 8080; | |
server_name www.[site]; | |
rewrite ^ http://[site]$request_uri? permanent; | |
} | |
server { | |
listen 8080; | |
server_name [site]; | |
root /home/[site]/www/[site]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd [site] | |
git pull | |
killall -s KILL python | |
python manage.py migrate --settings=settings_prod | |
python manage.py runfcgi --settings=settings_prod method=prefork host=127.0.0.1 port=8902 maxspare=20 minspare=1 maxchildren=50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index b5db002..3527728 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -220,6 +220,9 @@ dev.provision: dev.check-memory ## Provision dev environment with default servic | |
$(WINPTY) bash ./provision.sh $(DEFAULT_SERVICES)+e2e | |
make dev.stop | |
+dev.fix: | |
+ docker-compose exec lms bash -c 'source /edx/app/edxapp/edxapp_env && pip install --upgrade setuptools==51.1.1 && pip install --upgrade wheel==0.36.2' |