Hello folks, Recently I bought a plan from Site5, but I can''t use it! I developed my rails application localy then uploaded it to the server: Here is what I''ve done: 1. developed my rails app localy 2. gziped it, uploaded it, extracted it 3. cd to its folder (sma) then ran "rails ." 4. changed permissions on files to 775 5. made symbolic link to public_html 6. changed database setting to point to exact user/pass of db 7. changed the app to run in production 8. tried to run it, but got error Application can be ran using WEBrick through ssh, but not normally. seems there''s a problem with apache/fcgi. May someone help me to find the problem? Thanks in advance, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Hi, Are your Ruby paths correct on the shebang line (i.e., #!/usr/bin/ruby or whatever) in dispatch.rb, dispatch.fcgi, and/or dispatch.cgi in the public folder? That''s usually what screws it up for me when moving between environments. --Jeremy On 9/18/06, Husein Choroomi <hchoroomi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello folks, > > Recently I bought a plan from Site5, but I can''t use it! > > I developed my rails application localy then uploaded it to the server: > > Here is what I''ve done: > 1. developed my rails app localy > 2. gziped it, uploaded it, extracted it > 3. cd to its folder (sma) then ran "rails ." > 4. changed permissions on files to 775 > 5. made symbolic link to public_html > 6. changed database setting to point to exact user/pass of db > 7. changed the app to run in production > 8. tried to run it, but got error > > Application can be ran using WEBrick through ssh, but not normally. > seems there''s a problem with apache/fcgi. > > May someone help me to find the problem? > > Thanks in advance, > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Do''h, that''s the problem. Thanks Jeremy. BTW, Doesn''t rails generate dispatch.rb (cgi/fcgi) base on ruby path? The problem is solved, but it''s strange, ''cuase I ran "rails ." in app folder, and said to rails to overwrite dispatch files. On 9/18/06, Jeremy McAnally <jeremymcanally-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > Are your Ruby paths correct on the shebang line (i.e., #!/usr/bin/ruby > or whatever) in dispatch.rb, dispatch.fcgi, and/or dispatch.cgi in the > public folder? That''s usually what screws it up for me when moving > between environments. > > --Jeremy > > On 9/18/06, Husein Choroomi <hchoroomi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hello folks, > > > > Recently I bought a plan from Site5, but I can''t use it! > > > > I developed my rails application localy then uploaded it to the server: > > > > Here is what I''ve done: > > 1. developed my rails app localy > > 2. gziped it, uploaded it, extracted it > > 3. cd to its folder (sma) then ran "rails ." > > 4. changed permissions on files to 775 > > 5. made symbolic link to public_html > > 6. changed database setting to point to exact user/pass of db > > 7. changed the app to run in production > > 8. tried to run it, but got error > > > > Application can be ran using WEBrick through ssh, but not normally. > > seems there''s a problem with apache/fcgi. > > > > May someone help me to find the problem? > > > > Thanks in advance, > > > > > > > > > > >-- Husein Choroomi, CEO, CTO Yucca Intelligence Development http://www.YuccaHQ.com We make the web a better place! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---