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
10
votes
1 answer

Why do I get "Thin adapter not found"?

I'm an iOS developer with very little Ruby experience, trying to follow "Getting Started with iOS Mobile Development and a Sinatra API" on getting an API running on Heroku. I grabbed the sample project on Git, so I know I have an identical setup to…
Ethan
  • 5,660
  • 9
  • 44
  • 51
10
votes
2 answers

Heroku, Thin and everything in between

Looking at the logs, my cedar app currently runs webrick. Obviously, this is not the best choice for production app. As noted all over the web, I should use Thin webserver. But I would still like to use the simplicty of webrick on my development…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
10
votes
5 answers

How to redirect (Rack) Thin server output to console?

Thin server has -l option to redirect output to log file (default: log/thin.log). Is there a way like in webrick server the output is always to console (and log/development.log) too ?
Daya Sharma
  • 2,855
  • 2
  • 15
  • 12
9
votes
3 answers

Starting thin server without the thin gem does not work

I am using ruby 1.9.3 and rails 3.2.2. Every time i use the thin server with private_pub gem it does not work i did rackup private_pub.ru -s thin -E production. I get the following…
Uchenna
  • 4,059
  • 6
  • 40
  • 73
9
votes
5 answers

Rails 3.2 Asset Pipeline with Thin and Apache, not finding assets

My question is similar to this one Rails 3.2 Asset Pipeline with Passenger Endless Errors except that when I try to actually go to
DelPiero
  • 489
  • 1
  • 10
  • 21
9
votes
1 answer

What are the differences between using `rails server` and `rackup`?

The only difference I've noted is that rails server starts the server on port 3000, while rackup starts the server on port 9292. Are there any other differences? Are there use cases for one instead of the other?
Colin Dean
  • 1,429
  • 1
  • 15
  • 26
9
votes
1 answer

Running thin server in production mode isn't loading my assets

When I load thin like so: thin start -e production and try to access one of my pages, I get this in the log output: cache: [GET /] miss cache: [GET /assets/main-bd1ef4b153740fb69fd615304b87ad0d.css] miss cache: [GET…
aarona
  • 35,986
  • 41
  • 138
  • 186
9
votes
2 answers

Thin EventMachine Sinatra vs. Rails

I have been looking into the possibility of backgrounding some jobs with EventMachine. In Sinatra this appears to work great but Rails 3 appears to execute all ticks before rendering a view. When I run the following code under the thin webserver it…
Bruce Hauman
  • 146
  • 1
  • 5
9
votes
1 answer

Sinatra using a websocket client to respond to a http request

I am writing a Sinatra web server that I would like to be RESTful, but the thing is that it has to interact with another server that communicates exclusively via web sockets. So, this needs to happen: A request comes into my Sinatra server from a…
tschwab
  • 1,056
  • 1
  • 12
  • 27
9
votes
2 answers

Thin server: ouput rails application logs to console, as 'rails s' does

I need to run thin start or thin -ssl ... start within the root of my rails app, and see the application logs output to the console, similar to what rails s does
Benjamin Bouchet
  • 12,971
  • 2
  • 41
  • 73
9
votes
1 answer

Rack::Session:Cookie error using Sinatra, Thin, Rails, and Rack::Cascade

I have a combined Sinatra/Rails app that shares a session using Rack::Session::Cookie. The app works fine when started with Rack::Handler::Thin.run app, but if the rackup file is start with thin start, I get an error in Rack::Session::Cookie: !!…
Christopher Foy
  • 758
  • 5
  • 13
9
votes
1 answer

Sinatra streaming with Puma?

I'm trying to leverage Server-Sent Events in my application. I am using Sinatra and the sinatra-sse gem. This gem wraps the Sinatra stream :keep_alive call. When running my application on Thin, I have absolutely no problems, and my event stream…
Ilya O.
  • 1,500
  • 13
  • 19
9
votes
2 answers

Thin server underperforming / How do evented web servers work?

I had a rails 3 app on Nginx/Passenger that I just moved to Nginx/Thin (1.3.1). However, my app is now clearly slower than it was on Passenger. A lot of requests time out too. Thin is an evented webserver. From what I have read about evented web…
Coffee Bite
  • 4,956
  • 5
  • 33
  • 38
8
votes
3 answers

foreman start error (server.rb:33, missing argument...)

After trying to start foreman, I get this error (note that it does seem to work on heroku though so I guess this is a strictly local problem): hrn039:textthechange jon$ foreman start 02:20:00 web.1 | started with pid 7363 02:20:01 web.1 |…
Jonathan Leung
  • 2,051
  • 2
  • 19
  • 24
8
votes
1 answer

How to deploy a threadsafe asynchronous Rails app?

I've read tons of material around the web about thread safety and performance in different versions of ruby and rails and I think I understand those things quite well at this point. What seems to be oddly missing from the discussions is how to…
John Bachir
  • 22,495
  • 29
  • 154
  • 227
1 2
3
46 47