Skip to content

Commit

Permalink
Use virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkay committed Apr 17, 2014
1 parent 067cc23 commit edd3ce9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
covers
db/muspy.bak
db/muspy.db*
env
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -4,10 +4,11 @@

## 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 databases/sqlite3 graphics/py-imaging www/nginx www/py-django www/py-django-piston`
* On Debian: `aptitude install sqlite3 python-imaging nginx python-django python-django-piston`
% virtualenv env
% source env/bin/activate
% pip install -r requirements.txt

Edit your main `nginx.conf`:

Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
@@ -0,0 +1,2 @@
django>=1.3,<1.4
django-piston==0.2.3
1 change: 1 addition & 0 deletions run-uwsgi
Expand Up @@ -7,6 +7,7 @@ cd $DIR
exec setuidgid www /usr/local/bin/uwsgi \
--socket=/tmp/muspy.sock \
--pythonpath="$DIR" \
--home=env \
--master \
--processes=6 \
--harakiri=30 \
Expand Down

0 comments on commit edd3ce9

Please sign in to comment.