Skip to content

jpetazzo/thin-on-dotcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra + Thin + streaming + dotCloud
=====================================

To test locally:

- gem install bundler
- bundle install
- thin -p 4567 start
- for N in `seq 1 10` ; do curl http://localhost:4567/subscribe & done
- curl http://localhost:4567/publish

You should see 10 messages looking like this:

  hello #<Sinatra::Helpers::Stream:0x00000001dc9618

And one like this:

  published to 700 stream(s).


To test on dotCloud
===================

- dotcloud create -f sandbox thin
- dotcloud push thin

The base URL will be show at the end of the push. You can then run the same
test as shown above, by changing the URLs.


Thanks
======

I'd like to thank Thibaut Barrère and Sébastien Gruhier, for giving a basic
streaming example with Thin+Sinatra.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages