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

Notices

Reply
 
Thread Tools
  #101  
Old 01-05-2008, 06:34 PM
mooger mooger is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 2
Default Re: Ruby on Rails Support

Quote:
Originally Posted by mkmus View Post
Hi guys

This is my first post, I follow all steps, and I find this :

http://rx8.websitewelcome.com/~nosaltre/hgtest/test

It's like test doesn't exist... any idea?

Thanks lot for your time.

Mk

Pd: i tried to put in development mode to see errors, but nothing... :$

" The requested URL /home/nosaltre/public_html/hgtest/dispatch.cgi was not found on this server."

Where did you install the rails app? Are you sure you followed this step correctly?


Quote:
Now create a symlink in public_html so that the app is viewable via the web.
Code:
cpaneluser@server [~]# cd ../public_html
cpaneluser@server [~]# ln –s ../demoapp/public rails
Reply With Quote
  #102  
Old 01-12-2008, 10:20 AM
DYN_DaTa DYN_DaTa is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 9
Default Re: Ruby on Rails Support

Hi, i've reading this thread and i'm not completely sure if i would be able to setup correctly Ruby On Rails into my account, seems a difficult and (in my humble opinion) absurd task, starting with the photo id prerequisite: Hostgator doesn't ask for this id on the account set-up, billing info and so on and then asks for it on this subject? ... i can't understand it.

Well anyways, someone said on this thread that cpanel 11 has a Ruby On Rails module that automates a lot of this process, does anybody knows when this module will be available?.

Thanks.
Reply With Quote
  #103  
Old 01-12-2008, 06:04 PM
rogerdpack rogerdpack is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 2
Default Re: Ruby on Rails Support

Check your error log in cpanel. That helped me. Also you could try ssh'ing in, and running your server in production mode (in one window script/server -e production)
Then in another window 'download' a file from it
require 'socket'
a = TCPSocket.new 'localhost', 3000
a.write("GET / HTTP/1.0\r\n\r\n")
a.recv(1024)
and examine any errors on the server side.
Good luck!

I was able to reproduce it, and it seems that any request 'besides root' is getting an extra /app_name on it--
modifying
public/.htaccess
and uncommenting
RewriteBase /rails_app_name
might be the trick
Not sure if it needs the line above that (seems to work without it).


Quote:
Originally Posted by mooger View Post
I followed the instructions in the original post step by step. I get the Welcome Aboard page. But if I click "about your application's environment" I get
Application error
Rails application failed to start properly"

If I try to install any other apps I get the same message.

What could be the problem?
Reply With Quote
  #104  
Old 01-16-2008, 03:29 PM
rogerdpack rogerdpack is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 2
Default Re: Ruby on Rails Support

Turns out that hostgator is not a good choice for Rails as they don't have fcgi support. This means that your app has to start and restart every time you load a request--or about a 2.5s fee per request. This is not good, as you can guess, though it's not terrible.
Take care and good luck!
On to the refund page...
Reply With Quote
  #105  
Old 01-18-2008, 07:35 PM
asdf989 asdf989 is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 6
Default Re: Ruby on Rails Support

New to ruby, but I'm a long time programmer. So far I'm not impressed with this service.

"Step 2: type rails /home/[user]/demoapp" into the ssh console" of the setup provides me with this error

/usr/bin/rails:17: undefined method `require_gem' for main:Object (NoMethodError)

Any ideas?
Reply With Quote
  #106  
Old 01-19-2008, 05:20 PM
asdf989 asdf989 is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 6
Default Re: Ruby on Rails Support

I'm tripping over every single error as everybody before me, but there's absolutely no responses from anyone on this forum.

as well as other people, I too am suffering from the error
Application error
Rails application failed to start properly"

Does anyone have a solution to this?
Reply With Quote
  #107  
Old 01-19-2008, 08:20 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: Ruby on Rails Support

I'll be 100% honest-- cPanel is not the greatest environment to host Ruby On Rails, especially cPanel 10 (11 has some additional support for it built in if HG allows it).

Have you considered a more rails-friendly environment for your rails app?
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #108  
Old 01-21-2008, 03:09 AM
Slepi's Avatar
Slepi Slepi is offline
Hatchling Croc
 
Join Date: Jan 2008
Location: Jakarta, Indonesia
Posts: 4
Default Re: Ruby on Rails Support

Make sure your /railsapp/public/dispatch.cgi contains this code:

Code:
#!/usr/bin/ruby
At the topmost of the file


Quote:
Originally Posted by asdf989 View Post
as well as other people, I too am suffering from the error
Application error
Rails application failed to start properly"

Does anyone have a solution to this?
Reply With Quote
  #109  
Old 01-21-2008, 05:53 PM
asdf989 asdf989 is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 6
Default Re: Ruby on Rails Support

Quote:
Originally Posted by Slepi View Post
Make sure your /railsapp/public/dispatch.cgi contains this code:

Code:
#!/usr/bin/ruby
At the topmost of the file

That wont do any good as the codes in /usr/local/bin/ruby and thats what the value is upon creation.

The solution IS...!:
make the demoapp/public folder with different access
chmod 755 /demoapp/public

and that gets you to th next error which is that your database.yml is unconfigured with sqllite3 defaults. But you'll have to figure those out yourself.
Reply With Quote
  #110  
Old 01-22-2008, 02:28 AM
richinri richinri is offline
Hatchling Croc
 
Join Date: Dec 2007
Posts: 15
Default Re: Ruby on Rails Support

I have said before and say again. What does rails do that you can't do with other, better supported technologies? NOTHING.
I worked with it for a year and got sick of the fun stopping as soon as it became necessary to IMPLEMENT the site online.
If you want disciplined programming - try CodeIgniter - MVC for PHP. Then you don't have to worry where you implement your site.
I predict Rails will settle into the larger corporate market. For most websites it is unnecessary. New, interesting and structured, yes, but not necessary. Make it easy on yourself - work with well supported technologies.
Reply With Quote
  #111  
Old 01-24-2008, 02:50 PM
DarkGamer DarkGamer is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 5
Default rake db:migrate errors on shared server

A quick note for people that are attempting to create RoR apps on shared servers and getting SQL errors when running rake db:migrate:

the mySQL database naming convention for shared servers is: username_databasename; this appears to be so as not to conflict with other users' database names. When I tried adding databases in cpanel with more than one underscore it would not allow me... for example, when I tried adding a database for application rails_app (by default, rails_app_development) when logged in as user, the database created becomes named user_railsappdevelopment, stripping all additional underscores.

This conflicts with the default RoR database naming conventions (_development, _test & _production). My advice for avoiding this snag is to not use underscores in your application name. Also, be sure you have the user name followed by an underscore at the beginning of the database names defined in config/database.ym (but no additional underscores!)... example:

Code:
production:
  adapter: mysql
  database: user_railsappproduction
  username: XXXXXXXX
  password: XXXXXXXX
  socket: /tmp/mysql.sock
This solved my problem.

Hope this helps!

Last edited by DarkGamer; 01-24-2008 at 03:01 PM. Reason: Made clearer, added code sample
Reply With Quote
  #112  
Old 01-28-2008, 01:48 PM
DarkGamer DarkGamer is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 5
Default Re: Ruby on Rails Support

Quote:
Originally Posted by zzz View Post
Is it just me or are no ruby on rails applications working? I had some applications running fine with symbolic links but now they are all 404 errors.
I tried creating a new rails app(just like the one in the first post) to test and it didnt work either.
I had the same issue and was about to submit a ticket, when I tried surfing to: http://yourdomain.com/demoapp/index.html the page loaded.

It would appear that folders outside of public_html aren't set to look for index.html by default. This is also causing problems in the "Welcome Aboard" page. When I click on "about your application's environment," I get a 404 error there as well (probably for the same reason)...

How does one resolve such an issue?
Reply With Quote
  #113  
Old 01-29-2008, 12:29 AM
Slepi's Avatar
Slepi Slepi is offline
Hatchling Croc
 
Join Date: Jan 2008
Location: Jakarta, Indonesia
Posts: 4
Default Re: Ruby on Rails Support

Quote:
It would appear that folders outside of public_html aren't set to look for index.html by default. This is also causing problems in the "Welcome Aboard" page. When I click on "about your application's environment," I get a 404 error there as well (probably for the same reason)...
Perhaps you'd find information about what's exactly happening in the Error log page of the cPanel.
__________________
Regards,
/Wiras
http://www.slepi.net
Reply With Quote
  #114  
Old 02-26-2008, 11:01 AM
geordee geordee is offline
Hatchling Croc
 
Join Date: Feb 2008
Posts: 2
Default Re: Ruby on Rails Support

Why am I getting this error?
/usr/bin/rake:17: undefined method `require_gem' for main:Object (NoMethodError)
Reply With Quote
  #115  
Old 02-26-2008, 12:08 PM
kmaw's Avatar
kmaw kmaw is offline
Emperor Croc
 
Join Date: Mar 2005
Location: Ontario, Canada
Posts: 1,856
Default Re: Ruby on Rails Support

I missed this before...
Quote:
Originally Posted by richinri View Post
I predict Rails will settle into the larger corporate market.
Like coldfusion? Only easier to use? lol
Reply With Quote
  #116  
Old 02-26-2008, 08:48 PM
geordee geordee is offline
Hatchling Croc
 
Join Date: Feb 2008
Posts: 2
Default Re: Ruby on Rails Support

Quote:
Originally Posted by geordee View Post
Why am I getting this error?
/usr/bin/rake:17: undefined method `require_gem' for main:Object (NoMethodError)
This error is resolved. I contacted tech support and they updated the gems.
Reply With Quote
  #117  
Old 03-10-2008, 01:28 AM
GatorShashank's Avatar
GatorShashank GatorShashank is offline
Hostgator Staff
 
Join Date: Jun 2004
Location: Make a guess :-)
Posts: 1,066
Default Re: Ruby on Rails Support

Hello,

We have received a lot of requests asking for Rails 2 support and updated ruby. So we will be upgrading the Ruby and Rails Environment soon on our servers to the latest version. Following is an output of the testing updates we have done so far. The versions will be as below :

Update Version Report:
Ruby Version : ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]
Gem Version : 1.0.1
Rails Version : Rails 2.0.2

Nothing much should be changed on the existing rails apps unless you have built your application on specific rails version. You just need to update the RAILS_GEM_VERSION in your environment.rb to 2.0.2 if you do face issues with the updated version.

Rest all should remain the same. These upgrades will be done in the next few days.
__________________
Shashank Wagh
Systems Administrator & Level III Support,
Hostgator.com LLC.
Find us @ http://www.HostGator.com/help/
Reply With Quote
  #118  
Old 03-11-2008, 05:49 AM
ZenCocoon ZenCocoon is offline
Hatchling Croc
 
Join Date: May 2006
Posts: 12
Default Re: Ruby on Rails Support

Hi all,

Nice to see hostgator updating to rails 2.0.2. Just a few notice about that.
Rails 2 introduce a lot of changes and deprecations from earlier version.

If you like to update your existing application to Rails 2.0.2 make sure to read Ryan Daigle articles on :
http://ryandaigle.com/articles/2007/...ry-of-features

Don't forget as well than freezing rails in your application is almost a need for a production application. Doing so may avoid troubles on server updates and be able to update rails when you decide without the need of your server to be updated or to keep it working on a version not present on the server like rails 1.2.6 or even edge (You still need the proper version of Ruby installed).

Hope this few notices helps,
__________________
Sébastien Grosjean - ZenCocoon - www.zencocoon.com
http://www.villasthalassa.com -- Wonderful sea side villas to rent in Greece
http://www.lefkadalands.com -- Find the land of your dreams, on a Greek island
http://www.catamaranforent.com -- Rent an amazing 42 feet catamaran in Ionian islands, Greece
http://www.tiarehq.com -- Multilingual website builder, online publishing in minutes

Last edited by ZenCocoon; 03-11-2008 at 05:51 AM.
Reply With Quote
  #119  
Old 03-11-2008, 02:01 PM
Faltzer Faltzer is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 5
Default Re: Ruby on Rails Support

For a very odd reason, my rails set-up returns an application error and I haven't even configured anything. =/;
Reply With Quote
  #120  
Old 03-28-2008, 07:27 PM
vlajko vlajko is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 1
Default Re: Ruby on Rails Support

I got HG shared account several days ago and I am trying to get my RoR apps to work in the new environment.

Once I have 'frozen' rails it was not a huge pain to deploy application using Capistrano and to get it to actually start and connect to database. But, ....

URLs that have form 'controller/action/id' work fine, but any URL that contains more then one controller is not parsed and routed properly - second controller is interpreted as action of the first controller:

http://test.mydomain.com/plan/plans/list

is triggering:

Processing PlanController#plans (for ###.###.###.### at 2008-03-28 17:15:32) [GET]
Session ID: 39d0ec6419aea3aa0212f1be3f26827b
Parameters: {"action"=>"plans", "id"=>"list", "controller"=>"plan"}
ActionController::UnknownAction (No action responded to plans):
"controller" parameter should be 'plan/plans' and "action" parameter should be 'list'.


Has anyone deployed on HG shared server an RoR application which is using more then one controller in request? Any special configuration required? Needless to say that this works perfectly fine on a local Mongrel :-).

I know that this can be 'treated' with routing rules, but I am not interested in such solution because having two controllers (one being sub of another) is legal RoR structure and there should not be a need to write routing rules to handle that.

Cheers,
VK
Reply With Quote
  #121  
Old 03-28-2008, 11:12 PM
Streamweaver Streamweaver is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 2
Default Re: Ruby on Rails Support

Reading through the thread, RoR seems to have come a long way here but it leaves me confused as to how it's currently supported. Did they ever change the RoR as CGI issue? It seemed faily important to not run it in that mode if you wanted a serious site?
Reply With Quote
  #122  
Old 03-28-2008, 11:30 PM
Streamweaver Streamweaver is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 2
Default Re: Ruby on Rails Support

Sorry, yet another question

When I try to restart my server to register controllers I never get back to the command prompt.
./script/server
Gives me the expected results on screen but I never get back to a command prompt.
Reply With Quote
  #123  
Old 04-22-2008, 12:45 PM
jeromio jeromio is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 3
Default Re: Ruby on Rails Support

Quote:
Originally Posted by DarkGamer View Post
I had the same issue and was about to submit a ticket, when I tried surfing to: http://yourdomain.com/demoapp/index.html the page loaded.

It would appear that folders outside of public_html aren't set to look for index.html by default. This is also causing problems in the "Welcome Aboard" page. When I click on "about your application's environment," I get a 404 error there as well (probably for the same reason)...

How does one resolve such an issue?
You should also be able to drop the "index.html" but keep the slash and it will load. It's that trailing slash that's needed. I found this:

http://snippets.dzone.com/posts/show/3417

Which solved the problem - mostly. The images don't load. SO, if you have something like
images/rails.png

in your file, then you get a 404 error - it's pointing to public_html/images instead of the images folder within the rails app's directory.

There's some strange things happening with the rewriting.
Reply With Quote
  #124  
Old 05-23-2008, 10:13 AM
devonrt devonrt is offline
Hatchling Croc
 
Join Date: May 2008
Posts: 1
Default Re: Ruby on Rails Support

Can someone give me a bit of guidance on deploying a locally developed rails app onto my (shared) server? I get as far as uploading the application and then I'm completely lost. Navigating to my controllers just gets a 404, and the "Welcome Aboard" page seemingly works but I get an Application Error when I click "About your applications environment."
Reply With Quote
  #125  
Old 06-04-2008, 05:13 PM
CWC CWC is offline
Hatchling Croc
 
Join Date: May 2008
Posts: 9
Default Re: Ruby on Rails Support

I'm having basically the same problem, and it doesn't seem to be addressed in the rest of this thread.
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 Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 08:56 PM.

 
Forum SEO by Zoints