|
#126
|
|||
|
|||
|
I have spent much time reading the whole thread, but I remain with this problem. Host Gator should do a manual.
Alex |
|
#127
|
|||
|
|||
|
a manual would be nice.
__________________
|
|
#128
|
|||
|
|||
|
Tried to follow the instructions on the first page but I'm getting this error:
[uttholl@gator236 ~]$ rails /home/uttholl/demoapp /usr/bin/rails:17: undefined method `require_gem' for main:Object (NoMethodError) Ideas Anyone? Have I missed to do anything first? HELP! |
|
#129
|
|||
|
|||
|
I'm new to ROR. After closely reading the forum and asking tech support some questions, I got the demo app to work. It was much easier than I anticipated at first. Now, I have a small ROR app that I want to transfer from my local machine to the site. I started to ftp the files via cpanel. Is there a way to transfer over the entire app directory instead of recreating the directory tree and copying each ROR file? Thanks for the help.
|
|
#130
|
||||
|
||||
|
You can transfer a folder over using an FTP program. I use CoreFTP from coreFTP.com but any FTP program should work.
|
|
#131
|
|||
|
|||
|
thanks GvilleRick--that worked perfectly--coreFTP was very easy
|
|
#132
|
||||
|
||||
|
Glad it worked for you. I really like CoreFTP and I have used a number of different programs over the years.
|
|
#133
|
|||
|
|||
|
I too have been having a lot of problems getting my apps configured and started and here are a few pointers/lessons I have learned along the way.
And you don't have to run script/server to make it work - that is only when you are working with a development copy on your local machine. |
|
#134
|
|||
|
|||
|
You don't ever have to run script/server when using an app uploaded on hostgator - that is only when you are using it in development mode on your local machine. Andy you don't have to restart the server every time you make a change either.
|
|
#135
|
|||
|
|||
|
Has anyone had any luck getting ROR to run at a decent speed with Hostgator? I switched to production mode and it is still really slow.
|
|
#136
|
|||
|
|||
|
I'm trying to deploy a ROR app onto HG. I've done the demo and it worked fine. I've uploaded my app and put it into a /public_html/rails_apps/. I've created a production database and want to now migrate to that data base. I tried to rake db:migrate from the SSH console in the application root but get the following error:
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /usr/libruby/gems/1.8/gems/rake-07.3/lib/rake.rb:1934:in 'raw_load_rakefile' Any suggestions would be appreciated. Thanks. |
|
#137
|
|||
|
|||
|
Quote:
Quote:
|
|
#138
|
|||
|
|||
|
Quote:
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 Last edited by ZenCocoon; 06-17-2008 at 05:24 AM. |
|
#139
|
|||
|
|||
|
I am trying to deploy an application from my local machine to HG. Its the shovell app from Lenz's Sitepoint's book. I'm having trouble establishing a symbolic link to my app. Here's what I've done:
cd ../public_html ln -s ../rails_apps/shovell/shovell shove Cpanel tells me I have a broken symbolic link. Any suggestions? Also, since, I'm a newbie I don't mind asking the stupid questions. I am still having trouble performing a rake db:migrate from the SSH console. I have to admit, I don't really understand where I am when I get to the SSH console. Is the SSH console just a regular command window? And how do I get to a ruby or rails console from the prompt. Thanks. |
|
#140
|
|||
|
|||
|
Vero,
I will have to let someone else answer the symbolic link question because that is something I am not familiar with myself. Might want to email the support people and have them look at it. As for the SSH, you need to make sure that you are in the "Shovel" app folder when you run your commands. So, if your app is called "shoveapp", you need to make sure you are in the /shovelapp/ folder before you run the ruby and rails commands. Also, try running "ruby rake db:migrate". Sometimes you have to add the ruby command. I too am new at ROR - but starting to like it - a lot! BTW - SSH is just like the regular command window - just a remote version of it. |
|
#141
|
|||
|
|||
|
brianevans,
Thanks. I will try that. I too like ROR. For me I chose it because it seems to have the complete package--from the client/server side of things. It seems that other options might deploy easier, but once that issue is resolved, the creation of applications seems easier under ROR. Thanks for the help. |
|
#142
|
|||
|
|||
|
Hello. In addition to my first question, I was in my app directory via SSH and issued the following command:
rake db:migrate I received a notice to Please 'gem update --system and try again. I did that and received the following error: Bulk updating GEM source index for http://gemsrubyforge.org /user/lib/ruby/1.8/yaml.rb:133 :[BUG] Segmentation fault ruby 1.8.5 (2006-08-25) [i-386-linux] Aborted (core dumped) What's going on here? Also, after running a rails -v and ruby -v commands, I determined that I'm running Rails 1.2.3 and ruby 1.8.5, which is different than what the webiste forum indicates is running. I issued a service ticket for both questions, but thought it might be more efficient to post them on the forum. Any help would be appreciated. |
|
#143
|
|||
|
|||
|
Vero, try asking your question on www.railsforum.com
|
|
#144
|
||||
|
||||
|
Good afternoon guys,
If anyone is getting errors like the following, /usr/bin/rails:17: undefined method `require_gem' for main:Object (NoMethodError) when running rails, please submit a support ticket so we can get it corrected for you. Thanks! |
|
#145
|
|||
|
|||
|
Is rails version 2.1.0 going to be installed? or does anyone know away around this?
|
|
#146
|
|||
|
|||
|
ok i am getting a HTTP 500 internal server error does anyone have a solution to what this could possibly be?
|
|
#147
|
|||
|
|||
|
OK to answer both my previous questions...
If you are using rails 2.1.0 and want it to work with your shared host account and they are only using 2.0.2 then do a gem freeze >rake rails:freeze:gems VERSION=2.1.0 Make sure to do this on your local machine then upload the app and follow the other procedures... everything seems to be working like a charm. and also something silly the HTTP 500 internal error was something simple... checked the error log in the CP (control Panel) and noticed that the dispatch.cgi did not have the correct permissions... check them.. change them and your on your way. Also note to the support team, do a better job and also get fcgi as the apps are running pretty slow and from what i have read and research fcgi will help everyone alot. Cheers Coops |
|
#148
|
|||
|
|||
|
Does Host Gator plan to start offering FCGI? The performance of my website would be significantly improved if I could switch to FCGI.
Overall, I have been very happy with the support of Ruby on Rails from Host Gator. This is the only complaint I really have. Thanks
|
|
#149
|
|||
|
|||
|
Hello, I am new to HostGator and moderately new to rails (I've built a few simple sites). I have my site up and running with the help of this very thread. (Thanks everyone) My question pertains to routing (I think). I used the suggestions in this thread to get www.mysite.com/rails/ to open correctly with www.mysite.com/ instead. That works wonderfully. But as soon as I click on a link that goes to another page on the site the www.mysite.com/rails/whatever appears. Each of the links in my view are coded like <%= link_to "Contact", :controller => "site", :action => "contact" %>
My site is very simple. There is an index which I want to the root of the site, a contact page, which I want to be www.mysite.com/contact/ and so on. So how do I get the "in site" linking to jump to www.mysite.com/contact/ instead of www.mysite.com/rails/contact/? My routes.rb: Code:
ActionController::Routing::Routes.draw do |map| map.site ':action', :controller => "site" map.root :controller => "site" map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' end Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/cpanel/.*
RewriteCond %{HTTP_HOST} ^www\.mysite\.com [OR]
RewriteCond %{HTTP_HOST} ^mysite\.com
RewriteRule ^(.*)$ /rails/$1 [L,QSA]
|
|
#150
|
|||
|
|||
|
Quote:
I realize I could just hardcode a http://www.mysite.com/contact link in there, but I want to make my code as clean as possible in my view and use the rails' way of doing things. I remember when I set my rails app up initially, the directions at the beginning of this thread called for a Code:
ln -s ../demoapp/public rails |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -6. The time now is 04:09 AM.









