Hello, I am rather new to Ruby On Rails but have it installed on my computer and have created a test project that works. My next objective is to get the script up and running on my server for public access. I am getting hosted from a private host. The host does support Rails, and does have it up and running currently. Well, that''s all the information I have. I have Cpanel with shell access to my account, as well as an FTP account with FTP access to my account. I have a few sites uploaded on my server under the public_html folder where all html docs are uploaded for public access. So, my question is, how do I begin running scripts on my server? I don''t even know where to start. On my computer I simply just made a new project, and ran a server on that project via port 3000 and just accessed it like http://127.0.0.1:3000/. I have no clue how to emulate that on a server, because I have to admit I have very poor skills with this kind of stuff. My guess was that I have to have the rails framework running on port 80, instead of the Apache framework? I really have no clue what I am talking about, but from experimentation and just plain fooling around that''s what I concluded. If anyone could help guide me through setting up and getting a script to work on just a normal basic server, it would be a great help. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060606/7a054782/attachment.html
Unfortunately this is not very easy at all... start here.... http://duncandavidson.com/essay/2006/01/railsonapache then try google ~Jamie On Jun 5, 2006, at 6:37 PM, Josh Alias wrote:> Hello, I am rather new to Ruby On Rails but have it installed on my > computer and have created a test project that works. My next > objective is to get the script up and running on my server for > public access. > > I am getting hosted from a private host. The host does support > Rails, and does have it up and running currently. Well, that''s all > the information I have. I have Cpanel with shell access to my > account, as well as an FTP account with FTP access to my account. I > have a few sites uploaded on my server under the public_html folder > where all html docs are uploaded for public access. > > So, my question is, how do I begin running scripts on my server? I > don''t even know where to start. On my computer I simply just made a > new project, and ran a server on that project via port 3000 and > just accessed it like http://127.0.0.1:3000/. I have no clue how to > emulate that on a server, because I have to admit I have very poor > skills with this kind of stuff. > > My guess was that I have to have the rails framework running on > port 80, instead of the Apache framework? I really have no clue > what I am talking about, but from experimentation and just plain > fooling around that''s what I concluded. > > If anyone could help guide me through setting up and getting a > script to work on just a normal basic server, it would be a great > help. Thanks. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060606/ff9ec593/attachment-0001.html
Josh Alias wrote:> I am getting hosted from a private host. The host does > support Rails, and does have it up and running currently.[...]> So, my question is, how do I begin running scripts on my > server?[...]> My guess was that I have to have the rails framework running > on port 80, instead of the Apache framework?Your hosting provider is already running a web server. Most of the time, with a shared account on a UNIX-like system, Rails support is simply a running Apache with Ruby and FastCGI installed. Fortunately, a Rails application comes almost set up for this environment. Upload a project somewhere under the public web space of your account. In public/, you''ll notice a file called dispatch.fcgi. Make sure the first line reads the correct path to the ruby binary on your hosting machine, probably `#!/usr/bin/ruby''. (You''ll have to find that out via a shell of some sort and run `which ruby''. Learn how to use ssh if your host supports it.) Also, make sure this file has executable permission. Then look at public/.htaccess. You''ll find a line that looks like: RewriteRule ^(.*)$ dispatch.cgi [QSA,L] Change `.cgi'' to `.fcgi''. Find the public/ directory via a web browser and see if your application starts up. If it doesn''t, you''ll have to get your hosting provider to support you. If they''re worth their salt in their claim to support Rails, they''ll have documentation with much more detail than this post. Good luck! -Drew