Solved

Rails with thin

Posted on 2010-08-26
2
697 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Anyone know where I can access free Ruby on Rails Tutorials? 3 233
Converting Ruby on Rails Project for use as HTML file(s) 2 490
PHP vs Ruby on Rails 3 491
git - conflict 5 227
I recently rediscovered rails when I needed a holiday project and decided to build a management dashboard for the company where I work.  With it being a project done in my free time, I could focus my time on learning the basics rather than trying to…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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