Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Update Ruby/Gems and move static file serving to Rack #20

merged 4 commits into from Aug 2, 2013


None yet
3 participants

carlosdp commented Aug 1, 2013

This PR is what is in production right now. Upgraded gems and Ruby to 2.0. Also moved static file serving to Rack pushing that load to the server itself. This should fix the gradual slow down that seemed to be resulting from static files somehow.

Also, changed DB configuration to only load connection after first use. This makes local development easier if you don't have PG or Redis installed.

carlosdp added some commits Aug 1, 2013

Refactor DB to initiate connections on first query
Now the DB interfaces will only load a connection if they are actually
used a first time. This also allows someone who does not have PG or
Redis installed to run hurl.
Serve static files via Rack
Move static file serving directly to Rack. This passes off the load of
static file resolution directly to the server.

kevinburke commented Aug 1, 2013

awesome. lgtm


dougblack commented Aug 2, 2013


kevinburke pushed a commit that referenced this pull request Aug 2, 2013

Merge pull request #20 from carlosdp/revamp
Update Ruby/Gems and move static file serving to Rack

@kevinburke kevinburke merged commit a69d8e1 into twilio:master Aug 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment