Solved

Rails with thin

Posted on 2010-08-26
2
701 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 500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

688 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