mongo mapper or mongoid on heroku with rails 3
Anyone have thoughts or know if mongo mapper or mongoid work better with rails 3 on heroku? Tried a couple things with each to see if I liked one more that the other, but it seems fairly even. Just wondering if one runs better on heroku rails3. Thanks, Josh @JoshCoffman 480-270-4578 | josh [at] computeristsolutions [dot] com | http://computeristsolutions.com -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: mongo mapper or mongoid on heroku with rails 3
I switched to Mongoid because it implemented ActiveModel early (and thus got supported by other prominent gems, such as Devise for authentication). Here's a good starter app for you: http://github.com/fortuity/rails3-mongoid-devise -Pius On Tue, Sep 21, 2010 at 10:20 AM, Josh Coffman joshcoff...@gmail.comwrote: Anyone have thoughts or know if mongo mapper or mongoid work better with rails 3 on heroku? Tried a couple things with each to see if I liked one more that the other, but it seems fairly even. Just wondering if one runs better on heroku rails3. Thanks, Josh @JoshCoffman 480-270-4578 | josh [at] computeristsolutions [dot] com | http://computeristsolutions.com -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: mongo mapper or mongoid on heroku with rails 3
We've personally had no issues with Mongoid, not sure tried MongoMapper though. We use the following config/initializer/mongoid.rb: settings = URI.parse(ENV['MONGOHQ_URL'] || 'mongodb://localhost/dbname') database_name = settings.path.gsub(/^\//, '') Mongoid.configure do |config| config.master = Mongo::Connection.new(settings.host, settings.port).db(database_name) config.master.authenticate(settings.user, settings.password) if settings.user end Can't remember where the config came from but it works like a charm so thanks to whoever created it :-) Steve -- http://cloudmailin.com @cloudmailin Incoming email for your web app On 21 Sep 2010, at 15:20, Josh Coffman wrote: Anyone have thoughts or know if mongo mapper or mongoid work better with rails 3 on heroku? Tried a couple things with each to see if I liked one more that the other, but it seems fairly even. Just wondering if one runs better on heroku rails3. Thanks, Josh @JoshCoffman 480-270-4578 | josh [at] computeristsolutions [dot] com | http://computeristsolutions.com -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: mongo mapper or mongoid on heroku with rails 3
Thanks Steve Pius. Also, a general thanks to the heroku community. I really like how helpful everyone is, which is probably an extension of how helpful the ruby rails communities are. -j On Tue, Sep 21, 2010 at 7:29 AM, Steve Smith st...@scsworld.co.uk wrote: We've personally had no issues with Mongoid, not sure tried MongoMapper though. We use the following config/initializer/mongoid.rb: settings = URI.parse(ENV['MONGOHQ_URL'] || 'mongodb://localhost/dbname') database_name = settings.path.gsub(/^\//, '') Mongoid.configure do |config| config.master = Mongo::Connection.new(settings.host, settings.port).db(database_name) config.master.authenticate(settings.user, settings.password) if settings.user end Can't remember where the config came from but it works like a charm so thanks to whoever created it :-) Steve -- http://cloudmailin.com @cloudmailin Incoming email for your web app On 21 Sep 2010, at 15:20, Josh Coffman wrote: Anyone have thoughts or know if mongo mapper or mongoid work better with rails 3 on heroku? Tried a couple things with each to see if I liked one more that the other, but it seems fairly even. Just wondering if one runs better on heroku rails3. Thanks, Josh @JoshCoffman 480-270-4578 | josh [at] computeristsolutions [dot] com | http://computeristsolutions.com -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: mongo mapper or mongoid on heroku with rails 3
Mongoid. The documentation is the difference. I started with MongoMapper, and it was great, but when I needed to know what was going on, I couldn't figure it out. I had trouble following the source, but that's probably because I'm still a novice ruby developer. John's plugin model was just too sophisticated for me to follow at the time. On Tue, Sep 21, 2010 at 12:46 PM, Josh Coffman joshcoff...@gmail.comwrote: Thanks Steve Pius. Also, a general thanks to the heroku community. I really like how helpful everyone is, which is probably an extension of how helpful the ruby rails communities are. -j On Tue, Sep 21, 2010 at 7:29 AM, Steve Smith st...@scsworld.co.uk wrote: We've personally had no issues with Mongoid, not sure tried MongoMapper though. We use the following config/initializer/mongoid.rb: settings = URI.parse(ENV['MONGOHQ_URL'] || 'mongodb://localhost/dbname') database_name = settings.path.gsub(/^\//, '') Mongoid.configure do |config| config.master = Mongo::Connection.new(settings.host, settings.port).db(database_name) config.master.authenticate(settings.user, settings.password) if settings.user end Can't remember where the config came from but it works like a charm so thanks to whoever created it :-) Steve -- http://cloudmailin.com @cloudmailin Incoming email for your web app On 21 Sep 2010, at 15:20, Josh Coffman wrote: Anyone have thoughts or know if mongo mapper or mongoid work better with rails 3 on heroku? Tried a couple things with each to see if I liked one more that the other, but it seems fairly even. Just wondering if one runs better on heroku rails3. Thanks, Josh @JoshCoffman 480-270-4578 | josh [at] computeristsolutions [dot] com | http://computeristsolutions.com -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Caching of /public files
I'm wondering about the options for caching of public files, I would image they are cached by default? How do you set caching headers on them for instance? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Caching of /public files
This what you're looking for? http://docs.heroku.com/http-caching On Tue, Sep 21, 2010 at 10:36 PM, Alex a...@heaton.me wrote: I'm wondering about the options for caching of public files, I would image they are cached by default? How do you set caching headers on them for instance? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Heroku and large sites
This comment on Hacker News got me thinking: And with hilarious I mean really hilarious, as in the $3500 price point for a 50G memcached instance. For that money you can also buy a physical server with 64G RAM every month, fresh from the factory... --- http://news.ycombinator.com/item?id=1664914 50GB is massive and I'm wondering what sort of site actually needs this? Would a popular forum require this much? It would have to be very, very popular? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Heroku and large sites
Yeah, that's a lot of money, and a lot of memory. I'm against defining averages for that sort of thing because memory usage is directly proportional to, among other things, how badly written an app is. I'd wager that variable is actually the most important. My guess is Heroku is taking into consideration how easy it is to put all that infrastructure to use, if you write an app with Heroku in mind. And how much you'd save by not hiring a sysadmin, and... well, still a lot of money :) On Wed, Sep 22, 2010 at 2:30 PM, railsnerd rails.n...@gmail.com wrote: This comment on Hacker News got me thinking: And with hilarious I mean really hilarious, as in the $3500 price point for a 50G memcached instance. For that money you can also buy a physical server with 64G RAM every month, fresh from the factory... --- http://news.ycombinator.com/item?id=1664914 50GB is massive and I'm wondering what sort of site actually needs this? Would a popular forum require this much? It would have to be very, very popular? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- http://awesomebydesign.com -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.