Questions tagged [thin]

Thin is an EventMachine-based web server written in Ruby for running Rack-based web apps.

Thin is a Ruby web server that glues together 3 of the best Ruby libraries in web history:

the Mongrel parser, the root of Mongrel speed and security Event Machine, a network I/O library with extremely high scalability, performance and stability Rack, a minimal interface between webservers and Ruby frameworks Which makes it, with all humility, the most secure, stable, fast and extensible Ruby web server bundled in an easy to use gem for your own pleasure.

695 questions
0
votes
2 answers

How to identify Thin server processes?

When starting multiple thin servers running Rails 3, is there any way to tell them apart in the code? For example, if I have a configuration like this: port: 4000 pid: tmp/pids/thin.pid servers: 2 Is there a way to tell whether the code is runnin…
zoli
  • 469
  • 6
  • 17
0
votes
1 answer

Mapping Thin - Sinatra app with apache httpd

Recently I developed a Sinatra app that running under Thin. On my local and test servers it runs ok, but when I add it to my production env, all resources from public dir is inaccessible. I'm not a apache guy, so I'm a little lost here. Here is what…
RobisonSantos
  • 611
  • 6
  • 16
0
votes
1 answer

Multithreaded Rails server for Windows

I need to install a multithreaded (to support Facebook Open graph callbacks) on Windows. Is it possible? I tried thing but it doesn't install (event machine does not compile). Unicorn doesn't seem to have a Windows version. Any help? Thanks.
Tony
  • 10,088
  • 20
  • 85
  • 139
0
votes
1 answer

How do I access Thin::Connection from inside rack middleware?

I would like to run set_comm_inactivity_timeout(0) on my EM Connection from inside Rack Middleware. This will allow me to have one timeout for my upgraded web sockets and another for the rails app. My web sockets are all first in the middleware…
Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
0
votes
0 answers

Rails - decompressing HTTP request

Is there some way to decompress HTTP request (sent from mobile phone) on server side? Will be this done using Ruby, or server's means makes no difference. Servers planned to use are: Webrick, Thin and Apache2. I am planning to compress request in my…
Paul
  • 25,812
  • 38
  • 124
  • 247
0
votes
1 answer

Rails: download .to_pdf stuck on old revision of object

I have a rails app and stuck on a problem when trying to create a download link to some dynamic generated data. I've placed a .to_pdf method in my Folha model. And on controller folhas_controller.rb: def show nome =…
Alexandre Abreu
  • 1,382
  • 1
  • 13
  • 28
0
votes
2 answers

can't install eventmachine ruby gem. using RVM, MacOS Lion

I'm using RVM v1.10.2, ruby v1.9.3p0, and ruby gems v1.8.15 on MacOS Lion (kernel v11.4.0). I created a gemset for a rack-based project using sinatra and installed a bunch of gems, including eventmachine (as a result of installing thin). No…
wyattisimo
  • 2,416
  • 2
  • 20
  • 18
0
votes
1 answer

Client doesnt load assets after adding last-modified header

Im running my rails app in production mode using thin and nginx (0.7.6) on Debian. Its working pretty well but not I tried to implement the last-modified header and when I restart nginx the client doesnt load the assets anymore. This is my nginx…
davidb
  • 8,884
  • 4
  • 36
  • 72
0
votes
2 answers

Nginx server configuration for Thin, Faye & Redis

/etc/nginx/nginx.conf looks like: user deploy; worker_processes 5; error_log logs/error.log; events { worker_connections 1024; use epoll; } http { include mime.types; default_type application/octet-stream; …
Ostap Tan
  • 111
  • 3
  • 13
0
votes
2 answers

Ruby can't link with MS C runtime (msvcr90.dll)

I was attempting to run the Ruby Thin demo application on Windows/XP when I got an error that Windows couldn't find "msvcr90.dll" for Ruby 1.8.7 -- I found a redistributable and put that in my path to be confronted with the information that: "R6034…
will
  • 4,799
  • 8
  • 54
  • 90
0
votes
1 answer

Sinatra /w Thin: Logging?

I recently installed Thin for a Sinatra app I'm developing. However, it does not seem to be logging/outputing request, response and error messages a la WEBrick. Is there any way to turn these on, and to also use a debugging logger? If not, I will…
Richard Stokes
  • 3,532
  • 7
  • 41
  • 57
0
votes
2 answers

How do I get my ruby source in the load path when invoking with thin?

I'm playing around with a combination of Thin, Sinatra and Bundler. I'm trying to understand how I get Thin to include the path to my source code in the load path? I have looked for introductory tutorials to this setup, but none of them seem to…
jabalsad
  • 2,351
  • 6
  • 23
  • 28
0
votes
1 answer

Starting a web browser after the local server starts

I run a local server using Thin server. When it starts successively, it returns a message like this: >> Thin web server (v1.3.1 codename Triple Espresso) >> Maximum connections set to 1024 >> Listening on 0.0.0.0:3000, CTRL+C to stop I want to run…
sawa
  • 165,429
  • 45
  • 277
  • 381
0
votes
1 answer

Sinatra Padrino simple App does not run

I have written a few plain Sinatra apps using data mapper. I wanted to try Padrino. Went to padrinorb.com On the front page there is gem install padrino padrino g project myapp -d datamapper -b cd myapp padrino g admin padrino rake dm:migrate…
Tom Andersen
  • 7,132
  • 3
  • 38
  • 55
0
votes
1 answer

EventMachine on Heroku with Rails & EM-C2DM Gem

Trying to use the GroupMe gem EM-C2DM, https://github.com/groupme/em-c2dm, a Google C2DM Ruby Library using Event Machine, within Rails. I know it should work on Heroku as there is a configuration specific to Heroku, however I can't seem to get it…
Scott Feinberg
  • 574
  • 4
  • 20