Re: What is the equivalent of cap deploy:migrations in Heroku?

2010-09-07 Thread Matthew A. Brown
That's the best solution I know of generally if you have migrations that break the previous install; however, many migrations (such as creating tables/columns) are backward-compatible and thus can be run while the app is still running under the older version of the code. This allows you to avoid

Re: Hosted Rails CI?

2010-08-19 Thread Matthew A. Brown
Huh, OK -- not as much worried about the installation (I'd probably go with Hudson) as the cost of maintaining an S3 instance or whatever just for CI... 2010/8/19 Nicolás Sanguinetti h...@nicolassanguinetti.info: On Thu, Aug 19, 2010 at 11:47 AM, Matthew A. Brown mat.a.br...@gmail.com wrote

Re: Compiling Less stylesheets

2010-08-04 Thread Matthew A. Brown
That's quite interesting -- however I'm skeptical of this: Wouldn’t live processing lag? Not really. Two reasons for this. One: Less.js has been written from the ground up for great performance, so even browsers with poor JavaScript implementation should still run it very well (Less.js is about

Re: YAML::load(string) failing on Heroku with 'an instance of IO needed'

2010-07-29 Thread Matthew A. Brown
You could try using a StringIO as a workaround On Wed, Jul 28, 2010 at 16:35, Justin jsh...@gmail.com wrote: Hi folks!  Can someone help me find the problem with my migration, below?  It's working fine on my local environment, but when I run it in Heroku I get 'an instance of IO needed' error.

Re: Sunspot and geo search

2010-07-26 Thread Matthew A. Brown
WebSolr's Sunspot hosting uses the solr-spatial-light plugin to support Sunspot's geo search. However, the next Sunspot release will remove the need for an extended Solr and instead use a geohash-based spatial search that works with an out-of-box Solr 1.4 instance. On Mon, Jul 26, 2010 at 09:00,

Re: Sunspot and geo search

2010-07-26 Thread Matthew A. Brown
, 2010 at 20:28, AlainP alain.pi...@gmail.com wrote: Ok. Are there any tutorials on this on the net? Either there are none or I am searching using the wrong keywords  because I havent found any ;-S Any idea on when the next Sunspot version will be out? On Jul 26, 1:06 pm, Matthew A. Brown

Re: A conclusive way to package static assets

2010-07-19 Thread Matthew A. Brown
Why not just bundle your assets locally before deployment? There's the obvious inelegance of having duplicate information in your source control tree, but that seems a fairly reasonable compromise to make... On Sun, Jul 18, 2010 at 01:57, Ben Schwarz ben.schw...@gmail.com wrote: Hi all, I'm

Re: DataMapper can't count

2010-06-28 Thread Matthew A. Brown
I'm not sure about DataMapper, but ActiveRecord returns an Array object when you call #all. Array doesn't have the #count method -- you're looking for #length. Or, if you want to do an SQL count, I believe you just want Game.count Mat On Sat, Jun 26, 2010 at 20:42, jeff

Re: Missing the Rails 2.3.5 gem.

2010-06-02 Thread Matthew A. Brown
I had the same problem; after lots of head-banging, I just pushed my code to a new app instance (on bamboo) and it worked fine. Migrating my old instance to bamboo didn't help though so it wasn't purely an aspen/bamboo issue. On Jun 2, 2010 8:50 AM, thechrisoshow thechrisos...@gmail.com wrote:

Re: Rails 2.3.6

2010-06-01 Thread Matthew A. Brown
Just to follow up on this -- I went through the recommended migration process to switch over to bamboo. Everything looked great on the test app, but when I ran the migration tool on my real app, it went back to having the same weird dependency issues. I ended up just nuking my existing app and

Re: Rails 2.3.6

2010-05-25 Thread Matthew A. Brown
...@thebrocks.net wrote: Two things you may want to keep in mind: People mentioned rails 2.3.4 - 2.3.5 breaking a number of tests. I think Rails 2.3.7 is just around the corner. --Keenan On May 25, 2010, at 12:26 PM, Matthew A. Brown wrote: Hmm, interesting. I still haven't been able

Rails 2.3.6

2010-05-23 Thread Matthew A. Brown
Hi all, Ran into a problem with gem dependency resolution that I wasn't able to easily solve without just updating everything to the latest, including Rails to 2.3.6. However this doesn't appear to be installed by default on alpine and when I put it into my .gems manifest, it seems to just sit

Re: Rails 2.3.6

2010-05-23 Thread Matthew A. Brown
For what it's worth, I added all of the individual components to the .gems manifest above the call to Rails itself -- all the components installed fine, but it still timed out trying to install the metapackage. Weird. On Sun, May 23, 2010 at 19:12, Matthew A. Brown mat.a.br...@gmail.com wrote

Re: Time zone issue, Rails 3 - Time.zone = set, but heroku still using local server time

2010-05-03 Thread Matthew A. Brown
Hi Daryl, The Time.zone code only affects the behavior of Time.zone (Time.zone.now, Time.zone.parse, ActiveRecord's casting of Date columns, etc) inside your application; it doesn't have any effect on system time (which is what `date` as well as Time.now will give you). The best practice is to

Re: Using Time.now in AR#find :conditions - not working correctly?

2010-04-20 Thread Matthew A. Brown
The usual approach with ActiveRecord is to treat datetime columns as time-zone-less -- in other words, regardless of whether postgres has an internal idea of time zone, you interpret the values of those columns in whatever time zone makes sense. To make that less of a pain, many applications set

Re: URL rewriting on Heroku?

2010-04-06 Thread Matthew A. Brown
I'm guessing your only option here is to do it from within your application itself. Also, I'm guessing it's pretty unlikely that any of that stuff has any effect on search engine rankings in this day and age. On Sun, Apr 4, 2010 at 04:15, Matt Wright wrattmi...@gmail.com wrote: I'm wondering if

Re: Running RSpec

2010-03-19 Thread Matthew A. Brown
I'm guessing Heroku doesn't intend for you to run your specs on their dynos. When you install your app, my impression is that they install/modify several config files in your app to make it play nice with their environment, all of which are configured for the production environment. What's wrong

Re: Does Websolr Use Background Tasks?

2010-03-03 Thread Matthew A. Brown
Hey Jared, Generally if you're not committing explicitly from your code (and it's a good idea not to), commits will be performed automatically by Solr, using the autoCommit function. This is totally handled by Solr and does not require any background process on your end. I'm not sure off hand

Re: Hosted Sphinx Full-Text Search

2010-03-03 Thread Matthew A. Brown
This doesn't sound especially plausible since Sphinx has to make a direct connection to your database in order to index data. On Wed, Mar 3, 2010 at 14:21, Jared Brown jaredbr...@gmail.com wrote: Does anyone know of a hosted Sphinx service similar to what Websolr is offering? -- You received

Re: require 'bundled-gem' -- no such file to load

2010-02-17 Thread Matthew A. Brown
I'm having the same problem with Nokogiri. On Wed, Feb 17, 2010 at 12:07, orlin orlin.mo...@gmail.com wrote: Toadhopper doesn't find Nokogiri, after upgrading to the latest Bundler.  The gem is bundled, and locked, and Heroku says: Installing nokogiri (1.4.1) from rubygems repository at

Won't load Nokogiri after Bundler 0.9 upgrade

2010-02-16 Thread Matthew A. Brown
Hi all, Just upgraded my app to Bundler 0.9, and I noticed that Nokogiri is no longer available in my environment. From the heroku console: Nokogiri NameError: uninitialized constant Nokogiri require 'nokogiri' MissingSourceFile: no such file to load -- nokogiri Here's my Gemfile: gem

Boot error loading tmail after Bundler 0.9 upgrade

2010-02-16 Thread Matthew A. Brown
Hi all, Another Bundler upgrade issue - I specify the tmail gem explicitly in my Gemfile, as this causes Rails to use the latest version of the gem rather than the one they accidentally embedded into action_mailer. This wasn't a problem in Bundler 0.8, but it's causing this error after upgrading

Re: Postgres Search

2010-02-09 Thread Matthew A. Brown
On Tue, Feb 9, 2010 at 01:21, Mike mikel...@gmail.com wrote: I noticed that the documentation recommends using Solr for search: http://docs.heroku.com/full-text-search However, Postgres has a built-in full text search capability that is not discussed at all.  I was wondering what the

Re: Missing Template

2010-02-07 Thread Matthew A. Brown
I believe the standard Rails error message when a template is missing is Missing action_name.erb, as that's the last template name Rails looks for - however, it also looks for action_name.html.erb when resolving the view. So the error message may be making the problem look less mundane than it

Re: Querying Across Apps on Heroku

2010-01-26 Thread Matthew A. Brown
I'd consider providing an internal web service in your existing applications that your summary application can query using a REST API. Mat On Tue, Jan 26, 2010 at 12:09, Ken Collins k...@metaskills.net wrote: I've seen live DB to DB solutions fail many times before. But I'm willing to admit

Re: Net::SMTPAuthenticationError when sending mail from console using Sendgrid

2010-01-25 Thread Matthew A. Brown
Hey Simon, Thanks - that's very helpful. How did you get the username and password for your sendgrid account? I also signed up for a Sendgrid account manually for use in development, and that's working fine at this point - maybe I should just point my production instance's SMTP settings at that,

Re: Net::SMTPAuthenticationError when sending mail from console using Sendgrid

2010-01-25 Thread Matthew A. Brown
Thanks! On Mon, Jan 25, 2010 at 11:24, Simon Starr si...@starr.cx wrote: Oops, that should be 'heroku config' On Jan 25, 4:23 pm, Simon Starr si...@starr.cx wrote: They're stored as environment variables (SENDGRID_USERNAME SENDGRID_PASSWORD) so you can find them with 'heroku console' --

Re: Net::SMTPAuthenticationError when sending mail from console using Sendgrid

2010-01-25 Thread Matthew A. Brown
Worked for me too! Thanks. Mat On Mon, Jan 25, 2010 at 12:40, Simon Starr si...@starr.cx wrote: David, that fixed the problem for me. Thanks  Simon On Jan 25, 4:25 pm, David Dollar da...@heroku.com wrote: We have an issue with a handful of apps not picking up their credentials correctly.