Solved

Rails with thin

Posted on 2010-08-26
2
687 Views
Last Modified: 2013-11-13
Hi, I've got nginx as the front with thin at the backend for several rails app on 1 physical server. Have followed the instructions for thin via

http://www.funonrails.com/2010/03/nginx-and-thin-installation-and.html

Thin then was installed as service so that I can do a

service thin restart

This is all good but then it goes and looks at the /etc/thin and restarts every single rails app specified in there.

Is there a way to just restart 1 of them without disrupting the others?

I've got like 20 running on 1 server and it takes a long time to get all of them restarted.
0
Comment
Question by:binele
  • 2
2 Comments
 
LVL 10

Expert Comment

by:Andrew Doades
Comment Utility
Simple.. run this

thin restart -C /etc/thin/app.yml


Andrew
0
 
LVL 10

Accepted Solution

by:
Andrew Doades earned 500 total points
Comment Utility
Also, if that app is serving on two different ports, and you don't want the site going down use this

thin restart -C /etc/thing/app.yml --only 3000

This only restarts the thin instance on port 3000

Andrew
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
301 redirect rails app 10 595
How to SSH interactive Session In ruby Ruby 3 1,098
Ruby problem with blocks 5 312
Instaling Ruby 3 301
Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now