Solved

Rails with thin

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
return captures in array 5 261
Install apt-get and ufw on Mac 10.8.4 6 1,140
what is a code editor debugger 2 192
TextArea Parameter 1 229
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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 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