|
#101
|
|||
|
|||
|
Quote:
" 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:
|
|
#102
|
|||
|
|||
|
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. |
|
#103
|
|||
|
|||
|
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:
|
|
#104
|
|||
|
|||
|
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... |
|
#105
|
|||
|
|||
|
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? |
|
#106
|
|||
|
|||
|
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? |
|
#107
|
||||
|
||||
|
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 |
|
#108
|
||||
|
||||
|
Make sure your /railsapp/public/dispatch.cgi contains this code:
Code:
#!/usr/bin/ruby |
|
#109
|
|||
|
|||
|
Quote:
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. |
|
#110
|
|||
|
|||
|
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.
|
|
#111
|
|||
|
|||
|
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 Hope this helps! Last edited by DarkGamer; 01-24-2008 at 03:01 PM. Reason: Made clearer, added code sample |
|
#112
|
|||
|
|||
|
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)... How does one resolve such an issue? |
|
#113
|
||||
|
||||
|
Quote:
|
|
#114
|
|||
|
|||
|
Why am I getting this error?
/usr/bin/rake:17: undefined method `require_gem' for main:Object (NoMethodError) |
|
#115
|
||||
|
||||
|
I missed this before...
Like coldfusion? Only easier to use? lol |
|
#116
|
|||
|
|||
|
This error is resolved. I contacted tech support and they updated the gems.
|
|
#117
|
||||
|
||||
|
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/ |
|
#118
|
|||
|
|||
|
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. |
|
#119
|
|||
|
|||
|
For a very odd reason, my rails set-up returns an application error and I haven't even configured anything. =/;
|
|
#120
|
|||
|
|||
|
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 |
|
#121
|
|||
|
|||
|
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?
|
|
#122
|
|||
|
|||
|
Sorry, yet another question
When I try to restart my server to register controllers I never get back to the command prompt. ./script/serverGives me the expected results on screen but I never get back to a command prompt. |
|
#123
|
|||
|
|||
|
Quote:
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. |
|
#124
|
|||
|
|||
|
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."
|
|
#125
|
|||
|
|||
|
I'm having basically the same problem, and it doesn't seem to be addressed in the rest of this thread.
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|