Permalink
Browse files

Use virtualenv

  • Loading branch information...
1 parent e9e6943 commit 054231018cc18a8968f34244fcb491abfd92894b @alexkay committed Apr 15, 2014
Showing with 8 additions and 5 deletions.
  1. +1 −2 .gitignore
  2. +4 −3 README.md
  3. +2 −0 requirements.txt
  4. +1 −0 run-uwsgi
View
@@ -1,4 +1,3 @@
*.pyc
*.swp
-.ropeproject
-src/pygments
+env
View
@@ -6,10 +6,11 @@ websites.
## Development
-To set up development environment you need to install these dependencies:
+To set up development environment you need to install nginx and virtualenv, then run:
-* On FreeBSD: `portmaster textproc/py-pygments www/nginx www/py-flask`
-* On Debian: `aptitude install nginx python-flask python-pygments`
+ % virtualenv env
+ % source env/bin/activate
+ % pip install -r requirements.txt
Edit your main `nginx.conf`:
View
@@ -0,0 +1,2 @@
+flask
+pygments
View
@@ -7,6 +7,7 @@ cd $DIR
exec setuidgid www /usr/local/bin/uwsgi \
--socket=/tmp/hilite.me.sock \
--pythonpath="$DIR" \
+ --home=env \
--master \
--processes=3 \
--harakiri=30 \

0 comments on commit 0542310

Please sign in to comment.