Bourne to be wild


Know your iTunes

Hey iTunes users, I've made this for you !!

It's still very alpha (hint hint ... if any designer want to help...), but it works. You can login with your Facebook account, and I won't post anything on your wall, I swear :)

Check it out !

For the nerd in you, it uses Flask, a super cool Python web framework. The huge database that contains 2 entries on the live site is an SQLite one, and for that project at this point it's all good because it means NO config NO extra server running and that's great.

I used gunicorn for the prod (laugh) site, proxied behing apache. Here's an extract from the amazing Makefile ...

prod:
        # http://gunicorn.org/configure.html
        env/bin/gunicorn -w 4 -b 127.0.0.1:5000 -t 90 -p gunicorn.pid -D hello:app

kill:
        if test -f gunicorn.pid ; then kill `cat gunicorn.pid`; fi

restart: kill prod

posted on Thu, 21 Jul 2011 under code






blog comments powered by Disqus

Made with PyBlosxom
RSS 2.0