Solved

How to create restart.txt for restart ruby_rails?

Posted on 2008-06-23
4
469 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 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 95
Convert MSI to MSM 1 58
How can I save all open docs into a given folder 12 113
Math Equation 23 82
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now