Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to create restart.txt for restart ruby_rails?

Posted on 2008-06-23
4
Medium Priority
?
488 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
[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
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

705 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