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

Notices

Reply
 
Thread Tools
  #26  
Old 02-09-2007, 05:04 PM
ZenCocoon ZenCocoon is offline
Hatchling Croc
 
Join Date: May 2006
Posts: 12
Default Re: Ruby on Rails Support

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,
__________________
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
Reply With Quote
  #27  
Old 02-10-2007, 05:09 AM
filiph filiph is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 7
Thumbs up Re: Ruby on Rails Support

Quote:
Originally Posted by ZenCocoon View Post
- You should be up and running ;-)
ZenCocoon is right. I was just going to post almost the same procedure. I got my application running 5 minutes ago.

The other way to go is to first build an application from scratch on the server (rails ./myapp) and then overwrite the files you need (that would be: the whole app directory, the whole public directory EXCEPT .htaccess, the db directory, database.yml and routes.rb in config directory and that would be it, if you have only a small app).

Good luck!

Filip, www.visible.cz
Reply With Quote
  #28  
Old 02-10-2007, 06:01 AM
dieffe dieffe is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 6
Thumbs up Re: Ruby on Rails Support

Yes, that seems to solve the problem. My app is now working fine.

Thanks anyone
Reply With Quote
  #29  
Old 02-10-2007, 07:27 AM
erwinquita erwinquita is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 5
Default Re: Ruby on Rails Support

Quote:
Originally Posted by dieffe View Post
Yes, that seems to solve the problem. My app is now working fine.

Thanks anyone
Glad to know you got it working!

I was having a hard time how to get my local ror app running too...

Steps I made to get my site up and running

uploaded my app folder (mywebapp)

issue from command line

rails mywebap

then force overwrite the files... take note of the overwritten files...

then upload again the files that was overwritten.

Here's my site www.ibatayo.com

What's your url?
Reply With Quote
  #30  
Old 02-10-2007, 07:35 AM
erwinquita erwinquita is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 5
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,
Zen,

Did you get the emailing working I have this on my settings... and my email function is not working... Any help would be appreciated.

ActionMailer::Base.server_settings = {
:address => "mail.ibatayo.com",
ort => 25,
:domain => 'ibatayo.com',
:user_name => "myaccountuser@ibatayo.com",
assword => 'mypassword',
:authentication => :login
}

Regards,
Reply With Quote
  #31  
Old 02-10-2007, 11:44 AM
dieffe dieffe is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 6
Exclamation Re: Ruby on Rails Support

Now that i have my application running i notice that it runs fair more slowly than in the local situation. Every link tooks 3-4 seconds to load.
Any chance is related to the usege of cgi insted of fcgi? I dont want to believe that's the avarage speed of the server.
You can test it at www.dassenno.com/baldin/contatti/
user: politica pass: baldin

Any forum i read suggest to use fgci insted of cgi.

Any idea?
Reply With Quote
  #32  
Old 02-11-2007, 08:57 AM
ZenCocoon ZenCocoon is offline
Hatchling Croc
 
Join Date: May 2006
Posts: 12
Default Re: Ruby on Rails Support

Quote:
Originally Posted by erwinquita View Post
Zen,

Did you get the emailing working I have this on my settings... and my email function is not working... Any help would be appreciated.

ActionMailer::Base.server_settings = {
:address => "mail.ibatayo.com",
ort => 25,
:domain => 'ibatayo.com',
:user_name => "myaccountuser@ibatayo.com",
assword => 'mypassword',
:authentication => :login
}

Regards,
Hi erwinquita,

I just wrote an article on my blog, explaning how to simplify email configuration for rails. And few things to don't forget ;-)

http://seb.box.re/2007/2/11/simplify...-sending-email

Any comments is welcome ;-)
__________________
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
Reply With Quote
  #33  
Old 02-11-2007, 09:02 AM
ZenCocoon ZenCocoon is offline
Hatchling Croc
 
Join Date: May 2006
Posts: 12
Default Re: Ruby on Rails Support

Quote:
Originally Posted by dieffe View Post
more slowly than in the local situation. Every link tooks 3-4 seconds to load.
Any chance is related to the usege of cgi insted of fcgi?
Hi Dieffe,

Yes that come from the cgi use. To make it faster it would be great that hostgator support fastcgi.

If you are looking for even better it would be using mongrel/lighttpd support, wich would need dedicate memory to don't slow down everybody on the server.
Notice: I'm far to know that much about this hosting background details, just keep this thoughts as guideline to find more regarding this issues.

As I asked previously in this forum, do we have any chance to see FastCGI allowed on HostGator ?
__________________
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
Reply With Quote
  #34  
Old 02-11-2007, 02:09 PM
filiph filiph is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 7
Smile Re: Ruby on Rails Support

Quote:
Originally Posted by dieffe View Post
Now that i have my application running i notice that it runs fair more slowly than in the local situation. Every link tooks 3-4 seconds to load.
Any chance is related to the usege of cgi insted of fcgi?
Yeah, fcgi would be great. But if you guys want to make your apps run faster, just switch to production mode.

In config/environment.rb file, uncomment the line to look like this:
Code:
# Uncomment below to force Rails into production mode when 
# you don't control web/app server and can't set it the proper way
ENV['RAILS_ENV'] ||= 'production'
Your app will respond much more quickly. On the other hand, when something goes wrong, you won't see the debug report.

Hope this helps.

Filip, www.visible.cz

Last edited by filiph; 02-11-2007 at 02:18 PM.
Reply With Quote
  #35  
Old 02-11-2007, 02:27 PM
dieffe dieffe is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 6
Thumbs up Re: Ruby on Rails Support


Yay, worked.
Reply With Quote
  #36  
Old 02-12-2007, 04:52 AM
ZenCocoon ZenCocoon is offline
Hatchling Croc
 
Join Date: May 2006
Posts: 12
Default Re: Ruby on Rails Support

Quote:
Originally Posted by filiph View Post
Yeah, fcgi would be great. But if you guys want to make your apps run faster, just switch to production mode.

In config/environment.rb file, uncomment the line to look like this:
Code:
# Uncomment below to force Rails into production mode when 
# you don't control web/app server and can't set it the proper way
ENV['RAILS_ENV'] ||= 'production'
Your app will respond much more quickly. On the other hand, when something goes wrong, you won't see the debug report.
That's for sure, you got to be in production mode to get correct performance, usually you shouldn't have development mode on server, only for your development process.

It's also important to notice that even in production you can collect plenty of information regarding your application, crashed, requests, time elasped by request, ... by reading the logs.

To do so, look at your log/ repertory and you will see a file by environment.
Don't forget the command tail to help you reading them, more about this commande type : tail --help in your shell
__________________
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
Reply With Quote
  #37  
Old 02-12-2007, 06:33 AM
sobolanul sobolanul is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 1
Default Re: Ruby on Rails Support

Hi.
Anyone knows how to set the subverion to be accessable from outside? I know how to set up the subverion server, but here I have no idea if the mod_dav_svn is installed for apace, or I have to start svnsere on my own. There is a guide how to make svn work on HG sharing servers?

Thank you
Reply With Quote
  #38  
Old 02-15-2007, 04:04 PM
bftsolns bftsolns is offline
Hatchling Croc
 
Join Date: Dec 2005
Posts: 7
Default Re: Ruby on Rails Support

I'm unable to checkout my repository from the outside. I have setup the repository in /public_html/svn/repository. I can view the repository in a web browser by going to http://www.mydomain.com/svn/repository. But, on my local machine if I try:

svn checkout http://www.mydomain.com/svn/repository

I get the following error:

svn: PROPFIND request failed on '/svn/repository'
svn: PROPFIND of '/svn/repository': 301 Moved Permanently (http://www.mydomain.com)

Has anyone successfully checked out a subversion repository using this URL method?

-- Hunter

Last edited by bftsolns; 02-15-2007 at 04:17 PM.
Reply With Quote
  #39  
Old 02-15-2007, 11:22 PM
zzz zzz is offline
Hatchling Croc
 
Join Date: Dec 2006
Location: mn
Posts: 19
Default Re: Ruby on Rails Support

I was wondering if hostgator is going to get updated to the latest version of rails? Its at like 1.2 or 1.2.2 right now. http://www.rubyonrails.org/

So far I've been able to get all my rails applications working after some tinkering with permissions and the settings outlined in the first post of this thread.
Reply With Quote
  #40  
Old 02-16-2007, 07:49 AM
filiph filiph is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 7
Post Re: Ruby on Rails Support

Quote:
Originally Posted by zzz View Post
I was wondering if hostgator is going to get updated to the latest version of rails? Its at like 1.2 or 1.2.2 right now.
I asked that question before submitting to Host Gator, here's the answer of the systems admin:

Quote:
Hello,
We will be upgrading RoR on our servers to a newer version soon but currently, the ETA is unknown.
I hope the ETA is close, because version 1.2 of Ruby on Rails solves some serious issues (i.e. Unicode support, partially) and would make our lifes a lot easier, I think.

So please, HostGator, could you upgrade to Rails 1.2 sooner or later? (More sooner than later?) I'm sure everybody would appreciate.

On a sidenote, you can always freeze your Ruby on Rails application at your home dev environment and then copy the files in vendor/rails directory to the server. Ruby should then use the Rails from the vendor/rails directory instead of the server install. See: http://support.tigertech.net/freeze-rails#1.

Filip, internetová reklamní agentura www.visible.cz
Reply With Quote
  #41  
Old 02-16-2007, 08:20 AM
zzz zzz is offline
Hatchling Croc
 
Join Date: Dec 2006
Location: mn
Posts: 19
Default Re: Ruby on Rails Support

Thanks for that "answer" filiph. I agree with you I hope they do it sooner than later. Lots of neat things are out / coming out that require 1.2.
Reply With Quote
  #42  
Old 02-21-2007, 08:47 PM
tolmark tolmark is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 1
Question Routing Error

Now this may have been addressed by some of the posts above, but I'm new to Ruby and have been unable to get my application to call my controller "MyTest".

When attempting a similar task on my local machine (via WebBrick) I don't have any problems.

I have attached a screenshot of the error and would be very grateful if anyone has any ideas.

Thanks!
-Mark
Attached Images
File Type: gif error.gif (2.1 KB, 34 views)
Reply With Quote
  #43  
Old 02-22-2007, 06:03 AM
ZenCocoon ZenCocoon is offline
Hatchling Croc
 
Join Date: May 2006
Posts: 12
Default Re: Ruby on Rails Support

Hi,

I think you are using rails 1.2 but you wmaybe didn't froozed it, and as I know their's not rails 1.2 on hostgator yet.

If this is the case check out the previous post to find out how to freeze rails.


If the problem is not coming from here, it would be good to see your routes.rb file to help you more.

Have fun on rails
__________________
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
Reply With Quote
  #44  
Old 03-03-2007, 11:19 PM
Xiaoma Xiaoma is offline
Hatchling Croc
 
Join Date: Mar 2007
Posts: 1
Default Re: Ruby on Rails Support

Quote:
Originally Posted by GatorShashank View Post
4. 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
/bin/ln: Permission denied

Now what?
Reply With Quote
  #45  
Old 03-05-2007, 02:47 AM
filiph filiph is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 7
Thumbs up Re: Ruby on Rails Support

Rails 1.2.1 installed! Yay!

(Next time, it would be great if there was a mailing list to point out such changes to us rails developers. Anyways: Yay!)

Filip Hracek, reklama.visible.cz
Reply With Quote
  #46  
Old 03-05-2007, 02:56 AM
filiph filiph is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 7
Post Re: Ruby on Rails Support

Quote:
Originally Posted by Xiaoma View Post
/bin/ln: Permission denied

Now what?
Works for me. Before running 'ln ..', try 'pwd'. That prints out your working directory. Make sure you're in '/home/youraccountname/public_html'.

I think you've changed to a nonexistent directory or a directory you have no rights to modify. Try 'cd ~/public_html' first. (The '~' stands for your home directory.)

Hope this helps.

Filip Hracek, reklama.visible.cz
Reply With Quote
  #47  
Old 03-07-2007, 09:38 PM
aezram aezram is offline
Hatchling Croc
 
Join Date: Dec 2006
Posts: 1
Default Re: Ruby on Rails Support

Quote:
Originally Posted by Xiaoma View Post
/bin/ln: Permission denied

Now what?
I think the proper permissions aren't set for the "ln" command on some servers. I emailed support and they fixed this right away.
Reply With Quote
  #48  
Old 03-14-2007, 04:41 PM
zzz zzz is offline
Hatchling Croc
 
Join Date: Dec 2006
Location: mn
Posts: 19
Cool Re: Ruby on Rails Support

Quote:
Originally Posted by filiph View Post
Rails 1.2.1 installed! Yay!

(Next time, it would be great if there was a mailing list to point out such changes to us rails developers. Anyways: Yay!)

Filip Hracek, reklama.visible.cz
Rails 1.2.1 installed? I'm not seeing anything new. I e-mailed support requesting that they update. Here is what I see...
This was just ran today.
Quote:
username@azur [~]# rails -v
Rails 1.1.6
username@azur [~]# ruby -v
ruby 1.8.5 (2006-08-25) [i386-linux]
username@azur [~]#
Reply With Quote
  #49  
Old 03-14-2007, 10:52 PM
erwinquita erwinquita is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 5
Default Re: Ruby on Rails Support

Hostgator have installed rails 1.2 for quite some time now... I registed for a hosting account at hostgator last february 2007. You can check out my website www.ibatayo.com it's runnin on rails 1.2.1 right now.

Here's a screenshot of the environment I'm working on.
http://lh4.google.com/image/erwinqui...ator_rails.jpg

Quote:
Originally Posted by ZenCocoon View Post
Hi,

I think you are using rails 1.2 but you wmaybe didn't froozed it, and as I know their's not rails 1.2 on hostgator yet.

If this is the case check out the previous post to find out how to freeze rails.


If the problem is not coming from here, it would be good to see your routes.rb file to help you more.

Have fun on rails
Attached Images
File Type: jpg hostgator_rails.jpg (23.9 KB, 18 views)

Last edited by erwinquita; 03-14-2007 at 11:23 PM.
Reply With Quote
  #50  
Old 03-14-2007, 10:59 PM
erwinquita erwinquita is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 5
Default Re: Ruby on Rails Support

Quote:
Originally Posted by zzz View Post
Rails 1.2.1 installed? I'm not seeing anything new. I e-mailed support requesting that they update. Here is what I see...
This was just ran today.
Hostgator have installed rails 1.2 for quite some time now... I registed for a hosting account at hostgator last february 2007. What type is your account? shared or dedicated/Virtual Private Server? The problem I have right now is I'm on shared and my email feature on my rails app is not working... anyone here has an idea how to get it working on a shared hosting account. thanks!

Here's a screenshot of the environment I'm working on.
http://lh4.google.com/image/erwinqui...ator_rails.jpg
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 07:31 PM.

 
Forum SEO by Zoints