Go Back   HostGator Peer Support Forums > HostGator Announcements > General Announcements

Notices

Reply
 
Thread Tools
  #51  
Old 03-15-2007, 01:33 PM
zzz zzz is offline
Hatchling Croc
 
Join Date: Dec 2006
Location: mn
Posts: 19
Default Re: Ruby on Rails Support

rails version updated

thanks

Last edited by zzz; 03-23-2007 at 03:52 PM.
Reply With Quote
  #52  
Old 03-19-2007, 01:12 AM
GatorShashank's Avatar
GatorShashank GatorShashank is offline
Hostgator Staff
 
Join Date: Jun 2004
Location: Make a guess :-)
Posts: 1,077
Default Re: Ruby on Rails Support

Some updates :

1. Anyone getting the ln permission denied error, please email support@hostgator.com with your server IP and account domain mentioning the ln error.

2. Please raise a support ticket if you see rails version below 1.2.x on your account.

zzz , I have already upgraded rails for you on the azur server tonight.
__________________
Shashank Wagh
Systems Administrator & Level III Support,
Hostgator.com LLC.
Hostgator in India. Its here.
http://www.hostgator.in
Reply With Quote
  #53  
Old 04-12-2007, 01:17 PM
evan@trnsfr evan@trnsfr is offline
Hatchling Croc
 
Join Date: Apr 2007
Posts: 3
Default Re: Ruby on Rails Support

Running RubyOnRails with CGI isn't quite good enough:

To quote Agile Web Development with Rails (the Ruby-Rails bible): "CGI is
definitely not
the place you want to be. [...] Thankfully, Apache is also
capable of running FastCGI."

Serious Rails apps require either:
  • FastCGI
  • Mongrel Clusters via Apache deferral (even better!)
Without these, HostGator is just hurting it's own server loads. (CGI is pretty
inefficient with resources.) May I suggest implementing at least one of these?
Reply With Quote
  #54  
Old 04-12-2007, 01:43 PM
filiph filiph is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 7
Unhappy Re: Ruby on Rails Support

I was just thinking to post about the same topic. Could you please get FCGI to work on HostGator anytime soon? Are you planning to do so, even in the long term?

Thanks!
Filip Hracek, reklama.visible.cz
Reply With Quote
  #55  
Old 04-29-2007, 08:41 PM
mhurne mhurne is offline
Hatchling Croc
 
Join Date: Apr 2007
Posts: 4
Default Re: How to get Ruby on Rails running at the root of the domain

Quote:
Originally Posted by filiph View Post
UPDATE: This may work for some pages, but it's much safer to make a subdomain (eg. railsapp.mydomain.com) and then redirecting your www.mydomain.com traffic there. How to make a rails subdomain? Easy. Make the new subdomain (let's say 'railsapp' in cpanel, then go to your public_html/ directory ('cd ~/public_html'), delete the subdomain directory that cpanel created ('rm -r railsapp') and make a symlink of the same name towards your rails application ('ln -s ../path/to/your/rails/app/public ./railsapp'). Done.That's it! Enjoy.
That works great for me, except for the "redirecting your www.mydomain.com traffic" to the subdomain. How exactly do I do that?
Reply With Quote
  #56  
Old 05-25-2007, 02:25 AM
stanford stanford is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 1
Default Re: Ruby on Rails Support

I found Instruction 1 a little terse. Here's how I did it on a Mac:
>>1. Login to your SSH using your own account.
In the Finder, go to Applications, Utilities and double click on Terminal.
In Terminal type the command:
ssh -p 2222 myname@mydomain.com
You need to specify port 2222 because it won't work with the default port, 22.

I also found instruction 6 ("RewriteRule") wasn't needed.
Reply With Quote
  #57  
Old 09-04-2007, 01:11 AM
Daniel S
HostGator Guest
 
Posts: n/a
Default Re: Ruby on Rails Support

Hello.

I`ve finally manage to get my aplication online but it seems that Rmagik (http://rmagick.rubyforge.org/) gem is not installed.
Reply With Quote
  #58  
Old 09-04-2007, 04:16 AM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,223
Default Re: Ruby on Rails Support

Quote:
Originally Posted by Daniel S View Post
Hello.

I`ve finally manage to get my aplication online but it seems that Rmagik (http://rmagick.rubyforge.org/) gem is not installed.
Drop a note to support and they will install it for you or explain the reason if it can not be installed.
__________________
best regards,
George
Reply With Quote
  #59  
Old 09-04-2007, 10:24 PM
syncrou syncrou is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 1
Default Re: Ruby on Rails Support

I have my rails app running, however it seems nothing in my <rails_app>/public directory is available. The production log keeps giving me routing errors: it can't find the stylesheets/<stylesheet_name>.css.

As far as I know it isn't permissions.
running locally everything renders nicely.
I'm used to running with mongrel and apache's mod proxy so I'm at a loss using cgi.

UPDATE: I solved it. Permissions issue.

One more thing though, I would like to toss my hat in for the mongrel, fastcgi requests. CGI is too slow for Rails Apps.

Thanks for all the great work. I've been very impressed.

Thanks
Drew
--

bomhofintegrated.com

Last edited by syncrou; 09-05-2007 at 08:17 PM.
Reply With Quote
  #60  
Old 09-26-2007, 04:48 PM
lsalberg lsalberg is offline
Hatchling Croc
 
Join Date: Feb 2006
Posts: 13
Default Re: Ruby on Rails Support

Quote:
Originally Posted by leonsmith View Post
I guess I have been around too long. I see Ruby as a major step backward in terms of software development.

Come on this is the twenty first century and people are still using command line args, make utilities, relational databases, etc. ?

As far as productivity goes, a lot of that is because they let a database schema drive automated access code generation. Now there's a feature that was really cool about twenty years ago.

The more things change the more they stay the same...
Uh, just wanted to say that those of us who aren't still living in the past dreaming about the good old days of Cobol and Fortran truly appreciate you guys implementing RoR! Leon here doesn't exactly say what "wunderbar" web application development system he's using. Maybe you HG guys could peek (not POKE!) into his server and let us know. I guess we "noobs" need to be schooled a bit. How dare we use a relational database and command-line arguments! How very 1970's!

Seriously, thanks a million for doing this. When I saw how long it had taken for PHP5 to be implemented, I just assumed that I was a few years off from getting RoR. Glad to see I was way wrong.
Reply With Quote
  #61  
Old 10-01-2007, 06:50 PM
VisualBasicImp VisualBasicImp is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 1
Default Re: Ruby on Rails Support

I followed the steps mentioned earlier (or at least tried to), but couldn't figure out how to overwrite only the dispatch.* files using the Rails . command.
Regardless, i created a second application straight from scratch using the steps outlined above, and also performed all the necessary uploads of the files into the folders.
A few things i didnt do, and this might be a problem.
I didn't change any of the dispatch.* files, because they seemed the same as already in my local folder, and i thought id keep the defaults. I also wasnt able to perform a migration, because it said that my access to root@localhost was denied.
My question is, I am running this rails app off of a MySql database which i have provided with a username and password in the database.yml file, however, im still getting the "Application failed to start properly"" message whenever i try to visit the page online.

Is there any way i can fix this?
Thanks
DC
Reply With Quote
  #62  
Old 10-04-2007, 08:11 PM
buzzword buzzword is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 2
Default Re: Ruby on Rails Support

Is there any way to run RoR without having the jailed ssh?
I made the changes to .http access and I added the erb.cgi and I can add some simple <%=@var> substitutions. Nothing else seems to work. Im just looking at Ruby.
http://www.fluidmovie.com/ruby.rhtml
Cheers
Reply With Quote
  #63  
Old 10-04-2007, 10:04 PM
buzzword buzzword is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 2
Default Re: Ruby on Rails Support

Is there any way to run RoR without having the jailed ssh?
I made the changes to .http access and I added the erb.cgi and I can add some simple <%=@var> substitutions. Nothing else seems to work. Im just looking at Ruby.
http://www.fluidmovie.com/ruby.rhtml
Cheers
Reply With Quote
  #64  
Old 10-29-2007, 09:20 AM
boza boza is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 7
Default Re: Ruby on Rails Support

Hi, does anyone has an easy tutorial on how to deploy a RoR app for production? By the way, we need FastCGI or Mongrel on shared servers almost all RoR apps are useless with CGI
Reply With Quote
  #65  
Old 10-29-2007, 09:28 AM
kmaw's Avatar
kmaw kmaw is offline
Emperor Croc
 
Join Date: Mar 2005
Location: Ontario, Canada
Posts: 1,921
Default Re: Ruby on Rails Support

Quote:
Originally Posted by boza View Post
Hi, does anyone has an easy tutorial on how to deploy a RoR app for production? By the way, we need FastCGI or Mongrel on shared servers almost all RoR apps are useless with CGI
I don't recall a Gator actually answering why not... but here's good speculation as to why it won't likely show up...

http://forums.hostgator.com/showthre...hlight=fastcgi
Reply With Quote
  #66  
Old 10-30-2007, 09:14 AM
boza boza is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 7
Thumbs down Re: Ruby on Rails Support

Quote:
Originally Posted by kmaw View Post
I don't recall a Gator actually answering why not... but here's good speculation as to why it won't likely show up...

http://forums.hostgator.com/showthre...hlight=fastcgi
Hostgator great for php, not so much for rails, I also don't see the support team with a great knowledge of rails, I've been trying to get an app running but just wont work, and I still don't get any good answers on what it might be going on...
Reply With Quote
  #67  
Old 10-30-2007, 10:28 AM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 3,128
Default Re: Ruby on Rails Support

In all fairness, it is not the job of the technical support team to provide programming support for rails or any other programming language. I would expect them to be able to check that there are no server misconfigurations but that would be all.
Reply With Quote
  #68  
Old 10-30-2007, 02:55 PM
boza boza is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 7
Default Re: Ruby on Rails Support

Exactly GvilleRick... so if the demoapp is not even working I imagine is not my fault to keep getting 500 error messages with the rails applications, but if you don't have any idea about ruby and rails probably you wont know what the hell is misconfigured.
Reply With Quote
  #69  
Old 10-30-2007, 03:08 PM
gtgeorge's Avatar
gtgeorge gtgeorge is offline
Emperor Croc
 
Join Date: Mar 2005
Posts: 2,223
Default Re: Ruby on Rails Support

Quote:
Originally Posted by boza View Post
Exactly GvilleRick... so if the demoapp is not even working I imagine is not my fault to keep getting 500 error messages with the rails applications, but if you don't have any idea about ruby and rails probably you wont know what the hell is misconfigured.
500 errors usually generate an error log which would give a clue why? Might want to post your error here or to support for help?
__________________
best regards,
George
Reply With Quote
  #70  
Old 10-30-2007, 03:13 PM
boza boza is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 7
Default Re: Ruby on Rails Support

I don't have any records on the log files
Reply With Quote
  #71  
Old 10-30-2007, 03:19 PM
boza boza is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 7
Default Re: Ruby on Rails Support

tried this 6brand.com/application-error-rails-app-failed-to-start-properly didn't worked 6brand.com/application-error-rails-app-failed-to-start-properly
Reply With Quote
  #72  
Old 10-30-2007, 03:25 PM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,057
Default Re: Ruby on Rails Support

Quote:
Originally Posted by boza View Post
I don't have any records on the log files
check /public_html/error_log
Reply With Quote
  #73  
Old 10-30-2007, 03:29 PM
boza boza is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 7
Default Re: Ruby on Rails Support

ok fixed the problem, in one app, please update rails gem to 1.2.5 thanks...
Reply With Quote
  #74  
Old 11-05-2007, 06:38 PM
mikeF mikeF is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 1
Question Re: Ruby on Rails Support

I'm getting 404 Errors. I've tried the demo app, uploading a basic one table scaffolded app(excluding the public dir), and uploading my real app. None of the three have worked. I've followed the steps in this thread and am able to get to the public/index.html file in all attempts but can't get to any of the actual rails stuff to work (they work on my local machine).

EDIT: I haven't set up a domain name yet. I'm navigating via http://IP/~accountname <--- This is the cause. The way RoR is set up it doesn't work with straight ip.

Mike

Last edited by mikeF; 11-06-2007 at 07:53 AM. Reason: Solution
Reply With Quote
  #75  
Old 11-19-2007, 01:19 AM
bigapple bigapple is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 1
Default Re: Ruby on Rails Support

I follow the steps in http://forums.hostgator.com/showthre...ght=ruby+rails, and when step 5.

5. Before you test the Rails page, there is one more modification you need to make.
Code:

cpaneluser@server [~]# cd ../demoapp/public
cpaneluser@server
[~]# pico .htaccess

Locate the line where it has the code like below :
Code:

RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

Change that code to :
Code:

RewriteRule ^(.*)$ dispatch.cgi [QSA,L]


I found the line

RewriteRule ^(.*)$ dispatch.cgi [QSA,L]


So I needn't do the change as step 5 says.

But when I try to visit the site with http://www.bbcolors.com/demorails, it gives me 400 error.

This thread is so old, may be something changed, could you provide me the recently guide of how to deploy ROR project on Hostgator.

Many thanks.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 10:29 PM.