?
Solved

Rails with thin

Posted on 2010-08-26
2
Medium Priority
?
703 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 10

Expert Comment

by:Andrew Doades
ID: 33531161
Simple.. run this

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


Andrew
0
 
LVL 10

Accepted Solution

by:
Andrew Doades earned 2000 total points
ID: 33531177
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month8 days, left to enroll

765 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