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
19
votes
2 answers

Thin vs. unicorn for development mode on Mac?

I'm shocked that this question hasn't been asked already, but I swear I looked everywhere. Are there advantages of thin over unicorn, or vice versa, when running Rails 3 in development mode?
Jay Levitt
  • 1,680
  • 1
  • 19
  • 28
19
votes
2 answers

Thin and Puma fail with similar issues - ERROR: Failed to build gem native extension on Mac with OpenSSL@1.1

Describe the bug I have tried to do a gem install puma and gem install thin and get an error. I have a brand new Mac that I am setting up: MacOS Catalina 10.15.6 (19G73) I have worked out that any version <= 4.2.1 works fine on my computer I am…
David Cruwys
  • 6,262
  • 12
  • 45
  • 91
17
votes
4 answers

Enable https in a rails app on a thin server

I have a rails app running a thin server on heroku. It currently uses http. I would like to use https for bot development and production. Where do I begin to do this. I have looked at this railscast where they show how to use a POW server. I dont…
banditKing
  • 9,405
  • 28
  • 100
  • 157
15
votes
1 answer

Where does Puma log to

I have been using Thin to run my ruby Sinatra applications but I am now switching over to Puma. Thin creates its own log log/thin.log which I use. I noticed that Puma doesn't produce a log file (not that I can see). I have tried googling for…
alexjfno1
  • 337
  • 1
  • 3
  • 14
14
votes
2 answers

How to fix Sinatra redirecting https to http under nginx

I have a Sinatra app running in nginx (using thin as a back-proxy) and I'm using redirect '/' statements in Sinatra. However, when I access the site under https, those redirects send me to http://localhost/ rather than to…
Alex Mullans
  • 1,699
  • 2
  • 17
  • 34
14
votes
3 answers

how to specify query string in url with apache bench

My rails application is running on thin server which i want to benchmark using apachebench the command am using is ab -n 1 -c 1 http://localhost:3001/welcome/search?query="doctor"&rad=5 But thin server is not taking this url.Its giving !!…
kshama
  • 1,637
  • 4
  • 18
  • 21
14
votes
3 answers

Why do we need nginx with thin on production setup?

Why do we need to install nginx with thin on production setup, As thin is itself a web server. Every blog post people are using ruby+rails+nginx+thin?
Pravin Mishra
  • 8,298
  • 4
  • 36
  • 49
13
votes
4 answers

Is there a way Rails 3.0.x can default to using Thin?

I run the Thin webserver for basically every app in my dev/test environments. When I used Mongrel with Rails 2.x, all I had to type was script/server to get it to run the webserver I choose. But with Rails 3, I have to specify Thin every time. Is…
tubbo
  • 598
  • 10
  • 21
13
votes
2 answers

Passing options to rackup via a Sinatra application

I'm new to ruby, learning Sinatra. While creating a Sinatra site by requiring 'sinatra' and setting up the routes directly under is pretty easy and rather well documented, creating an application by requiring 'sinatra/base' and writing a class that…
Robert Audi
  • 8,019
  • 9
  • 45
  • 67
13
votes
3 answers

Distinguishing between nginx and thin

This is a newbie question around nginx and thin in the rails environment. In reading/learning on rails I frequently hear about nginx and thin being a great combination for a rails site. In reading the descriptions of each, they both describe…
Chris Dellinger
  • 2,292
  • 4
  • 25
  • 33
13
votes
3 answers

How to make `thin` webserver print log to STDOUT

Context: To run localhost as SSL, I followed the instructions at this site After setting up the SSL cert, to run the local rails server, the site says to: thin start --ssl When I do that, I notice that I no longer see the Rails…
Zabba
  • 64,285
  • 47
  • 179
  • 207
13
votes
1 answer

How do you choose your HTTP server in Sinatra?

I am running a Sinatra application locally. Ever since I installed Thin, my Sinatra app always uses it as the web server. However, I have been having performance issues with Thin serving the large amount of static files required by my application,…
sffc
  • 6,186
  • 3
  • 44
  • 68
12
votes
2 answers

Rackup to use Thin instead of WEBrick

New to Sinatra, just development server up and running but rackup is using WEBrick instead of Thin, Thin gem is already installed, this has to be a simple configuration tweak but I don't know where. Oh while you are at it, does Thin auto-refresh…
Johnny Klassy
  • 1,650
  • 5
  • 16
  • 22
12
votes
2 answers

HTTP streaming connection (SSE) client disconnect not detected with Sinatra/Thin on Heroku

I am attempting to deploy a Sinatra streaming SSE response application on the Cedar stack. Unfortunately while it works perfectly in development, once deployed to Heroku the callback or errback never get called when a connection is called, leading…
mroth
  • 467
  • 4
  • 9
11
votes
3 answers

Rails 3 Encoding::CompatibilityError

I am working on a rails app that submits a french translation via ajax and for some reason I keep getting the following error in the log: Encoding::CompatibilityError incompatible character encodings: UTF-8 and ASCII-8BIT Does anyone know how to fix…
dennismonsewicz
  • 25,132
  • 33
  • 116
  • 189
1
2
3
46 47