Hello This is possibly a very simple question... I have posts that have comments. All fine... I wanted to add a link to my display page (the one that shows x posts) for comments... but I wanted to show if it has 3 comments, No comments and so on. Can someone point me in the right direction. The comments table contains the post_id. So I need a method in my post.rb model: def count_comments @mycount = ? end Any pointers appreciated... Thanks
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 9, 2005, at 3:48 PM, eoghan wrote:> Hello > This is possibly a very simple question... I have posts that have > comments. All fine... I wanted to add a link to my display page > (the one that shows x posts) for comments... but I wanted to show > if it has 3 comments, No comments and so on. Can someone point me > in the right direction. The comments table contains the post_id. So > I need a method in my post.rb model: > def count_comments > @mycount = ? > end > Any pointers appreciated...post.comments.size It''ll issue a count(*) from comments where post_id=? if comments isn''t already loaded. Also see the :counter_cache option for belongs_to. jeremy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) iD8DBQFDcox9AQHALep9HFYRAigtAKCA9ewkj7AJjOXqLMHNx7pv1XJZ9ACfa/N4 fstzufV1UnjhG0YlgWM3/B0=c3i0 -----END PGP SIGNATURE-----
Hi, I have recently started looking at RoR and it looks very promising for sure... In fact, I would like to start using it right away and implement one of my sites with RoR, which needs to be phased into production in about 1-2 months. It will start as a small site, hence will use shared hosting in the beginning, but then probably will be moved to VPS/dedicated after couple of months... However, I am a bit worried about how to host the site... I have been trying to find a reliable "shared" hosting solution for RoR, but did not have any luck. Right now, as far as I can see, the main hosting companies are: Site5, DreamHost and TextDrive. TextDrive seems to be nice for development purposes, but looking at their uptime records, it is not possible to use it for production. Both, Site5 & DreamHost look like they are still experimenting with it, hence not suitable for production purposes. So, in summary, can you guys please share your experience regarding this? Thanks... __________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com
On 9 Nov 2005, at 23:55, Jeremy Kemper wrote:> On Nov 9, 2005, at 3:48 PM, eoghan wrote: >> Hello >> This is possibly a very simple question... I have posts that have >> comments. All fine... I wanted to add a link to my display page >> (the one that shows x posts) for comments... but I wanted to show >> if it has 3 comments, No comments and so on. Can someone point me >> in the right direction. The comments table contains the post_id. >> So I need a method in my post.rb model: >> def count_comments >> @mycount = ? >> end >> Any pointers appreciated... > > > post.comments.size > > It''ll issue a count(*) from comments where post_id=? if comments > isn''t already loaded. > > Also see the :counter_cache option for belongs_to.Ah, thanks Jeremy... it was that simple :)
My host (SonataWeb) is currently supporting it, but I don''t have much to go by to give you any information on how well. I''ll start putting some stuff up there to experiment with in the near future. Jake -----Original Message----- From: Cabbar Duzayak [mailto:dcabbar-/E1597aS9LQAvxtiuMwx3w@public.gmane.org] Sent: Wednesday, November 09, 2005 6:06 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] RoR and Hosting Hi, I have recently started looking at RoR and it looks very promising for sure... In fact, I would like to start using it right away and implement one of my sites with RoR, which needs to be phased into production in about 1-2 months. It will start as a small site, hence will use shared hosting in the beginning, but then probably will be moved to VPS/dedicated after couple of months... However, I am a bit worried about how to host the site... I have been trying to find a reliable "shared" hosting solution for RoR, but did not have any luck. Right now, as far as I can see, the main hosting companies are: Site5, DreamHost and TextDrive. TextDrive seems to be nice for development purposes, but looking at their uptime records, it is not possible to use it for production. Both, Site5 & DreamHost look like they are still experimenting with it, hence not suitable for production purposes. So, in summary, can you guys please share your experience regarding this? Thanks... __________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi Cabbar, Site5''s RoR setup is pretty solid at the moment - in fact, we (at Site5 - I''m a senior engineer there) are about to release a major customer-facing production system based on Rails shortly (called Flashback, currently being beta tested by a select group of our customers - shameless teaser plug here: http://karmiccoding.com/articles/2005/10/24/flashback-and-the-discovery-process), which we would not be doing if we had any stability issues. Hope that helps! David Felstead On 11/10/05, Cabbar Duzayak <dcabbar-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I have recently started looking at RoR and it looks > very promising for sure... In fact, I would like to > start using it right away and implement one of my > sites with RoR, which needs to be phased into > production in about 1-2 months. It will start as a > small site, hence will use shared hosting in the > beginning, but then probably will be moved to > VPS/dedicated after couple of months... > > However, I am a bit worried about how to host the > site... I have been trying to find a reliable "shared" > hosting solution for RoR, but did not have any luck. > Right now, as far as I can see, the main hosting > companies are: Site5, DreamHost and TextDrive. > > TextDrive seems to be nice for development purposes, > but looking at their uptime records, it is not > possible to use it for production. > > Both, Site5 & DreamHost look like they are still > experimenting with it, hence not suitable for > production purposes. > > So, in summary, can you guys please share your > experience regarding this? > > Thanks... > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors'' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On 10/11/2005, at 11:05 AM, Cabbar Duzayak wrote:> TextDrive seems to be nice for development purposes, > but looking at their uptime records, it is not > possible to use it for production.Actually, we (TextDrive) are *not* fine for development purposes, and that''s the problem. Rails sites in development mode, or being restarted every 15 seconds by developers looking for somewhere to develop or stage their app instead of HOST it are absolutely killing our servers. Add in a whole bunch of Lighty installs running 4, 10 or even 40 FCGIs instead of 2, and *any* host with our ratio of Rails applications would have a problem. We''re not that far away (a month or so) from releasing RailsBase (formerly RailsAppHosting). Half of our development team have been working with Ben Myles around the clock for months and months -- it''s a purpose built cluster of servers specifically and exclusively for Rails with SCGI, Lighty, SVN and a suite of tools that make developing, deploying, updating and managing Rails apps a breeze. I''m not hyping it, I''m just telling you what we''re doing.> Both, Site5 & DreamHost look like they are still > experimenting with it, hence not suitable for > production purposes.Well, to the best of my knowledge, they''re both running mod_fastcgi under Apache, and that simply won''t scale in a shared hosting environment. If they haven''t realised that yet, they will soon. Regards, Justin French --- http://www.justinfrench.com http://www.textdrive.com http://www.strongspace.com
> We''re not that far away (a month or so) from releasing RailsBase > (formerly RailsAppHosting). >This is news. I thought you guys were going to launch in mid-October and that launch was imminent any day. I really don''t know what I''m going to do about hosting based on these comments. Steve _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 10/11/2005, at 3:01 PM, Steve Odom wrote:> This is news. I thought you guys were going to launch in mid- > October and that launch was imminent any day. I really don''t know > what I''m going to do about hosting based on these comments.What can I say? The truth is we probably should have said nothing, announced nothing, etc. But we did, and we were wrong. We changed our minds on a few things, decided to make a lot changes to hardware and plan specifications (ultimately making this a much better service than it ever would have been back in September or October), and we need more time to make sure it''s right. Justin
Sounds like an awsome decision and an honest answer... Much better than doing what every other business does by rushing to get something out the door when it isnt ready, and then burn the customers after they have their money... +1 props --Ryan ----- Original Message ----- From: "Justin French" <justin.french-zULN+VWqVOIpAS55Wn97og@public.gmane.org> To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> Sent: Wednesday, November 09, 2005 11:29 PM Subject: Re: [Rails] RoR and Hosting> On 10/11/2005, at 3:01 PM, Steve Odom wrote: > >> This is news. I thought you guys were going to launch in mid- October and >> that launch was imminent any day. I really don''t know what I''m going to >> do about hosting based on these comments. > > What can I say? The truth is we probably should have said nothing, > announced nothing, etc. But we did, and we were wrong. We changed our > minds on a few things, decided to make a lot changes to hardware and plan > specifications (ultimately making this a much better service than it ever > would have been back in September or October), and we need more time to > make sure it''s right. > > Justin > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Hi David, Will all due respect, your internal implementation of an application does not reflect the overall quality of RoR hosting on shared hosting environment, don''t you think so? And, my comment/question was geared more towards the "shared hosting" environment... I was browsing through site5 forums, and also read about Apache+FCGI installations. And, what I can see at this point is that, Apache+FCGI installation (for rails) has serious problems in itself, such as memory leaks, scaling issues, etc. And, the only way to implement a solution is to start with dedicated or VPS using light-httpd, it looks like? Please correct me if I am wrong. Thanks --- David Felstead <david.felstead-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Cabbar, > > Site5''s RoR setup is pretty solid at the moment - in > fact, we (at > Site5 - I''m a senior engineer there) are about to > release a major > customer-facing production system based on Rails > shortly (called > Flashback, currently being beta tested by a select > group of our > customers - shameless teaser plug here: >http://karmiccoding.com/articles/2005/10/24/flashback-and-the-discovery-process),> which we would not be doing if we had any stability > issues. > > Hope that helps! > > David Felstead > > On 11/10/05, Cabbar Duzayak <dcabbar-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> > wrote: > > Hi, > > > > I have recently started looking at RoR and it > looks > > very promising for sure... In fact, I would like > to > > start using it right away and implement one of my > > sites with RoR, which needs to be phased into > > production in about 1-2 months. It will start as a > > small site, hence will use shared hosting in the > > beginning, but then probably will be moved to > > VPS/dedicated after couple of months... > > > > However, I am a bit worried about how to host the > > site... I have been trying to find a reliable > "shared" > > hosting solution for RoR, but did not have any > luck. > > Right now, as far as I can see, the main hosting > > companies are: Site5, DreamHost and TextDrive. > > > > TextDrive seems to be nice for development > purposes, > > but looking at their uptime records, it is not > > possible to use it for production. > > > > Both, Site5 & DreamHost look like they are still > > experimenting with it, hence not suitable for > > production purposes. > > > > So, in summary, can you guys please share your > > experience regarding this? > > > > Thanks... > > > > > > > > > > __________________________________ > > Yahoo! Mail - PC Magazine Editors'' Choice 2005 > > http://mail.yahoo.com > > _______________________________________________ > > 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 >__________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com
Justin, Given that, you are probably one of the most experienced people in terms of hosting rails apps, can you please share your experience regarding rails on lighthttpd (e.g. on VPS or dedicated)? Is it stable? Do you see memory leaks/runaway threads|processes kind of problems? Is it scalable? Basically, once again, do you think you can host a production quality site with that? One more question regards to that, does it need a lot of petting, meaning do you need to constantly monitor it/apply patches/etc? These are unavoidable even for relatively more stable technologies like servlet/php of course, but is rails sustainable in that sense? Thanks... --- Justin French <justin.french-zULN+VWqVOIpAS55Wn97og@public.gmane.org> wrote:> On 10/11/2005, at 11:05 AM, Cabbar Duzayak wrote: > > > TextDrive seems to be nice for development > purposes, > > but looking at their uptime records, it is not > > possible to use it for production. > > Actually, we (TextDrive) are *not* fine for > development purposes, and > that''s the problem. Rails sites in development > mode, or being > restarted every 15 seconds by developers looking for > somewhere to > develop or stage their app instead of HOST it are > absolutely killing > our servers. Add in a whole bunch of Lighty > installs running 4, 10 > or even 40 FCGIs instead of 2, and *any* host with > our ratio of Rails > applications would have a problem. > > We''re not that far away (a month or so) from > releasing RailsBase > (formerly RailsAppHosting). > > Half of our development team have been working with > Ben Myles around > the clock for months and months -- it''s a purpose > built cluster of > servers specifically and exclusively for Rails with > SCGI, Lighty, SVN > and a suite of tools that make developing, > deploying, updating and > managing Rails apps a breeze. > > I''m not hyping it, I''m just telling you what we''re > doing. > > > > Both, Site5 & DreamHost look like they are still > > experimenting with it, hence not suitable for > > production purposes. > > Well, to the best of my knowledge, they''re both > running mod_fastcgi > under Apache, and that simply won''t scale in a > shared hosting > environment. If they haven''t realised that yet, > they will soon. > > > Regards, > > Justin French > --- > http://www.justinfrench.com > http://www.textdrive.com > http://www.strongspace.com > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >__________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com
Cabbar- The best way to go IMHO is to get a small VPS and do it yourself. Its the only way to really have reliable hosting for rails projects. Textdrive is great for experiments but can''t yet be trusted for reliable production sites. And none of the other hosts that support raisl in a shared environment are any better if not worse. I am using xen based VPS''s from http://rimuhosting and they work great. The fastest VPS systems I have ever used since the xen virtualization stuf fis right in the linux kernel. I use one of the $29 plans there and it runs two typo rails blogs and one other rails app perfectly. Plus my own mail server and other services are nice to have. And the benifits of not being affected by other users on a server are invaluable when working with rails. The VPS or a dedicated server is your best bet for production rails hosting. Cheers- -Ezra On Nov 9, 2005, at 4:05 PM, Cabbar Duzayak wrote:> Hi, > > I have recently started looking at RoR and it looks > very promising for sure... In fact, I would like to > start using it right away and implement one of my > sites with RoR, which needs to be phased into > production in about 1-2 months. It will start as a > small site, hence will use shared hosting in the > beginning, but then probably will be moved to > VPS/dedicated after couple of months... > > However, I am a bit worried about how to host the > site... I have been trying to find a reliable "shared" > hosting solution for RoR, but did not have any luck. > Right now, as far as I can see, the main hosting > companies are: Site5, DreamHost and TextDrive. > > TextDrive seems to be nice for development purposes, > but looking at their uptime records, it is not > possible to use it for production. > > Both, Site5 & DreamHost look like they are still > experimenting with it, hence not suitable for > production purposes. > > So, in summary, can you guys please share your > experience regarding this? > > Thanks... > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors'' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-Ezra Zygmuntowicz WebMaster Yakima Herald-Republic Newspaper ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org 509-577-7732
Hi David, Will all due respect, your internal implementation of an application does not reflect the overall quality of RoR hosting on shared hosting environment, don''t you think so? And, my comment/question was geared more to the "shared hosting" environment... I was browsing through site5 forums, and also read about Apache+FCGI installations. And, what I can see at this point is that, Apache+FCGI installation (for rails) has serious problems in itself, such as memory leaks, scaling issues, etc. And, there were some people complaining on the forums about Site5 hosting as far as I can remember. And, the only way to implement a solution is to start with dedicated or VPS using light-httpd, it looks like? Please correct me if I am wrong. Thanks, --- David Felstead <david.felstead-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Cabbar, > > Site5''s RoR setup is pretty solid at the moment - in > fact, we (at > Site5 - I''m a senior engineer there) are about to > release a major > customer-facing production system based on Rails > shortly (called > Flashback, currently being beta tested by a select > group of our > customers - shameless teaser plug here: >http://karmiccoding.com/articles/2005/10/24/flashback-and-the-discovery-process),> which we would not be doing if we had any stability > issues. > > Hope that helps! > > David Felstead > > On 11/10/05, Cabbar Duzayak <dcabbar-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> > wrote: > > Hi, > > > > I have recently started looking at RoR and it > looks > > very promising for sure... In fact, I would like > to > > start using it right away and implement one of my > > sites with RoR, which needs to be phased into > > production in about 1-2 months. It will start as a > > small site, hence will use shared hosting in the > > beginning, but then probably will be moved to > > VPS/dedicated after couple of months... > > > > However, I am a bit worried about how to host the > > site... I have been trying to find a reliable > "shared" > > hosting solution for RoR, but did not have any > luck. > > Right now, as far as I can see, the main hosting > > companies are: Site5, DreamHost and TextDrive. > > > > TextDrive seems to be nice for development > purposes, > > but looking at their uptime records, it is not > > possible to use it for production. > > > > Both, Site5 & DreamHost look like they are still > > experimenting with it, hence not suitable for > > production purposes. > > > > So, in summary, can you guys please share your > > experience regarding this? > > > > Thanks... > > > > > > > > > > __________________________________ > > Yahoo! Mail - PC Magazine Editors'' Choice 2005 > > http://mail.yahoo.com > > _______________________________________________ > > 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 >__________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
Hi Cabbar, Site5 will be hosting Flashback (one installation per server, in fact) on the same shared servers our customers use - we would absolutely positively not be risking our level of service if we weren''t 100% confident that it would not interfere with our customers'' hosting environment - in fact, in our testing on some of our _very_ low end test machines, the application, with its Apache/FCGI setup, has barely even made a mark on the server''s load statistics. And bear in mind that this test machine was nowhere near the spec of our current servers, in fact it is several generations older and significantly slower. It is true that FCGI is not an optimal solution, especially in the scenarios that Justin has described, but Site5 is well placed in that it can dynamically and transparently hot-swap highly-loaded sites onto less-loaded servers during times of heavy load. I will, however, disagree with you on that the _only_ way to implement a reliable solution is to use lighttpd and/or a VPS - Apache and FastCGI provide perfectly acceptable performance for the majority of applications. Personally, my preference leans towards Zed Shaw''s fantastic SCGI/Rails implementation over FCGI, and this is something that Site5 is currently looking into providing as well. Best regards, -David Felstead On 11/10/05, Cabbar Duzayak <dcabbar-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Hi David, > > Will all due respect, your internal implementation of > an application does not reflect the overall quality of > RoR hosting on shared hosting environment, don''t you > think so? > > And, my comment/question was geared more towards the > "shared hosting" environment... I was browsing through > site5 forums, and also read about Apache+FCGI > installations. And, what I can see at this point is > that, Apache+FCGI installation (for rails) has serious > problems in itself, such as memory leaks, scaling > issues, etc. > > And, the only way to implement a solution is to start > with dedicated or VPS using light-httpd, it looks > like? > > Please correct me if I am wrong. > Thanks > > --- David Felstead <david.felstead-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi Cabbar, > > > > Site5''s RoR setup is pretty solid at the moment - in > > fact, we (at > > Site5 - I''m a senior engineer there) are about to > > release a major > > customer-facing production system based on Rails > > shortly (called > > Flashback, currently being beta tested by a select > > group of our > > customers - shameless teaser plug here: > > > http://karmiccoding.com/articles/2005/10/24/flashback-and-the-discovery-process), > > which we would not be doing if we had any stability > > issues. > > > > Hope that helps! > > > > David Felstead > > > > On 11/10/05, Cabbar Duzayak <dcabbar-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> > > wrote: > > > Hi, > > > > > > I have recently started looking at RoR and it > > looks > > > very promising for sure... In fact, I would like > > to > > > start using it right away and implement one of my > > > sites with RoR, which needs to be phased into > > > production in about 1-2 months. It will start as a > > > small site, hence will use shared hosting in the > > > beginning, but then probably will be moved to > > > VPS/dedicated after couple of months... > > > > > > However, I am a bit worried about how to host the > > > site... I have been trying to find a reliable > > "shared" > > > hosting solution for RoR, but did not have any > > luck. > > > Right now, as far as I can see, the main hosting > > > companies are: Site5, DreamHost and TextDrive. > > > > > > TextDrive seems to be nice for development > > purposes, > > > but looking at their uptime records, it is not > > > possible to use it for production. > > > > > > Both, Site5 & DreamHost look like they are still > > > experimenting with it, hence not suitable for > > > production purposes. > > > > > > So, in summary, can you guys please share your > > > experience regarding this? > > > > > > Thanks... > > > > > > > > > > > > > > > __________________________________ > > > Yahoo! Mail - PC Magazine Editors'' Choice 2005 > > > http://mail.yahoo.com > > > _______________________________________________ > > > 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 > > > > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors'' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Hi, On 11/10/05, Cabbar Duzayak <dcabbar-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Given that, you are probably one of the most > experienced people in terms of hosting rails apps, can > you please share your experience regarding rails on > lighthttpd (e.g. on VPS or dedicated)? Is it stable? > Do you see memory leaks/runaway threads|processes kind > of problems? Is it scalable? Basically, once again, do > you think you can host a production quality site with > that?We love lightty at TextDrive, but as with any kind of server app bad code and bad decisions can make it go nuts. Bad decisions includes running say, dedaleus, and respawing fcgi dispatchers faster than they can shut down and so on. Bad code, well, we all know how that can sneak in through the backdoor.. scale? if by scale you mean can serve request hella fast, then yes: http://weblog.textdrive.com/article/26/benchmarking-lighttpd Many big rails production apps run under lighttpd.> One more question regards to that, does it need a lot > of petting, meaning do you need to constantly monitor > it/apply patches/etc? These are unavoidable even for > relatively more stable technologies like servlet/php > of course, but is rails sustainable in that sense?I see code as organic, if you''re aren''t petting and improving it, then why did you write it in the first place? If you have a dog it''ll be your best friend, but only if you take care of it. But in general I don''t see Ruby has needing anymore petting than anything else, but bugs will always occur regardless of language. That said, yeah, Rails moves fast sometimes but thats a good thing, it''ll give you an excuse to refactor your app every once in a while. JS -- http://johansorensen.com http://theexciter.com
I was venting a little when I expressed my disappointment at railsbase not being launched for a month or more. Justin''s response is exactly why I am in a quandry. It was a honest answer tempered with lots of knowledge of the limitiations of rails in a shared hosting environoment. I''m afraid to go anywhere else. That''s why I have been waiting for railsbase. Those guys seem to be the best for rails. It seems a VPS solution could work as well. But I don''t know how to set it up. It seems a little itimidating. Do you need to have modest, even some, experience experience setting up and maintaining a server to run a VPS? Because I have none. I''m going to check out Ezra''s recommendation of rizuhosting, because Ezra''s been a big help on this board and has contributed a lot. Steve On 11/9/05, Justin French <justin.french-zULN+VWqVOIpAS55Wn97og@public.gmane.org> wrote:> > On 10/11/2005, at 3:01 PM, Steve Odom wrote: > > > This is news. I thought you guys were going to launch in mid- > > October and that launch was imminent any day. I really don''t know > > what I''m going to do about hosting based on these comments. > > What can I say? The truth is we probably should have said nothing, > announced nothing, etc. But we did, and we were wrong. We changed > our minds on a few things, decided to make a lot changes to hardware > and plan specifications (ultimately making this a much better service > than it ever would have been back in September or October), and we > need more time to make sure it''s right. > > Justin > _______________________________________________ > 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 11/10/05, Steve Odom <steve.odom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I was venting a little when I expressed my disappointment at railsbase not > being launched for a month or more. Justin''s response is exactly why I am in > a quandry. It was a honest answer tempered with lots of knowledge of the > limitiations of rails in a shared hosting environoment. I''m afraid to go > anywhere else. That''s why I have been waiting for railsbase. Those guys seem > to be the best for rails. > > It seems a VPS solution could work as well. But I don''t know how to set it > up. It seems a little itimidating. Do you need to have modest, even some, > experience experience setting up and maintaining a server to run a VPS? > Because I have none. > > I''m going to check out Ezra''s recommendation of rizuhosting, because > Ezra''s been a big help on this board and has contributed a lot. > > Steve > > > On 11/9/05, Justin French <justin.french-zULN+VWqVOIpAS55Wn97og@public.gmane.org> wrote: > > On 10/11/2005, at 3:01 PM, Steve Odom wrote: > > > > > This is news. I thought you guys were going to launch in mid- > > > October and that launch was imminent any day. I really don''t know > > > what I''m going to do about hosting based on these comments. > > > > What can I say? The truth is we probably should have said nothing, > > announced nothing, etc. But we did, and we were wrong. We changed > > our minds on a few things, decided to make a lot changes to hardware > > and plan specifications (ultimately making this a much better service > > than it ever would have been back in September or October), and we > > need more time to make sure it''s right. > > > > Justin > > _______________________________________________ > > 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 > > >I just moved a site from textdrive to dreamhost after customer freaked when they saw textdrvie uptime stats after their site went down for second time in three days.. Dreamhost seems pretty solid. In some respects. I think less rails hosting is good, since then there is less change of shared server getting whacked by a complex project/misconfigured app. But what really tipped customer was comparing tech. support responsiveness. Overall, I deeply regret getting involved in shared hosting. I realize dreamhost is also shared hosting, but the customer already used them for other sites and figured it was a better short-term solution. I can''t say if it is since I don''t have enough data yet. Nick -- Nicholas Van Weerdenburg
* On Nov 9 16:05, Cabbar Duzayak (rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org) wrote:> It will start as a > small site, hence will use shared hosting in the > beginning, but then probably will be moved to > VPS/dedicated after couple of months...I would highly recommend A Small Orange for both shared hosting and VPS. I''ve been using them for months now and it''s very quick, they have unbelievable support, and I haven''t had any downtime. They support Rails under FastCGI along with pretty much anything else you''d want, and even under their (cheap) shared hosting you get basically unlimited everything. (If you don''t mind my referring you to them, here''s a link:) http://www.asmallorange.com/services/hosting/?refer=halffull.org Tom
I''m about to host with: http://sustainablemarketing.com/ Their main hosting machines are powered completely off of wind power :) (they have backup datacenters of course). I''ll let you know how it goes ! On 11/10/05, Thomas Kirchner <lists-AwGSwOOX2Udg9hUCZPvPmw@public.gmane.org> wrote:> > * On Nov 9 16:05, Cabbar Duzayak (rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org) wrote: > > It will start as a > > small site, hence will use shared hosting in the > > beginning, but then probably will be moved to > > VPS/dedicated after couple of months... > > I would highly recommend A Small Orange for both shared hosting and VPS. > I''ve been using them for months now and it''s very quick, they have > unbelievable support, and I haven''t had any downtime. They support Rails > under FastCGI along with pretty much anything else you''d want, and even > under their (cheap) shared hosting you get basically unlimited > everything. > > (If you don''t mind my referring you to them, here''s a link:) > http://www.asmallorange.com/services/hosting/?refer=halffull.org > > Tom > _______________________________________________ > 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
I second Ezra''s opinion on VPS and rimuhosting. Ezra turned me onto rimu and it''s night and day compared to TextDrive. There is no way that a shared hosting environment can compare to a Xen-based partitioning scheme. Xen will rule the world one day. My TextDrive server goes down...often. I cannot recommend the service for anyone wanting to do production systems or even a production blog for that matter. It borders on being infuriating. Of course, that is probably also true of other shared hosting environments that cater to developers as well. In my opinion, what TextDrive should do is have a second tier of servers that they reserve for apps that behave properly for some period of time. Then your uptime would improve as you get promoted. Not nearly as good as having a VPS that just plain works period, but it would be a hack that could make a few of their unhappy customers a litle bit happier (I have to assume I''m not the only one). Now I have to see if I can get a refund on my TextDrive lifetime membership plan... - Scott
I use a Xen VPS from unixshell. Very affordable, but not preconfigured with rails. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I''m using a shared account from grokthis.net <http://grokthis.net> Their services seemed quite odd at first, but one month later I am happy with them. You get to choose the webserver you want, and you are basically in control. On 11/10/05, Barry Walker <barryjr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I use a Xen VPS from unixshell. Very affordable, but not preconfigured > with rails. > > > _______________________________________________ > 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
For instance, my TextDrive server is down again right now. No email. No blog. ARRRRRGH! On 11/10/05, scott moody <rorpostings-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I second Ezra''s opinion on VPS and rimuhosting. > > Ezra turned me onto rimu and it''s night and day compared to TextDrive. > There is no way that a shared hosting environment can compare to a > Xen-based partitioning scheme. Xen will rule the world one day. > > My TextDrive server goes down...often. I cannot recommend the service > for anyone wanting to do production systems or even a production blog > for that matter. It borders on being infuriating. Of course, that is > probably also true of other shared hosting environments that cater to > developers as well. > > In my opinion, what TextDrive should do is have a second tier of > servers that they reserve for apps that behave properly for some > period of time. Then your uptime would improve as you get promoted. > Not nearly as good as having a VPS that just plain works period, but > it would be a hack that could make a few of their unhappy customers a > litle bit happier (I have to assume I''m not the only one). > > Now I have to see if I can get a refund on my TextDrive lifetime > membership plan... > > - Scott >
On 11 Nov 2005, at 09:56, scott moody wrote:> For instance, my TextDrive server is down again right now. No > email. No blog.That makes me glad I run my own server. If I screw up I''m the only one that suffers. It does, however, mean that I have to fix it... -- Phillip Hutchings phillip.hutchings-QrR4M9swfipWk0Htik3J/w@public.gmane.org
scott moody wrote:>For instance, my TextDrive server is down again right now. No email. No blog. > >ARRRRRGH! > >Urk! This does not bode well for me. Just signed up at Textdrive a week ago.>On 11/10/05, scott moody <rorpostings-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >>I second Ezra''s opinion on VPS and rimuhosting. >> >>Ezra turned me onto rimu and it''s night and day compared to TextDrive. >> There is no way that a shared hosting environment can compare to a >>Xen-based partitioning scheme. Xen will rule the world one day. >> >>My TextDrive server goes down...often. I cannot recommend the service >>for anyone wanting to do production systems or even a production blog >>for that matter. It borders on being infuriating. Of course, that is >>probably also true of other shared hosting environments that cater to >>developers as well. >> >>In my opinion, what TextDrive should do is have a second tier of >>servers that they reserve for apps that behave properly for some >>period of time. Then your uptime would improve as you get promoted. >>Not nearly as good as having a VPS that just plain works period, but >>it would be a hack that could make a few of their unhappy customers a >>litle bit happier (I have to assume I''m not the only one). >> >>Now I have to see if I can get a refund on my TextDrive lifetime >>membership plan... >> >> - Scott >> >> >> >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >
Thomas, Thanks for posting about A Small Orange. I spent some time reading their site and forums. Seems like they are worth a try. If I signup I''ll use your referal. Peter On 11/10/05, Thomas Kirchner <lists-AwGSwOOX2Udg9hUCZPvPmw@public.gmane.org> wrote:> > * On Nov 9 16:05, Cabbar Duzayak (rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org) wrote: > > It will start as a > > small site, hence will use shared hosting in the > > beginning, but then probably will be moved to > > VPS/dedicated after couple of months... > > I would highly recommend A Small Orange for both shared hosting and VPS. > I''ve been using them for months now and it''s very quick, they have > unbelievable support, and I haven''t had any downtime. They support Rails > under FastCGI along with pretty much anything else you''d want, and even > under their (cheap) shared hosting you get basically unlimited > everything. > > (If you don''t mind my referring you to them, here''s a link:) > http://www.asmallorange.com/services/hosting/?refer=halffull.org > > Tom > _______________________________________________ > 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
I paid $9 this year for Dreamhost with a promo code and have gotten enough referrals to pay for the next 3 years at normal pricing. Next question... But seriously, Dreamhost is a solid company, pretty decent tech support (not that I''ve ever needed it), and supports Rails and FastCGI. -PJ http://pjhyett.com
It seems like one of the major hurdles for Rails right now is finding a reliable production environment -- especially if you don''t want to fork out for a VPS or dedi box, and then figure out how to set it all up yourself. I run a small mom and pop''s hosting company and we''re looking to add RoR to our services. So I''ve been snooping around, trying to find the best way to do this in a shared hosting environment. But the more I read, the more I think that Rails is really just not well- suited to a shared box. So we''re now leaning toward the idea of offering mini-VPS accounts pre-configured with Rails + Apache/Lighttpd + FCGI/SCGI. The theory is that a lot of folks just want a Rails environment that works reliably straight out of the box. But of course these packages would need to be priced a little higher than a basic shared hosting account. So my question to all of you nice people in Rails-land is basically: Would you pay a little more for a VPS that comes pre-configured for Rails and includes support for Rails-related issues? Any thoughts or suggestions would be greatly appreciated. Cheers, Sean On Nov 11, 2005, at 10:48 AM, Peter Michaux wrote:> Thomas, > > Thanks for posting about A Small Orange. I spent some time reading > their site and forums. Seems like they are worth a try. If I signup > I''ll use your referal. > > Peter > > On 11/10/05, Thomas Kirchner <lists-AwGSwOOX2Udg9hUCZPvPmw@public.gmane.org> wrote: * On Nov > 9 16:05, Cabbar Duzayak (rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org) wrote: > > It will start as a > > small site, hence will use shared hosting in the > > beginning, but then probably will be moved to > > VPS/dedicated after couple of months... > > I would highly recommend A Small Orange for both shared hosting and > VPS. > I''ve been using them for months now and it''s very quick, they have > unbelievable support, and I haven''t had any downtime. They support > Rails > under FastCGI along with pretty much anything else you''d want, and > even > under their (cheap) shared hosting you get basically unlimited > everything. > > (If you don''t mind my referring you to them, here''s a link:) > http://www.asmallorange.com/services/hosting/?refer=halffull.org > > Tom > _______________________________________________ > 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:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
Hello Sean ! 2005/11/10, Sean Schertell <sean@datafly.net>:> So my question to all of you nice people in Rails-land is basically: > Would you pay a little more for a VPS that comes pre-configured for > Rails and includes support for Rails-related issues?Depending on how much more it would be, yes, I'd be ready to fork the cash over. I'm on DreamHost right now. It works, that's for sure. I'd say I have an uptime of over 95%. We had a problem on a server, and DreamHost staff moved our hosting to another server which was less loaded. We have had a lot less problems since then. My only issue is with zombie FastCGI processes. I've been using cron jobs to kill and restart my FCGI processes, and it seems to work fine since then. Of course, I'd prefer not to have to do that, but you know... Have a nice day ! François _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 11/10/05, Sean Schertell <sean-ZFxOO9cya7fR7s880joybQ@public.gmane.org> wrote: So my question to all of you nice people in Rails-land is basically:> Would you pay a little more for a VPS that comes pre-configured for > Rails and includes support for Rails-related issues?Yes. That''s the whole point of using Rails as a web development environment! How much? Peter _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
> So my question to all of you nice people in Rails-land is basically: > Would you pay a little more for a VPS that comes pre-configured for > Rails and includes support for Rails-related issues? > > Yes. That''s the whole point of using Rails as a web development > environment! > > How much?Still a little early in the exploratory stages so I''m not sure about pricing yet. I''m imagining it would be somewhere around $29/mo or so. But if you guys have suggestions about price points and specs, I''d love to hear them. :-) Sean :::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Nov 10, 2005, at 7:13 PM, Sean Schertell wrote:> It seems like one of the major hurdles for Rails right now is > finding a reliable production environment -- especially if you > don''t want to fork out for a VPS or dedi box, and then figure out > how to set it all up yourself. > > I run a small mom and pop''s hosting company and we''re looking to > add RoR to our services. So I''ve been snooping around, trying to > find the best way to do this in a shared hosting environment. But > the more I read, the more I think that Rails is really just not > well-suited to a shared box. > > So we''re now leaning toward the idea of offering mini-VPS accounts > pre-configured with Rails + Apache/Lighttpd + FCGI/SCGI. The > theory is that a lot of folks just want a Rails environment that > works reliably straight out of the box. But of course these > packages would need to be priced a little higher than a basic > shared hosting account. > > So my question to all of you nice people in Rails-land is basically: > Would you pay a little more for a VPS that comes pre-configured for > Rails and includes support for Rails-related issues? > > Any thoughts or suggestions would be greatly appreciated. > > Cheers, > SeanI have been setting up custom VPS servers at rimuhosting.com with raisl/lighttpd/whatever else configs for about 5 people in the last month here and those folks have had great luck going that route. I was also considering whether it would be worth it to get a reseller account and make a few different custom rails vps images for people to get preconfigured. Sounds like a great idea for someone with a smaller hosting company to do. I highly recommend VPS servers using the xen tech for virtualization though. It performs much better than the VMware or Virtuozzo VPS servers. Also the way xen is built into a custom linux kernel it is faster and it doesn''t allow the host to oversell a physical box. A lot of places that sell cheaper smaller VPS servers try to cram 50-100 vps''s on one box and you can tell when you use them. If anyone else is interested in getting set up with a custom rails VPS at http://rimuhosting.com, get in touch with me off list and we can talk. Cheers- -Ezra Zygmuntowicz WebMaster Yakima Herald-Republic Newspaper ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org 509-577-7732
Thanks Ezra for sharing your experiences. We would definitely be using Xen for virtualization. Any thoughts about what folks would want in terms of disk space, bandwidth, etc? Sean :::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Nov 10, 2005, at 8:07 PM, Sean Schertell wrote:> Thanks Ezra for sharing your experiences. We would definitely be > using Xen for virtualization. Any thoughts about what folks would > want in terms of disk space, bandwidth, etc? > > Sean > >Well for a $29/month plan I think around 30-40gig transfer/month and maybe 3 or 4 gig disk space with 128-192MB RAM. Something like that would be a great rails vps and I''m sure you would get customers for that. If you like I could probably get you a great debian sarge xen vps image all set up with the whole rails./lighttpd stack. Get in touch with me off list if you want to talk further about some more details Good Luck! -Ezra Zygmuntowicz WebMaster Yakima Herald-Republic Newspaper ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org 509-577-7732
justin.french wrote:> On 10/11/2005, at 11:05 AM, Cabbar Duzayak wrote:> We''re not that far away (a month or so) from releasing RailsBase > (formerly RailsAppHosting).anyone have an ETA on this? -- Posted via http://www.ruby-forum.com/.