Re: private git repos in bundler

2010-08-11 Thread darkhelmetlive
What happens if you use the HTTP URL, with username/password in the
URL?

Either than, or vendor that repo.

- Daniel

On Aug 6, 10:31 am, David Balatero  wrote:
> If I have a private library on Github that I want to include in my Heroku
> app via Bundler, I know I can pass the Git-SSH URL to Bundler. However, the
> deploy machine would have to have the correct SSH keys to clone from github.
> Is it possible to get my app's SSH pub key, and add it to my project on
> Github to allow private cloning from Heroku?
>
> Thanks!
> David

-- 
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: Rails3 RC from master failed to start

2010-08-11 Thread Pasha
This bug is now fixed
http://github.com/carlhuda/bundler/blob/master/CHANGELOG.md

Please update bundler to 1.0.0.rc4

On Aug 6, 3:49 am, Terence Lee  wrote:
> We have a workaround here:http://docs.heroku.com/bundler100rc2-git
>
> Please file a support ticket if you're still having issues
>
> Thanks,
> Terence
>
>
>
> On Thu, 2010-08-05 at 16:07 -0700, garyf wrote:
> > I am pleased that our production platform for Rails 2.3.8 is receiving
> > such aggressive beta testing of the RC.
>
> > In a few weeks, or months, I have no doubt that Heroku will be rock
> > solid with Rails 3.0.
>
> > Gary
> >http://realized-app.com
>
> > On Aug 5, 6:06 pm, Chris Conley  wrote:
> > > Yeah I agree. I should've mentioned that it was a temporary solution. 
> > > Thanks!
>
> > > On Thu, Aug 5, 2010 at 5:59 PM, Nick Quaranto  wrote:
> > > > How about git://github.com/rails/rails.git ?
> > > > Also, I've been trying to discourage gem forking unless if it's really,
> > > > really necessary...you can point bundler to a git repo, why is pushing 
> > > > the
> > > > gem necessary then?
>
> > > > On Thu, Aug 5, 2010 at 5:56 PM, Chris Conley 
> > > > wrote:
>
> > > >> I just got around this by forking the git gem and pushing to
> > > >> rubygems.org. Here's drnic's guide to doing just that:
>
> > > >>http://drnicwilliams.com/2009/11/04/hacking-someones-gem-with-github-...
>
> > > >> On Thu, Aug 5, 2010 at 5:33 PM, Chris Conley 
> > > >> wrote:
> > > >> > Yeah, I'm getting the same error as well.
>
> > > >> > On Thu, Aug 5, 2010 at 5:11 PM, lstoll  wrote:
> > > >> >> I'm having a similar problem - seems that any gem that is installed
> > > >> >> from a git source will fail like this.
>
> > > >> >> On Aug 5, 10:47 pm, morgoth  wrote:
> > > >> >>> After pushing application to heroku I get
> > > >> >>> error:http://gist.github.com/510350
>
> > > >> >>> Anybody having similar problem?
>
> > > >> >> --
> > > >> >> 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.
>
> > > > --
> > > > 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.
>
>
>
>  signature.asc
> < 1KViewDownload

-- 
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.



Rails 3 doesn't officially support Ruby 1.9.1

2010-08-11 Thread Stefan Wintermeyer
Hi,

just wanted to do a "heroku rake db:migrate" and look what happened. The 
current situation with Ruby 1.9.1 on Heroku is a bit disappointing. I really 
would like to use Heroku but haven't been able to fire up a single Rails 3 
server yet.

---cut---
s...@swmbp 0 1.9.2-preview3 gemeinschaft.heroku.com(master)$ heroku rake 
db:migrate

Rails 3 doesn't officially support Ruby 1.9.1 since recent stable
releases have segfaulted the test suite. Please upgrade to Ruby 1.9.2
before Rails 3 is released!

You're running
  ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-linux]

rake aborted!
/disk1/home/slugs/209589_ac244c3_4557/mnt/.bundle/gems/ruby/1.9.1/gems/workflow-0.6.0/lib/workflow.rb:182:
 Invalid return

(See full trace by running task with --trace)
(in /disk1/home/slugs/209589_ac244c3_4557/mnt)
s...@swmbp 0 1.9.2-preview3 gemeinschaft.heroku.com(master)$
---cut---

  Stefan

-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  -->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister Montabaur B14998

Asterisk 1.6: http://das-asterisk-buch.de
Ruby on Rails 3: http://ruby-auf-schienen.de
Videos and slides of AMOOCON: http://amoocon.de

-- 
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: NOTICE: Updating Bundler this week

2010-08-11 Thread Abel
I'm having the same problem as you, Sergio.
Working on a Saturday night... :(

On Aug 7, 9:16 pm, Sergio Lima  wrote:
> Hi,
>
>    I'm using Rails 3.0.0.beta3 and ruby 1.9.2.
>
>    I tried to deploy to heroku today and I received some errors.
>
>    Then I followed the link bellow:
>    http://docs.heroku.com/bundler100rc2-git#step-by-step-instructions
>
>    After completed the "step by step instructions" I had the errors:
>
> Sáb Ago 07 16:03:24 $ git push heroku master
> Counting objects: 16, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (9/9), done.
> Writing objects: 100% (11/11), 1.46 KiB, done.
> Total 11 (delta 5), reused 0 (delta 0)
>
> -> Heroku receiving push
> -> Removing .DS_Store files
> -> Rails app detected
> -> Detected Rails is not set to serve static_assets
>        Installing rails3_serve_static_assets... done
> -> Gemfile detected, running Bundler version 1.0.0.rc.2
>        Unresolved dependencies detected; Installing...
>        Fetching source index forhttp://rubygems.org/
>        Could not find gem 'will_paginate (>= 0, runtime)' in source at
> /disk1/tmp/32103_23895027730260/vendor/gems/will_paginate.
>        Source does not contain any versions of 'will_paginate (>= 0,
> runtime)'
>        FAILED: Have you updated to use a 0.9 Gemfile?
>        http://docs.heroku.com/gems#gem-bundler
>
> error: hooks/pre-receive exited with error code 1
> To g...@heroku.com:exchangerv01.git
>  ! [remote rejected] master -> master (pre-receive hook declined)
> error: failed to push some refs to '@heroku.com:exchangerv01.git'
>
> Then I updated the Bundler to a new version:
> gem install bundler --pre
>
> My bundle version now is:
> Bundler version 1.0.0.rc.3
>
> After the command: "git push heroku master", the error is the same.
>
> Please, let me know what´s happening.
> Thanks in advance.
> --
>
> Sergio Lima 
> sergiosouzal...@gmail.comwww.sergiosouzalima.com.br
> [image: Facebook] [image:
> Linkedin][image:
> Orkut] [image:
> Twitter] 
>
> --- @ WiseStamp
> Signature.
> Get it 
> now
>
>
>
> On Sat, Aug 7, 2010 at 12:33 PM, Daniel Kehoe  wrote:
> > My app runs successfully on Heroku with Rails 3.0.0.rc and Bundler
> > version 1.0.0.rc.2.
>
> > Thanks for the update!
>
> > --
> >   Daniel
>
> > --
> > 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.



pg_dump version mismatch

2010-08-11 Thread sthapit
I'm auto backing up my database to S3 using code from
http://github.com/jpearl/heroku_backups but it's giving me this error:

pg_dump: server version: 8.3.11; pg_dump version: 8.3.7
pg_dump: proceeding despite version mismatch

Can someone help?  I've pasted the pg_dump code below.


def get_db_settings
  database_url = ENV['DATABASE_URL']
  matches = database_url.match(/postgres:\/\/([^:]+):([...@]+)@([^\/]+)\/
(.+)/)
  {:username => matches[1], :password => matches[2], :host =>
matches[3], :db_name => matches[4]}
end

def pg_dump(filename)
  settings = get_db_settings
  ENV['PGPASSWORD'] = settings[:password]
  `pg_dump -i -h #{settings[:host]} -U #{settings[:username]} -F c
#{settings[:db_name]} > "tmp/#{filename}.pgdump"`
  filename
end

-- 
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.



how to use a command-line utility?

2010-08-11 Thread Jacob Hodes
Hi,

I'm developing a Rails app that makes use of a command-line tool
called Graphviz (http://www.graphviz.org). Changes get made in the
Rails app, then a background job is fired which runs graphviz as a
system command. graphviz generates a graph and saves it to a file.
Then I upload the file back into my Rails app.

I know Heroku's filesystem is read-only, no ssh access, etc. Given
these limitations, what's the best approach to take?

I see I can use S3 for file storage. But how about finding a way to
use this command-line utility? I'm highly doubting Heroku would
install such a thing, right? Any alternative ideas?

Thanks for your thoughts,
Jacob

-- 
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.



Running Memcached

2010-08-11 Thread Chris Kalaboukis
Hi guys: I've just installed Memcached and my development environment
is hosed - responds with


ch...@chris-laptop:~/strong-fog-31$ ruby script/server
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
Missing these required gems:
  memcached-northscale

You're running:
  ruby 1.8.7.249 at /usr/bin/ruby1.8
  rubygems 1.3.5 at /home/chris/.gem/ruby/1.8, /var/lib/gems/1.8

Run `rake gems:install` to install the missing gems.
ch...@chris-laptop:~/strong-fog-31$ rake gems:install
(in /home/chris/strong-fog-31)
DEPRECATION WARNING: Rake tasks in vendor/plugins/delayed_job/tasks
and vendor/plugins/jrails/tasks are deprecated. Use lib/tasks instead.
(called from /home/chris/.gem/ruby/1.8/gems/rails-2.3.8/lib/tasks/
rails.rb:10)
rake aborted!
no such file to load -- memcached

(See full trace by running task with --trace)
ch...@chris-laptop:~/strong-fog-31$ ruby script/generate migration
archivecapture
Missing these required gems:
  memcached-northscale

You're running:
  ruby 1.8.7.249 at /usr/bin/ruby1.8
  rubygems 1.3.5 at /home/chris/.gem/ruby/1.8, /var/lib/gems/1.8

Run `rake gems:install` to install the missing gems.

So when i try to run rake, it craps out. Does anyone know how I can
edit my config so I can get this working again?

Thanks...Chris

-- 
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.



Cron + Delayed Job

2010-08-11 Thread Arpan
Is it possible to use a Cron Job to start a worker, run a series of
jobs and then shut down the worker?

Basically I am going to have a few jobs that need to run once a day. I
need to update a large number of records from a supplier on a daily or
weekly basis.

The job will take a couple hours, but I don't want to have a worker
running all day as they will be idle the 80% of the time.

Should I just use a cron job on the main dyno. Is there a time limit
for a cron job and will this slow the main server? I could run it at
2AM, when the site is mostly idle.

Or is there a way to start a worker, run the jobs and shut down the
worker once the jobs are done from cron?

What is the best way to implement this?

-- 
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: Running Memcached

2010-08-11 Thread Abel Tamayo
Why are you installing memcached-northscale instead of just memcached?

On Wed, Aug 11, 2010 at 12:34 AM, Chris Kalaboukis wrote:

> Hi guys: I've just installed Memcached and my development environment
> is hosed - responds with
>
>
> ch...@chris-laptop:~/strong-fog-31$ ruby script/server
> => Booting WEBrick
> => Rails 2.3.8 application starting on http://0.0.0.0:3000
> Missing these required gems:
>  memcached-northscale
>
> You're running:
>  ruby 1.8.7.249 at /usr/bin/ruby1.8
>  rubygems 1.3.5 at /home/chris/.gem/ruby/1.8, /var/lib/gems/1.8
>
> Run `rake gems:install` to install the missing gems.
> ch...@chris-laptop:~/strong-fog-31$ rake gems:install
> (in /home/chris/strong-fog-31)
> DEPRECATION WARNING: Rake tasks in vendor/plugins/delayed_job/tasks
> and vendor/plugins/jrails/tasks are deprecated. Use lib/tasks instead.
> (called from /home/chris/.gem/ruby/1.8/gems/rails-2.3.8/lib/tasks/
> rails.rb:10)
> rake aborted!
> no such file to load -- memcached
>
> (See full trace by running task with --trace)
> ch...@chris-laptop:~/strong-fog-31$ ruby script/generate migration
> archivecapture
> Missing these required gems:
>  memcached-northscale
>
> You're running:
>  ruby 1.8.7.249 at /usr/bin/ruby1.8
>  rubygems 1.3.5 at /home/chris/.gem/ruby/1.8, /var/lib/gems/1.8
>
> Run `rake gems:install` to install the missing gems.
>
> So when i try to run rake, it craps out. Does anyone know how I can
> edit my config so I can get this working again?
>
> Thanks...Chris
>
> --
> 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: Rails 3 doesn't officially support Ruby 1.9.1

2010-08-11 Thread Abel Tamayo
The best you can do is either find a deployment stack with the
specifications you're using or adapt your environment to what is offered by
Heroku. I'm checking the documents and it seems that Bamboo MRI supports
Ruby 1.9.1.

On Tue, Aug 10, 2010 at 10:53 AM, Stefan Wintermeyer <
stefan.winterme...@amooma.de> wrote:

> Hi,
>
> just wanted to do a "heroku rake db:migrate" and look what happened. The
> current situation with Ruby 1.9.1 on Heroku is a bit disappointing. I really
> would like to use Heroku but haven't been able to fire up a single Rails 3
> server yet.
>
> ---cut---
> s...@swmbp 0 1.9.2-preview3 gemeinschaft.heroku.com(master)$ heroku rake
> db:migrate
>
>Rails 3 doesn't officially support Ruby 1.9.1 since recent stable
>releases have segfaulted the test suite. Please upgrade to Ruby 1.9.2
>before Rails 3 is released!
>
>You're running
>  ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-linux]
>
> rake aborted!
> /disk1/home/slugs/209589_ac244c3_4557/mnt/.bundle/gems/ruby/1.9.1/gems/workflow-0.6.0/lib/workflow.rb:182:
> Invalid return
>
> (See full trace by running task with --trace)
> (in /disk1/home/slugs/209589_ac244c3_4557/mnt)
> s...@swmbp 0 1.9.2-preview3 gemeinschaft.heroku.com(master)$
> ---cut---
>
>  Stefan
>
> --
> AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  -->  http://www.amooma.de
> Geschäftsführer: Stefan Wintermeyer, Handelsregister Montabaur B14998
>
> Asterisk 1.6: http://das-asterisk-buch.de
> Ruby on Rails 3: http://ruby-auf-schienen.de
> Videos and slides of AMOOCON: http://amoocon.de
>
> --
> 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: Cron + Delayed Job

2010-08-11 Thread James Bracy
This is one way to implement it:
http://blog.darkhax.com/2010/07/30/auto-scale-your-resque-workers-on-heroku

On Tue, Aug 10, 2010 at 11:28 AM, Arpan  wrote:
> Is it possible to use a Cron Job to start a worker, run a series of
> jobs and then shut down the worker?
>
> Basically I am going to have a few jobs that need to run once a day. I
> need to update a large number of records from a supplier on a daily or
> weekly basis.
>
> The job will take a couple hours, but I don't want to have a worker
> running all day as they will be idle the 80% of the time.
>
> Should I just use a cron job on the main dyno. Is there a time limit
> for a cron job and will this slow the main server? I could run it at
> 2AM, when the site is mostly idle.
>
> Or is there a way to start a worker, run the jobs and shut down the
> worker once the jobs are done from cron?
>
> What is the best way to implement this?
>
> --
> 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: Rails3 RC from master failed to start

2010-08-11 Thread Abel Tamayo
Guys, what's the command to install RC4? I'm trying something like:

gem install bundler --version '1.0.0.rc.4' --pre

but I'm getting an error that that version can't be found in any of the
sources (rubygems). I can only install RC5.

On Tue, Aug 10, 2010 at 3:33 AM, Pasha  wrote:

> This bug is now fixed
> http://github.com/carlhuda/bundler/blob/master/CHANGELOG.md
>
> Please update bundler to 1.0.0.rc4
>
> On Aug 6, 3:49 am, Terence Lee  wrote:
> > We have a workaround here:http://docs.heroku.com/bundler100rc2-git
> >
> > Please file a support ticket if you're still having issues
> >
> > Thanks,
> > Terence
> >
> >
> >
> > On Thu, 2010-08-05 at 16:07 -0700, garyf wrote:
> > > I am pleased that our production platform for Rails 2.3.8 is receiving
> > > such aggressive beta testing of the RC.
> >
> > > In a few weeks, or months, I have no doubt that Heroku will be rock
> > > solid with Rails 3.0.
> >
> > > Gary
> > >http://realized-app.com
> >
> > > On Aug 5, 6:06 pm, Chris Conley  wrote:
> > > > Yeah I agree. I should've mentioned that it was a temporary solution.
> Thanks!
> >
> > > > On Thu, Aug 5, 2010 at 5:59 PM, Nick Quaranto 
> wrote:
> > > > > How about git://github.com/rails/rails.git ?
> > > > > Also, I've been trying to discourage gem forking unless if it's
> really,
> > > > > really necessary...you can point bundler to a git repo, why is
> pushing the
> > > > > gem necessary then?
> >
> > > > > On Thu, Aug 5, 2010 at 5:56 PM, Chris Conley <
> chris.m.con...@gmail.com>
> > > > > wrote:
> >
> > > > >> I just got around this by forking the git gem and pushing to
> > > > >> rubygems.org. Here's drnic's guide to doing just that:
> >
> > > > >>
> http://drnicwilliams.com/2009/11/04/hacking-someones-gem-with-github-...
> >
> > > > >> On Thu, Aug 5, 2010 at 5:33 PM, Chris Conley <
> chris.m.con...@gmail.com>
> > > > >> wrote:
> > > > >> > Yeah, I'm getting the same error as well.
> >
> > > > >> > On Thu, Aug 5, 2010 at 5:11 PM, lstoll  wrote:
> > > > >> >> I'm having a similar problem - seems that any gem that is
> installed
> > > > >> >> from a git source will fail like this.
> >
> > > > >> >> On Aug 5, 10:47 pm, morgoth  wrote:
> > > > >> >>> After pushing application to heroku I get
> > > > >> >>> error:http://gist.github.com/510350
> >
> > > > >> >>> Anybody having similar problem?
> >
> > > > >> >> --
> > > > >> >> 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.
> >
> > > > > --
> > > > > 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.
> >
> >
> >
> >  signature.asc
> > < 1KViewDownload
>
> --
> 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: how to use a command-line utility?

2010-08-11 Thread Richard Conroy
On Mon, Aug 9, 2010 at 6:41 PM, Jacob Hodes  wrote:

> Hi,
>
> I'm developing a Rails app that makes use of a command-line tool
> called Graphviz (http://www.graphviz.org). Changes get made in the
> Rails app, then a background job is fired which runs graphviz as a
> system command. graphviz generates a graph and saves it to a file.
> Then I upload the file back into my Rails app.
>
> I know Heroku's filesystem is read-only, no ssh access, etc. Given
> these limitations, what's the best approach to take?
>
> I see I can use S3 for file storage. But how about finding a way to
> use this command-line utility? I'm highly doubting Heroku would
> install such a thing, right? Any alternative ideas?
>

One idea I can think of is to wrap GraphViz in a web service and install it
in a seperate hosting service.

An alternative idea: Heroku lets you use sqlite/memory databases. Its not
a supported option, but they do work, and I would say the limitations are
severe (I doubt Delayed Jobs would see them).

You could upload the information that GraphViz needs to process into the DB.
I am uncertain how you could get the GraphViz CLI app to use it, but perhaps
GraphViz has a library/gem which has less restrictive use?


> Thanks for your thoughts,
> Jacob
>
> --
> 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://richardconroy.blogspot.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: how to use a command-line utility?

2010-08-11 Thread David Balatero
On Wed, Aug 11, 2010 at 3:43 PM, Richard Conroy wrote:

> On Mon, Aug 9, 2010 at 6:41 PM, Jacob Hodes  wrote:
>
>> Hi,
>>
>> I'm developing a Rails app that makes use of a command-line tool
>> called Graphviz (http://www.graphviz.org). Changes get made in the
>> Rails app, then a background job is fired which runs graphviz as a
>> system command. graphviz generates a graph and saves it to a file.
>> Then I upload the file back into my Rails app.
>>
>> I know Heroku's filesystem is read-only, no ssh access, etc. Given
>> these limitations, what's the best approach to take?
>>
>> I see I can use S3 for file storage. But how about finding a way to
>> use this command-line utility? I'm highly doubting Heroku would
>> install such a thing, right? Any alternative ideas?
>>
>
> One idea I can think of is to wrap GraphViz in a web service and install it
> in a seperate hosting service.
>

To this end, you can always spin up an EC2 instance. Since Heroku dynos are
hosted on EC2, you can talk to any other machines over private IP addresses.
You just need to allow the Heroku security group.


> An alternative idea: Heroku lets you use sqlite/memory databases. Its not
> a supported option, but they do work, and I would say the limitations are
> severe (I doubt Delayed Jobs would see them).
>
> You could upload the information that GraphViz needs to process into the
> DB.
> I am uncertain how you could get the GraphViz CLI app to use it, but
> perhaps
> GraphViz has a library/gem which has less restrictive use?
>
>
>> Thanks for your thoughts,
>> Jacob
>>
>> --
>> 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://richardconroy.blogspot.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: Rails 3 doesn't officially support Ruby 1.9.1

2010-08-11 Thread Mitchell Hashimoto
Stefan,

Rails 3 doesn't officially support Ruby 1.9.1, and I've found Ruby
1.9.1 to be horrendously unstable anyways. Ruby 1.9.2 is in RC stages,
so a final release should come soon, but there is no sign as to when
Heroku would support this. I would recommend running Rails 3 on Ruby
1.8.7, which is supported, and which I can say from experience works
great.

Mitchell

On Aug 10, 1:53 am, Stefan Wintermeyer 
wrote:
> Hi,
>
> just wanted to do a "heroku rake db:migrate" and look what happened. The 
> current situation with Ruby 1.9.1 on Heroku is a bit disappointing. I really 
> would like to use Heroku but haven't been able to fire up a single Rails 3 
> server yet.
>
> ---cut---
> s...@swmbp 0 1.9.2-preview3 gemeinschaft.heroku.com(master)$ heroku rake 
> db:migrate
>
>     Rails 3 doesn't officially support Ruby 1.9.1 since recent stable
>     releases have segfaulted the test suite. Please upgrade to Ruby 1.9.2
>     before Rails 3 is released!
>
>     You're running
>       ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-linux]
>
> rake aborted!
> /disk1/home/slugs/209589_ac244c3_4557/mnt/.bundle/gems/ruby/1.9.1/gems/work 
> flow-0.6.0/lib/workflow.rb:182: Invalid return
>
> (See full trace by running task with --trace)
> (in /disk1/home/slugs/209589_ac244c3_4557/mnt)
> s...@swmbp 0 1.9.2-preview3 gemeinschaft.heroku.com(master)$
> ---cut---
>
>   Stefan
>
> --
> AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  -->  http://www.amooma.de
> Geschäftsführer: Stefan Wintermeyer, Handelsregister Montabaur B14998
>
> Asterisk 1.6:http://das-asterisk-buch.de
> Ruby on Rails 3:http://ruby-auf-schienen.de
> Videos and slides of AMOOCON:http://amoocon.de

-- 
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: Running Memcached

2010-08-11 Thread Chris Kalaboukis
Heroku told me to add that to my manifest...

On Wed, 2010-08-11 at 23:38 +0200, Abel Tamayo wrote:
> Why are you installing memcached-northscale instead of just memcached?
> 
> On Wed, Aug 11, 2010 at 12:34 AM, Chris Kalaboukis
>  wrote:
> Hi guys: I've just installed Memcached and my development
> environment
> is hosed - responds with
> 
> 
> ch...@chris-laptop:~/strong-fog-31$ ruby script/server
> => Booting WEBrick
> => Rails 2.3.8 application starting on http://0.0.0.0:3000
> Missing these required gems:
>  memcached-northscale
> 
> You're running:
>  ruby 1.8.7.249 at /usr/bin/ruby1.8
>  rubygems 1.3.5
> at /home/chris/.gem/ruby/1.8, /var/lib/gems/1.8
> 
> Run `rake gems:install` to install the missing gems.
> ch...@chris-laptop:~/strong-fog-31$ rake gems:install
> (in /home/chris/strong-fog-31)
> DEPRECATION WARNING: Rake tasks in
> vendor/plugins/delayed_job/tasks
> and vendor/plugins/jrails/tasks are deprecated. Use lib/tasks
> instead.
> (called
> from /home/chris/.gem/ruby/1.8/gems/rails-2.3.8/lib/tasks/
> rails.rb:10)
> rake aborted!
> no such file to load -- memcached
> 
> (See full trace by running task with --trace)
> ch...@chris-laptop:~/strong-fog-31$ ruby script/generate
> migration
> archivecapture
> Missing these required gems:
>  memcached-northscale
> 
> You're running:
>  ruby 1.8.7.249 at /usr/bin/ruby1.8
>  rubygems 1.3.5
> at /home/chris/.gem/ruby/1.8, /var/lib/gems/1.8
> 
> Run `rake gems:install` to install the missing gems.
> 
> So when i try to run rake, it craps out. Does anyone know how
> I can
> edit my config so I can get this working again?
> 
> Thanks...Chris
> 
> --
> 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.


-- 
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: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-11 Thread Bradley
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).  Can you explain how this is supposed
to work?  I'm confused as to how Heroku would know that it can forward
this gem fetch request through my tomcat user on my server? (if that's
what's supposed to happen, I'm still pretty confused as to what this
should accomplish)

Thanks,

Brad

On Aug 11, 1:03 am, Matthew Todd  wrote:
> 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 "git push heroku" to deploy.
>
> Cheers,  -- Matthew

-- 
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: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-11 Thread David Balatero
If Bundler is running on Heroku, the Heroku UNIX user account needs to have
its public key in your Github repo as an authorized key.

Each Heroku machine will have a different SSH key generated, and you
non-deterministically deploy to  machine in the Heroku cloud each time
you deploy.

Even if you had a consistent SSH key, it would be insecure for you to add
that key to your public repo, as anyone else deploying to the same machine
as you would be able to download your code repo.

On Wed, Aug 11, 2010 at 5:34 PM, 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).  Can you explain how this is supposed
> to work?  I'm confused as to how Heroku would know that it can forward
> this gem fetch request through my tomcat user on my server? (if that's
> what's supposed to happen, I'm still pretty confused as to what this
> should accomplish)
>
> Thanks,
>
> Brad
>
> On Aug 11, 1:03 am, Matthew Todd  wrote:
> > 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 "git push heroku" to deploy.
> >
> > Cheers,  -- Matthew
>
> --
> 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: Rails 3 doesn't officially support Ruby 1.9.1

2010-08-11 Thread Oren Teich
After Ruby 1.9.2 is available and out of beta/RC etc we will follow up
within a few weeks with support for 1.9.2.  Looking forward to the
1.9.2 release myself.

Oren

On Wed, Aug 11, 2010 at 4:59 PM, Mitchell Hashimoto  wrote:
> Stefan,
>
> Rails 3 doesn't officially support Ruby 1.9.1, and I've found Ruby
> 1.9.1 to be horrendously unstable anyways. Ruby 1.9.2 is in RC stages,
> so a final release should come soon, but there is no sign as to when
> Heroku would support this. I would recommend running Rails 3 on Ruby
> 1.8.7, which is supported, and which I can say from experience works
> great.
>
> Mitchell
>
> On Aug 10, 1:53 am, Stefan Wintermeyer 
> wrote:
>> Hi,
>>
>> just wanted to do a "heroku rake db:migrate" and look what happened. The 
>> current situation with Ruby 1.9.1 on Heroku is a bit disappointing. I really 
>> would like to use Heroku but haven't been able to fire up a single Rails 3 
>> server yet.
>>
>> ---cut---
>> s...@swmbp 0 1.9.2-preview3 gemeinschaft.heroku.com(master)$ heroku rake 
>> db:migrate
>>
>>     Rails 3 doesn't officially support Ruby 1.9.1 since recent stable
>>     releases have segfaulted the test suite. Please upgrade to Ruby 1.9.2
>>     before Rails 3 is released!
>>
>>     You're running
>>       ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-linux]
>>
>> rake aborted!
>> /disk1/home/slugs/209589_ac244c3_4557/mnt/.bundle/gems/ruby/1.9.1/gems/work 
>> flow-0.6.0/lib/workflow.rb:182: Invalid return
>>
>> (See full trace by running task with --trace)
>> (in /disk1/home/slugs/209589_ac244c3_4557/mnt)
>> s...@swmbp 0 1.9.2-preview3 gemeinschaft.heroku.com(master)$
>> ---cut---
>>
>>   Stefan
>>
>> --
>> AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  -->  http://www.amooma.de
>> Geschäftsführer: Stefan Wintermeyer, Handelsregister Montabaur B14998
>>
>> Asterisk 1.6:http://das-asterisk-buch.de
>> Ruby on Rails 3:http://ruby-auf-schienen.de
>> Videos and slides of AMOOCON:http://amoocon.de
>
> --
> 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: Rails 3 doesn't officially support Ruby 1.9.1

2010-08-11 Thread Stefan Wintermeyer
Am 11.08.2010 um 23:43 schrieb Abel Tamayo:
> The best you can do is either find a deployment stack with the specifications 
> you're using or adapt your environment to what is offered by Heroku. I'm 
> checking the documents and it seems that Bamboo MRI supports Ruby 1.9.1.

What I don't get is that it is fine for Heroku to offer Rails 3.0 beta but they 
don't offer Ruby 1.9.2 beta. Even as the Rails-Team says itself that Ruby 1.9.1 
crashes all the time.

I know that time will solve this issue. I was just searching for a solution for 
my current problem. Now I have to host everything myself which I hate. It is 
just the kind of work for which I happily pay a hosting provider for.

  Stefan

-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  -->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister Montabaur B14998

Asterisk 1.6: http://das-asterisk-buch.de
Ruby on Rails 3: http://ruby-auf-schienen.de
Videos and slides of AMOOCON: http://amoocon.de

-- 
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: Rails 3 doesn't officially support Ruby 1.9.1

2010-08-11 Thread Stefan Wintermeyer
Am 12.08.2010 um 01:59 schrieb Mitchell Hashimoto:
> I would recommend running Rails 3 on Ruby
> 1.8.7, which is supported, and which I can say from experience works
> great.

In my experience it doesn't work good enough for environments which need UTF8.

  Stefan

-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  -->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister Montabaur B14998

Asterisk 1.6: http://das-asterisk-buch.de
Ruby on Rails 3: http://ruby-auf-schienen.de
Videos and slides of AMOOCON: http://amoocon.de

-- 
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.