Archive

Monthly Archives: February 2013

I had a lot of trouble at work with GUnicorn’s workers timing out while debugging BottlePy. There are a slew of arguments to make gunicorn not time out, but because our setup was geared to Heroku, it wasn’t clear how to introduce command line arguments. The solution was not to place anything inside the Procfile or to change the calls. The solution was to add the `options` parameter into the app.run.

Before: app.run(host=”0.0.0.0″, server=’gunicorn’, port=os.environ.get(‘PORT’, 8000), debug=settings.DEBUG)

After: app.run(host=”0.0.0.0″, server=’gunicorn’, port=os.environ.get(‘PORT’, 8000), debug=settings.DEBUG, **serverargs)

Where serverargs is a dictionary of the following form:

serverargs = {‘timeout’:’6000′, ‘workers’:’1′} if settings.DEBUG else {}

I started work on a prototype game called, ‘Fat Kitteh’ a while back. You play a heavyset kitten whose job it is to destroy houses. The game wasn’t terribly fun. The components however provided the groundwork for another game. I started work about two weeks ago on one called, “Metal Sky: Arena.” Name subject to change. You play in a zero-G arena where the walls will kill you. Your armament is only a gravity gun, which you will use to hurl your opponents into the walls. I uploaded a very early build to the site. Try it here: http://www.josephcatrambone.com/games/metalskyarena/