# Checking for Functional Site

**URL:** <https://www.ruby-forum.com/t/checking-for-functional-site/156832>\
**Category:** Rails\
**Created:** [January 3, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/checking-for-functional-site/156832 "2009-01-03T20:11:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [January 3, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/checking-for-functional-site/156832/1 "2009-01-03T20:11:24Z")

</div>

I have my rails sites hosted by Bluehost. While they are in many ways an  
ideal host for developers, they have one very major problem.

Their sysadmins periodically change the Rails installation without any  
warning to users. The result of this is that the sites periodically  
break - and we get no warning that this is going to happen. I don’t  
fault them for updating the installation - rails is pretty new  
technology after all. By not letting us know what’s happening, however,  
our sites can go down without warning. The only way to determine whether  
or not they’ve done something is to actually connect to the site and see  
whether or not it is still working. I’ve complained to them about this  
repeatedly … their normal response is simply to ignore the complaint.

Is there some way to do an autocheck of the system to see if anything in  
the rails installation / configuration has changed? If there is, I could  
set this up as a cron job and do a manual check when I determined that  
something had changed. This would also minimize the distortion of the  
logs from the hits from my check.

Thanks in advance  
—Michael

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [January 3, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/checking-for-functional-site/156832/2 "2009-01-03T20:22:56Z")

</div>

Hi, why not take an easier approach by freezing a version of rails as  
well as your gems before you deploy your application.

Good luck,

-Conrad

Sent from my iPhone

On Jan 3, 2009, at 11:11 AM, Michael S.  
\<removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [January 4, 2009, 9:54pm UTC](https://www.ruby-forum.com/t/checking-for-functional-site/156832/3 "2009-01-04T21:54:58Z")

</div>

If you can run a cron script, don’t worry about actually doing  
something in Ruby or Rails itself. Just write a bash script to check  
the output of the ‘gem rails’ command for the appropriate version  
number you use.

On Jan 3, 1:11 pm, Michael S. \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [January 6, 2009, 7:36am UTC](https://www.ruby-forum.com/t/checking-for-functional-site/156832/4 "2009-01-06T07:36:38Z")

</div>

Hi Michael,

Freezing your Rails gems is probably the best way to maintain control  
over the version of the framework being used and is highly recommended  
in a shared environment. You might also consider using some free  
externally hosted service (i.e. Pingdom, [mon.itor.us](http://mon.itor.us), etc.) for  
checking the status of the website from the end-user perspective in  
order to keep tabs on your site from the end-user perspective.  
Ultimately though, I don’t know if I’d be so forgiving about a hosting  
company that doesn’t want to communicate with their customers. ☹

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [January 6, 2009, 9:11am UTC](https://www.ruby-forum.com/t/checking-for-functional-site/156832/5 "2009-01-06T09:11:25Z")

</div>

cron wget to run every minute pulling HEAD requests and email you if  
there’s a 404 or 500 or whatever you get when it’s busted.

-eric

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [January 6, 2009, 8:12am UTC](https://www.ruby-forum.com/t/checking-for-functional-site/156832/6 "2009-01-06T08:12:20Z")

</div>

Sounds like you need a new hosting location!! Your statement about  
Rails is a new and that makes it ok to F with your customers? I would  
demand my money back if thats how they do business…

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [January 6, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/checking-for-functional-site/156832/7 "2009-01-06T14:41:57Z")

</div>

Eric wrote:

> cron wget to run every minute pulling HEAD requests and email you if  
> there’s a 404 or 500 or whatever you get when it’s busted.
> 
> -eric

You will quickly get your inbox overflooded in such case. Using a remote  
service like HopToad or GetExceptional is better. If anyone knows about  
an ever better option, please let use know.

–  
Video training screencasts at [http://www.digiprof.fr](http://www.digiprof.fr)
