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
8
votes
3 answers

Webrick and Thin are really slow serving static files in Windows. How can I speed them up?

I'm currently developing a web-app, and I alternate between Windows and Mac dev machines for this. My problem is that pages render extremely slowly on Windows, but it's not my Ruby code running slowly, but rather that static files are getting served…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
8
votes
2 answers

Things to know when replacing WEBrick by Thin

I intend to replace WEBrick by Thin on a Rails 3.2 project because WEBrick handles malformed unescaped URIs badly (bad URI error). I know there are config hacks to make WEBrick handle unescaped URIs but just adding gem 'thin' to my Gemfile seems so…
joscas
  • 7,474
  • 5
  • 39
  • 59
8
votes
3 answers

Which one of these is a better option to use alongside "latest rails" application? Mongrel, Thin, WEBrick and Passenger

I have been playing around and evaluating other options to rails' default WEBrick server and Thin was the most painless and clean thing which worked very well!! which one of these Mongrel, Thin, WEBrick and Passenger would you recommend and…
brucewayne
  • 103
  • 1
  • 6
8
votes
3 answers

Can I enable SSL in Sinatra with Thin?

I'm looking for a simple way to enable SSL in a standalone Sinatra application running via Thin without having to pass the --ssl, --ssl-key-file and --ssl-cert-file parameters in via the Thin command line. Is it possible to define them directly…
user1513388
  • 7,165
  • 14
  • 69
  • 111
8
votes
3 answers

What is a Rack - "no acceptor" error?

While trying to run my config.ru, I'm getting an odd error I can't seem to debug called a 'No acceptor' error. Full error message: eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError) Does anyone know what this error means? Thanks.
beakr
  • 5,709
  • 11
  • 42
  • 66
7
votes
2 answers

Message/logging from Thin

How can I stop Rack Thin from returning initial messages of the following type? >> Thin web server (v1.3.1 codename Triple Espresso) >> Maximum connections set to 1024 >> istening on 0.0.0.0:3000, CTRL+C to stop I am using it like…
sawa
  • 165,429
  • 45
  • 277
  • 381
7
votes
4 answers

Thin with SSL support and ruby-debug

Does anyone know of a way to run the ruby debugger and SSL at the same time with Thin? I've been using Thin successfully with Rails 3.0.10. I start it using rails server --debugger, and I can debug my code. Recently, I have also needed to add SSL…
Kevin
  • 744
  • 2
  • 7
  • 17
7
votes
1 answer

How to silently start Sinatra + Thin?

I have a Sinatra::Base webservice which I want to start from a command line Ruby program, so I have this: # command line program file require 'mymodule/server' puts "Running on 0.0.0.0:4567, debugging to STDOUT..." MyModule::Server.run! bind:…
João Pereira
  • 561
  • 4
  • 18
7
votes
1 answer

Starting thin server on different ports

I'm a newbie o thin. I have a ruby on rails application. Today I can start the application normally, by the command sudo thin start -d We have created a new database for tests. (one is a clean database, and he other is for testing so can be messed…
lcguida
  • 3,787
  • 2
  • 33
  • 56
7
votes
3 answers

Monit + RVM + Thin on OSX / Linux

After trying for hours (and also trying God and Bluepill) I decided to ask my question here because I am completely clueless how to solve this issue. I have a Rails app. I want to use Thin as my app server. I want to use Monit to monitor my Thin…
Michael van Rooijen
  • 6,683
  • 5
  • 37
  • 33
7
votes
4 answers

remove quotes from returned string of grape api

I want to return raw data/blob from my grape/rest api. I followed the thread at : https://github.com/intridea/grape/issues/412 for a code like : get 'foo' do content_type 'text/plain' "hello world" end 1) I used : format 'txt' - I got quoted…
resultsway
  • 12,299
  • 7
  • 36
  • 43
7
votes
4 answers

Rubymine Thin with SSL options

I can use THIN with bundle exec thin start --ssl --ssl-verify --ssl-key-file /private/etc/apache2/ssl/server.key --ssl-cert-file /private/etc/apache2/ssl/server.crt It works in the console/terminal, perfectly But when I try to append these options…
Jan
  • 12,992
  • 9
  • 53
  • 89
7
votes
2 answers

Thin + Nginx + Websockets configurations | Rails

I have a Ruby on Rails 3.2 app with the websocket-rails gem, running in a thin webserver behind a nginx reverse proxy. Except for the nginx reverse proxy, everything works just fine. By removing the nginx reverse proxy, the websocket communication…
Toby Hinloopen
  • 186
  • 1
  • 7
7
votes
1 answer

How to get Rails 4 ActionController::Live streaming working with Thin and Ruby 2? And how do Thin and Puma scale with live streaming?

I get it working with Puma, but with Thin I don't get any stream output and I have to kill the server to stop it. I'm testing using tenderlove's initial example outputing the current time: http://tenderlovemaking.com/2012/07/30/is-it-live.html A…
Nico
  • 881
  • 1
  • 6
  • 19
7
votes
4 answers

How to make the bold font getting thin, using CSS or Javascript or jQuery?

If I am using a font and don't have the bold version, I could use the tag text-shadow, adding a contour to make the thin font bolder. But I have only the bold font, and I want to make it thinner. I don't know what CSS or Javascript or jQuery script…
user1637530