Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to create restart.txt for restart ruby_rails?

Posted on 2008-06-23
4
Medium Priority
?
492 Views
Last Modified: 2012-05-05
How to create restart.txt for restart ruby_rails?

And to run touch #{current_path}/tmp/restart.txt

to restart?
0
Comment
Question by:jaisonshereen
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:wesgarrison
ID: 21852569
How are you deploying your application?  Mix that command into that process, probably after you checkout the latest version of code.

This question should probably be in the Rails Zone:
Programming - Editors_IDEs - RubyOnRails
0
 

Author Comment

by:jaisonshereen
ID: 21853761
i dont now anything about ruby or rails...but i have good programming knowledge in shell scipting..

kindly advice me how to proceed ...

searching internet i couldn't find out how to do and what to do..

this method of restarting the application is completely new to me ..

so give me the elaboration..

thanks in advance !!

0
 
LVL 14

Accepted Solution

by:
wesgarrison earned 2000 total points
ID: 21857361
Well, if you're using the mod_rails setup, you can restart the webserver by creating a restart.txt file.  So, presumably you're going to be making changes to your software and putting them out on your website. When you do that, you'll need to restart the server.

Now, if you're using software that doesn't need a restart, like a blog, then you probably don't need to worry about that.

Is this software you're writing or something you got from somewhere else that you're setting up for your use?
0
 

Author Comment

by:jaisonshereen
ID: 21858014
I am not understanding what software ur talking about .i only know there is a website working in my production server.If there any software ( what is the use) how to check that ?

I only know there is a website in production server. Which goes down frequently. In that case i need to restart the application ( i dont know which application it is). But the document which the client given me have this script. And client says i need to regenarate restart.txt and touch restart.txt to resart the application to make the website comes up. Please help me regarding this...
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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses
Course of the Month12 days, 16 hours left to enroll

972 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