|
#26
|
|||
|
|||
|
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 . - 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 |
|
#27
|
|||
|
|||
|
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 |
|
#28
|
|||
|
|||
|
Yes, that seems to solve the problem. My app is now working fine.
Thanks anyone |
|
#29
|
|||
|
|||
|
Quote:
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? |
|
#30
|
|||
|
|||
|
Quote:
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, |
|
#31
|
|||
|
|||
|
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? |
|
#32
|
|||
|
|||
|
Quote:
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 |
|
#33
|
|||
|
|||
|
Quote:
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 |
|
#34
|
|||
|
|||
|
Quote:
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' Hope this helps. Filip, www.visible.cz Last edited by filiph; 02-11-2007 at 02:18 PM. |
|
#35
|
|||
|
|||
![]() Yay, worked. |
|
#36
|
|||
|
|||
|
Quote:
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 |
|
#37
|
|||
|
|||
|
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 |
|
#38
|
|||
|
|||
|
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. |
|
#39
|
|||
|
|||
|
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. |
|
#40
|
|||
|
|||
|
Quote:
Quote:
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 |
|
#41
|
|||
|
|||
|
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.
|
|
#42
|
|||
|
|||
|
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 |
|
#43
|
|||
|
|||
|
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 |
|
#44
|
|||
|
|||
|
Quote:
Now what? |
|
#45
|
|||
|
|||
|
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 |
|
#46
|
|||
|
|||
|
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 |
|
#47
|
|||
|
|||
|
I think the proper permissions aren't set for the "ln" command on some servers. I emailed support and they fixed this right away.
|
|
#48
|
|||
|
|||
|
Quote:
![]() This was just ran today. Quote:
|
|
#49
|
|||
|
|||
|
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:
Last edited by erwinquita; 03-14-2007 at 11:23 PM. |
|
#50
|
|||
|
|||
|
Quote:
Here's a screenshot of the environment I'm working on. http://lh4.google.com/image/erwinqui...ator_rails.jpg |
![]() |
| Bookmarks |
| Thread Tools | |
|
|