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

Notices

Reply
 
Thread Tools
  #76  
Old 11-28-2007, 03:54 PM
adiazar adiazar is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 5
Default Re: Ruby on Rails Support

I went through the same steps and I could not run rails application.

I hope that anyone can help us.

Thanks


Quote:
Originally Posted by bigapple View Post
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
  #77  
Old 11-28-2007, 04:06 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

Probably not, do you have more information or an error.... and you followed the change from fcgi to cgi
Reply With Quote
  #78  
Old 11-28-2007, 04:44 PM
adiazar adiazar is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 5
Default Re: Ruby on Rails Support

Quote:
Originally Posted by kmaw View Post
Probably not, do you have more information or an error.... and you followed the change from fcgi to cgi

I did not change it from fcgi to cgi because that line already cgi. Right?

Thanks
Reply With Quote
  #79  
Old 11-28-2007, 05:28 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

Quote:
Originally Posted by adiazar View Post
I did not change it from fcgi to cgi because that line already cgi. Right?
Ok, yes it should be .cgi
Reply With Quote
  #80  
Old 11-28-2007, 05:58 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: Ruby on Rails Support

Have people tried the new RoR functionality in cPanel 11 (at least on the release tree)?
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #81  
Old 11-28-2007, 06:07 PM
adiazar adiazar is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 5
Default Re: Ruby on Rails Support

Quote:
Originally Posted by slapshotw View Post
Have people tried the new RoR functionality in cPanel 11 (at least on the release tree)?
No sir, I did not because I can not see any RoR related functionality in my panel. Could you please give us more details?
Reply With Quote
  #82  
Old 11-28-2007, 06:08 PM
adiazar adiazar is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 5
Default Re: Ruby on Rails Support

Quote:
Originally Posted by adiazar View Post
I did not change it from fcgi to cgi because that line already cgi. Right?

Thanks
I do not have details about any errors, I went through the steps one by one and they are wrong.

thanks
Reply With Quote
  #83  
Old 11-28-2007, 06:34 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: Ruby on Rails Support

Quote:
Originally Posted by adiazar View Post
No sir, I did not because I can not see any RoR related functionality in my panel. Could you please give us more details?
Are you on a shared/reseller server? Does it say cPanel 10 or cPanel 11 on top? cPanel's latest build has an RoR admin area built directly into it. Very easy to use.

-Matt
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #84  
Old 11-28-2007, 06:46 PM
adiazar adiazar is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 5
Default Re: Ruby on Rails Support

I am on shared hosting just to try the quality of RoR hosting on hostgator.
I have Cpanel X. I do not have cpanel 11/10
What should I do to get this RoR in my panel?

Thanks


Quote:
Originally Posted by slapshotw View Post
Are you on a shared/reseller server? Does it say cPanel 10 or cPanel 11 on top? cPanel's latest build has an RoR admin area built directly into it. Very easy to use.

-Matt
Reply With Quote
  #85  
Old 11-28-2007, 07:06 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: Ruby on Rails Support

Wait until HG upgrades the rest of the boxes to cPanel 11. You (like most HG customers) have 10 right now. I'm on a dedicated, so I was able to upgrade myself. But it is coming!
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #86  
Old 12-05-2007, 06:18 AM
foward foward is offline
Hatchling Croc
 
Join Date: Dec 2007
Posts: 1
Default Re: Ruby on Rails Support

I have one problem .... I make the demoapp and works with a lot of research and painfull time wasted ...but is ok ....but when I want to do a migration i mean (rake migrate) appear the problem ...

one of the migrate files is:

class Authors < ActiveRecord::Migration
def self.up
create_table :authors,ptions => 'engine=MyISAM' do |table|
table.column :id, :integer, :null =>false
table.column :name, :string
end
end

def self.down
drop_table :authors
end
end


and throw the follow:


[ ~/demoapp/db/migrate]$ rake migrate
(in /home/foward/demoapp)
== Authors: migrating ================================================== =======
-- create_table(:authors, {ptions=>"engine=MyISAM"})
rake aborted!
Mysql::Error: You have an error in your SQL syntax; check the manual that corres ponds to your MySQL server version for the right syntax to use near '(11), `name ` varchar(255) DEFAULT NULL) engine=MyISAM' at line 1: CREATE TABLE authors (`id ` int(11) DEFAULT NULL auto_increment PRIMARY KEY(11), `name` varchar(255) DEFAU LT NULL) engine=MyISAM

(See full trace by running task with --trace)


any idea? ..please ....thanks


BR

Pancho
Reply With Quote
  #87  
Old 12-08-2007, 06:29 AM
icouto icouto is offline
Hatchling Croc
 
Join Date: Dec 2007
Posts: 1
Default Re: Ruby on Rails Support

Rails 2.0 has been officially released!

Before I plunge in straight away, does anyone know if/when HostGator servers will be updated to the new version?
Reply With Quote
  #88  
Old 12-10-2007, 02:25 PM
boza boza is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 7
Default Re: Ruby on Rails Support

No idea, I've been asking for the 1.2.5 since it was released and no changes were made, they told me untill the release is stable, also we need fcgi thnak you
Reply With Quote
  #89  
Old 12-11-2007, 04:51 AM
akkudu akkudu is offline
Hatchling Croc
 
Join Date: Apr 2007
Posts: 6
Default Re: Ruby on Rails Support

I have reseller account and i cant rollup my customers sites. Because i already have a ssh accessable domain and i must pay 10$ for ssh access for each domain that i have to setup rails. this is insane. I payed for a year and i have to pay extra fees for crappy cgi access. i'm looking for a hosting company with real rails support.

Last edited by akkudu; 12-11-2007 at 04:52 AM. Reason: typo
Reply With Quote
  #90  
Old 12-11-2007, 09:59 AM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,059
Default Re: Ruby on Rails Support

Quote:
Originally Posted by akkudu View Post
I have reseller account and i cant rollup my customers sites. Because i already have a ssh accessable domain and i must pay 10$ for ssh access for each domain that i have to setup rails. this is insane. I payed for a year and i have to pay extra fees for crappy cgi access. i'm looking for a hosting company with real rails support.
Your not paying for cgi access, your paying for SSH (Secure Shell)
Reply With Quote
  #91  
Old 12-11-2007, 10:09 AM
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

Quote:
Originally Posted by Sam View Post
Your not paying for cgi access, your paying for SSH (Secure Shell)
I believe he means, paying extra YET he still has crappy cgi access and not fcgi.... even if its the shell he's paying for
Reply With Quote
  #92  
Old 12-18-2007, 12:20 AM
richinri richinri is offline
Hatchling Croc
 
Join Date: Dec 2007
Posts: 15
Default Re: Ruby on Rails Support

I worked with RoR for about a year and thought I would throw my two cents in. RoR is definitely interesting but the main issue is IMPLEMENTATION. It is a resource hog and for what purpose? It does the same thing that can be done with PHP or any other existing web technology. It is like a better mouse trap, it works good, but the old one is fine too.
RoR gives programmers a new way to do old things they are bored doing. RoR forces discipline in programming. That can be done with PHP using Code Igniter which uses the MVC architecture.
I have experienced a great RoR website that I couldn't implement online without one headache after another and I finally said, "What the hell am I doing?" In short, RoR is very nice, is here to stay but it isn't quite soup yet in the marketplace. With real estate it is location - with the web it is IMPLEMENTATION. And THAT is where RoR falls short.
Reply With Quote
  #93  
Old 12-18-2007, 03:09 PM
gemblon gemblon is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 11
Default Re: Ruby on Rails Support

table.column :id, :integer, :null =>false
table.column :name, :string
end

_____


id is made ... automatically.
you actually have to turn it off, or you get it.
remove the line:
table.column :id, :integer, :null =>false
Reply With Quote
  #94  
Old 12-18-2007, 03:11 PM
gemblon gemblon is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 11
Default Re: Ruby on Rails Support

you can do with ruby that you can so with php. you can even call php stuff.
the php has better documentation. ruby is catching up, there there are a lot of pod casts.
Reply With Quote
  #95  
Old 12-18-2007, 03:16 PM
gemblon gemblon is offline
Hatchling Croc
 
Join Date: Oct 2007
Posts: 11
Default Re: Ruby on Rails Support

Quote:
Originally Posted by icouto View Post
Rails 2.0 has been officially released!

Before I plunge in straight away, does anyone know if/when HostGator servers will be updated to the new version?
____
i would wait another 30-60 days, for a maintenance release. there is still a lot of issues being worked out. maybe they can have a button to update a site as an option. the gems have to be sure they still work, and i get a lot of depreciated stuff.

just freeze rails to an older version, so you are in sync...
or go for the bleeding edge. lol. ack.
Reply With Quote
  #96  
Old 12-18-2007, 08:40 PM
cnova01 cnova01 is offline
Hatchling Croc
 
Join Date: Dec 2007
Posts: 1
Default Re: Ruby on Rails Support

Quote:
Originally Posted by ZenCocoon View Post
Here is few things when you like to turn a local RubyOnRails app in server like HostGator.

Once your application uploaded do the following things :

- Run
Code:
rails .
and overwrite all and only dispatch.*
- Edit config/database.yml
- Edit /config/environment.rb to set ENV['RAILS_ENV'] ||= 'production'
- Migrate your database if needed
- Remove public/index.html
- You should be up and running ;-)

Hope this help,
I have tried following these steps to get my local rails application deployed. Here is the exact steps that I took:

I followed the first 4 steps as described in the 1st post in this thread (I did not need to do step 5 as it was already complete). I then overwrote my local files (whole app directory, the whole public directory EXCEPT .htaccess, the db directory, database.yml and routes.rb in config directory)

Before moving the index.html page in /home/cpanelaccountname/rails_proj/public/index.html I can see basic rails home page. However, upon moving it I get "Rails application failed to start properly" . I also get the same error when trying to access any of my views. It seems as if my controllers are not being accessed.

I check the basic cPanel logs and get two diff errors:

1. error: directory is writable by others: (/home/cpanelusername/project/public)

2. Premature end of script headers: /home/cpanelusername/public_html/project/dispatch.cgi

Not sure if these error have anything to do with my application not working.

Anyone know why I can get my routes.rb file to work?
Reply With Quote
  #97  
Old 12-28-2007, 12:08 PM
pietertje pietertje is offline
Hatchling Croc
 
Join Date: Dec 2007
Posts: 1
Default Re: Ruby on Rails Support

I've the same problem as cnova01. When I run dispatch.fcgi I get the following errors:
Code:
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- fcgi (MissingSourceFile)
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
        from /usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/fcgi_handler.rb:1
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
        from ./dispatch.fcgi:22
I expect that not all gems are installed correctly.

--

The problem is now fixed with thanks to the support desk.
There where some issues with the right permissions of folders. If you have the same problem chmod the folders stylesheets en javascripts to 755

Last edited by pietertje; 12-29-2007 at 02:53 AM. Reason: problem fixed
Reply With Quote
  #98  
Old 01-04-2008, 07:48 AM
mkmus mkmus is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 2
Default Re: Ruby on Rails Support

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... :$
Reply With Quote
  #99  
Old 01-05-2008, 03:43 PM
mooger mooger is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 2
Default Re: Ruby on Rails Support

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
  #100  
Old 01-05-2008, 05:45 PM
mkmus mkmus is offline
Hatchling Croc
 
Join Date: Jan 2008
Posts: 2
Default Re: Ruby on Rails Support

I've the same problem, I ask to support people but it seems they don't know how to solve it .

Mk
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:52 PM.

 
Forum SEO by Zoints