Hey guys, I have my rails app installed in the root directory of one of my domains. My rails app runs perfectly via webrick on port:3000. How do I deploy the app so that it runs on the default port instead of 3000 without webrick? - Jim
http://wiki.dreamhost.com/index.php/Ruby_on_Rails http://wiki.dreamhost.com/index.php/Ruby_on_Rails_Installation#The_Install_Script Make sure when you set up your fully hosted domain that you set the app dir to ...../your_app_dir/public --bryce On 8/6/05, Jim Jeffers <rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote:> Hey guys, > > I have my rails app installed in the root directory of one of my > domains. My rails app runs perfectly via webrick on port:3000. How > do I deploy the app so that it runs on the default port instead of > 3000 without webrick? > > - Jim > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Ok, I''m getting there: http://www.jimjeffers.com I setup a typo blog but it runs really slow. I enabled FCGI on dreamhost for the domain. The .htaccess file in the public directory is also set to use dispatch.fcgi Is there anything else I need to do with FCGI? - Jim On Aug 6, 2005, at 11:12 AM, bryce benton wrote:> http://wiki.dreamhost.com/index.php/Ruby_on_Rails > http://wiki.dreamhost.com/index.php/ > Ruby_on_Rails_Installation#The_Install_Script > > Make sure when you set up your fully hosted domain that you set the > app dir to ...../your_app_dir/public > > --bryce > > On 8/6/05, Jim Jeffers <rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote: > >> Hey guys, >> >> I have my rails app installed in the root directory of one of my >> domains. My rails app runs perfectly via webrick on port:3000. How >> do I deploy the app so that it runs on the default port instead of >> 3000 without webrick? >> >> - Jim >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Make sure you delete the dispatch.cgi file and are using the latest dispatch.fcgi. Ben
Ben, When you say the latest dispatch.fcgi, do you mean more recent than rails 0.13.1 ? Also, when I tried to delete dispatch.cgi, I got an 404 error message. My app seems to be running really slowly on dreamhost... I would like to figure out what''s wrong with my configuration. --bryce On 8/6/05, BenJamin Prater <bprater-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Make sure you delete the dispatch.cgi file and are using the latest > dispatch.fcgi. > > Ben > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On Sat, Aug 06, 2005, bryce benton wrote:> Ben, > > When you say the latest dispatch.fcgi, do you mean more recent than > rails 0.13.1 ? > > Also, when I tried to delete dispatch.cgi, I got an 404 error message. > > My app seems to be running really slowly on dreamhost... I would like > to figure out what''s wrong with my configuration.If you deleted dispatch.cgi and get a 404, something''s wrong. It''s using CGI instead of fcgi. I''m not a Dreamhost customer so I can''t really suggest anything, but I''d go over what steps you took to enable fcgi and make sure they''re all fine. Ben
Hmm I have deleted dispatch.cgi but it appears to make no difference. Do I need to make changes to dispatch.rb as well? On Aug 6, 2005, at 12:10 PM, BenJamin Prater wrote:> Make sure you delete the dispatch.cgi file and are using the latest > dispatch.fcgi. > > Ben > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > >
Make sure you set your environment to production. Im on DH aswell. http://www.mayes.net is my typo fresh install when i had it in development mode is was fairly slow. Sam On 8/6/05, Jim Jeffers <rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote:> Hmm I have deleted dispatch.cgi but it appears to make no > difference. Do I need to make changes to dispatch.rb as well? > > On Aug 6, 2005, at 12:10 PM, BenJamin Prater wrote: > > > > Make sure you delete the dispatch.cgi file and are using the latest > > dispatch.fcgi. > > > > Ben > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On 8/6/05, Jim Jeffers <rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote:> Is there anything else I need to do with FCGI?In your .htaccess file (in public/) make sure this is at the top: AddHandler fastcgi-script .fcgi and change the last RewriteRule to look like this: RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] (change dispatch.cgi to dispatch.fcgi) - Isaac
Wow! What a difference a single character makes! My application is *flying* now. Thanks for the tip. --bryce On 8/6/05, Isaac Reuben <ireuben-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 8/6/05, Jim Jeffers <rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote: > > Is there anything else I need to do with FCGI? > > In your .htaccess file (in public/) make sure this is at the top: > > AddHandler fastcgi-script .fcgi > > and change the last RewriteRule to look like this: > > RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] > > (change dispatch.cgi to dispatch.fcgi) > > - Isaac