Solved

How to create restart.txt for restart ruby_rails?

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Adobe Customization Wizard XI issues 26 169
count8 challlenge 13 87
wordappend challenge 8 86
scripting, exchange 35 40
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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.

762 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