Re: Errno:ECONNREFUSED - DNS query

2011-04-04 Thread Matthew Todd
Hi, Craayzie -- res = Dnsruby::Resolver.new({:nameserver = [68.87.76.182]}) ret = res.query(www.abc.com) Errno::ECONNREFUSED: Connection refused - connect(2) For what it's worth, I just tried running `dig` in a Heroku console. Querying the nameserver you mentioned didn't work:

Re: Public Assets and Serve

2011-03-29 Thread Matthew Todd
http://serve-demo.heroku.com/hello But static assets like images and stylesheets don't seem to be being served from the public directory. Works for me? https://skitch.com/matthewtodd/ragi5/hello-world smime.p7s Description: S/MIME cryptographic signature

Re: Paperclip::Geometry command

2011-02-17 Thread Matthew Todd
On Feb 17, 2011, at 3:16 PM, Vlad wrote: Paperclip::CommandNotFoundError (Paperclip::CommandNotFoundError): ←[32m2011-02-17T03:07:31-08:00 app[web.1]:←[0m app/models/picture.rb: 49:in `image_geometry' Hi, Vlad -- Have a look at:

Re: Headers on static content being clobbered

2011-02-14 Thread Matthew Todd
On Feb 14, 2011, at 8:16 PM, Michael Edgar wrote: How can I set a far-future cache-control header and not have it get clobbered by Varnish? Hi, Mike -- Short version: monkey-patch Heroku::StaticAssetsMiddleware to unconditionally return @app.call(env). Weird, no? Longer version:

Re: Add SSH Key to Heroku (using Windows/Cygwin)

2010-10-12 Thread Matthew Todd
On Oct 11, 2010, at 7:36 PM, Twiek wrote: Beeing new to programming I'm trying to learn RoR using railstutorial.org and ran into a problem in chapter 1.4.1 (http:// railstutorial.org/book#sec:1.4.1). When trying to add my SSH key to Heroku the following happend: ba...@basti-pc ~ $ heroku

Re: DJ Workers Crashing Without Specific Information

2010-10-04 Thread Matthew Todd
On Sep 30, 2010, at 3:58 PM, WilliamF wrote: RPM Monitoring DJ worker host:railgun64.29642 pid:29790 *** Starting job worker host:railgun64.29642 pid:29790 /usr/ruby1.8.7/lib/ruby/1.8/uri/common.rb:385: [BUG] Segmentation fault ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI

Re: Heroku Docs PDF

2010-09-16 Thread Matthew Todd
On Sep 11, 2010, at 8:32 AM, lakshmanan lucky.develo...@gmail.com wrote: Some times I go offline and I need to check heroku docs. Can you please provide us the PDF download of the Online docs .. it would be of great help On Sep 15, 2010, at 11:09 PM, Jeff Deville wrote: I'll second this.

Re: Prevent Static Asset Inclusion In Slug

2010-08-19 Thread Matthew Todd
On Thu, 2010-08-19 at 12:40 -0700, Matt Hodan wrote: Can one exclude certain files (e.g. static assets) from being complied into a slug without excluding them from the git repository? On Aug 20, 2010, at 12:04 AM, Terence Lee wrote: You can use .slugignore and specify files in there. It

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-12 Thread Matthew Todd
On Aug 12, 2010, at 3:34 AM, Bradley wrote: Right, so I added in: Host heroku.com ForwardAgent yes to my Tomcat user's ~/.ssh/config. This is the user that checks out from Github then pushes to heroku. I still get the same error, Permission denied (publickey). Hi, Brad -- I've just

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-10 Thread Matthew Todd
On Aug 10, 2010, at 2:51 PM, Bradley wrote: Fetching g...@github.com:myuser/mygem.git Failed to add the host to the list of known hosts (/home/ group_home/.ssh/known_hosts). Permission denied (publickey). fatal: The remote end hung up unexpectedly [31mAn error has

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-10 Thread Matthew Todd
On Aug 10, 2010, at 8:28 AM, Matthew Todd wrote: Host heroku.com ForwardAgent yes On Aug 11, 2010, at 7:34 AM, Bradley wrote: this should be added to the github user's ssh config? No, to the ssh config of any *local* user (having access to your private GitHub repository) who needs to run

Re: db:pull from one heroku app to another without downloading

2010-08-06 Thread Matthew Todd
On Aug 4, 2010, at 3:19 AM, gduq wrote: Is it possible to use heroku db:pull to clone the data from one (heroku) app directly to another without downloading it to the local machine and using db:push to send it back? e.g. if we have 'production' and 'staging' apps and want to copy the data

Re: Using Rack::StaticCache

2010-07-19 Thread Matthew Todd
On Jul 19, 2010, at 2:47 AM, Adam Wiggins wrote: We're hoping to be able to make heroku_rack open source soon, which should make it a lot easier to get in and tinker with stuff like this. In the meantime, here's the static asset middleware: http://gist.github.com/480819 Thanks, Adam -- it

Re: Using Rack::StaticCache

2010-07-16 Thread Matthew Todd
On Jul 14, 2010, at 5:25 PM, logicaltext wrote: Where does AssetTagHelper cache the digest? How does this persist across multiple requests? http://github.com/rails/rails/blob/v2.3.8/actionpack/lib/action_view/helpers/asset_tag_helper.rb#L591-604 I haven't deeply understood Rails'

Re: Using Rack::StaticCache

2010-07-14 Thread Matthew Todd
Hi logicaltext, Sorry for my late response. Our internet no worky. I can't seem to find any information on Heroku::StaticAssetsMiddleware--where did you find out about it? Dumb luck. At the time, there happened to be an extraction of Heroku's Rack stack on GitHub (heroku_rack), but it's

Re: Using Rack::StaticCache

2010-07-11 Thread Matthew Todd
On Jul 12, 2010, at 2:17 AM, logicaltext wrote: That's great, but what if we want to use [Rack::StaticCache][2] (via the rack-contrib project) to cache static assets for more than 12 hours? Does Heroku allow this? I've just been through this, and I've been meaning to write it up: The main

Re: Please help on rack-rewrite

2010-06-26 Thread Matthew Todd
On Jun 24, 2010, at 7:56 PM, Jesse wrote: http://github.com/jtrupiano/rack-rewrite/issues/#issue/7 I've replied inline on GitHub: http://github.com/jtrupiano/rack-rewrite/issues/#issue/7/comment/288774 ## config/environments/production.rb (fails) config.gem 'rack-rewrite', '1.0.0' require