Skip to content

Instantly share code, notes, and snippets.

View hoffmannkrzysztof's full-sized avatar

Krzysztof Hoffmann hoffmannkrzysztof

  • Wrocław/Poland
View GitHub Profile
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'
@hoffmannkrzysztof
hoffmannkrzysztof / gist:10596151
Created April 13, 2014 18:31
Starting config for django and fastcgi with celery
#!/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
@hoffmannkrzysztof
hoffmannkrzysztof / Default nginx config for site with fastcgi
Created April 13, 2014 18:28
Default nginx config for site with fastcgi
server {
listen 8080;
server_name www.[site];
rewrite ^ http://[site]$request_uri? permanent;
}
server {
listen 8080;
server_name [site];
root /home/[site]/www/[site];
@hoffmannkrzysztof
hoffmannkrzysztof / Varnish config for django
Last active May 20, 2019 18:16
Varnish config for django
# Default backend definition. Set this to point to your content
# server.
#
backend web {
.host = "127.0.0.1";
.port = "8080";
}
sub vcl_recv {