Re: Multiple apps/Same DB

2012-08-24 Thread Carson Gross
Makes sense, I can hack that.

I think a potentially good solution would be to allow sub-domain isolation 
of web workers for an app.  It's a pretty common pattern to split out your 
app along sub-domains (e.g. api.foo.com vs app.foo.com) which have 
different access patterns/performance requirements and need perf isolation 
from one another.  Of course, the devil is in the details and maybe that 
ends up being a terrible idea to implement, but it's exactly what I'd like 
right now.  :)

Thanks,
Carson

On Friday, August 24, 2012 4:55:09 PM UTC-7, Peter van Hardenberg wrote:
>
> We do kinda-sorta support it, but it currently has a limitation in the 
> form that if we ever need to update your DATABASE_URL, we can't tell that 
> you're connecting from two apps and one of them (the non-owning app) will 
> go unupdated. We've got a feature in alpha right now which will resolve 
> this, but I don't believe it's ready for external users yet.
>
> In conclusion: go ahead, but it's grody, and we're hoping it will be 
> better soon.
>
> -p
>
> On Fri, Aug 24, 2012 at 3:27 PM, Carson Gross 
> > wrote:
>
>> Hey Everyone,
>>
>> I'm going to be running two heroku apps with the same backing database (I 
>> want request isolation between the API and the web application so that if I 
>> screw the web application up from a perf perspective it won't back up the 
>> API.)
>>
>> It seems pretty simple to do this:
>>
>>   
>> http://stackoverflow.com/questions/5981508/share-database-between-2-apps-in-heroku
>>
>> and it seems like Heroku kinda-sorta considers it a supported 
>> configuration.
>>
>> Anyone have comments on and/or experience with it?
>>
>> Thanks,
>> Carson
>>  
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Heroku" group.
>>  
>> To unsubscribe from this group, send email to
>> heroku+un...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/heroku?hl=en_US?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Multiple apps/Same DB

2012-08-24 Thread Peter van Hardenberg
We do kinda-sorta support it, but it currently has a limitation in the form
that if we ever need to update your DATABASE_URL, we can't tell that you're
connecting from two apps and one of them (the non-owning app) will go
unupdated. We've got a feature in alpha right now which will resolve this,
but I don't believe it's ready for external users yet.

In conclusion: go ahead, but it's grody, and we're hoping it will be better
soon.

-p

On Fri, Aug 24, 2012 at 3:27 PM, Carson Gross  wrote:

> Hey Everyone,
>
> I'm going to be running two heroku apps with the same backing database (I
> want request isolation between the API and the web application so that if I
> screw the web application up from a perf perspective it won't back up the
> API.)
>
> It seems pretty simple to do this:
>
>
> http://stackoverflow.com/questions/5981508/share-database-between-2-apps-in-heroku
>
> and it seems like Heroku kinda-sorta considers it a supported
> configuration.
>
> Anyone have comments on and/or experience with it?
>
> Thanks,
> Carson
>
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Play 2.0 Build Error [object execution is not a member of package play.api.libs.concurrent]

2012-08-24 Thread Jay
I got this working, thanks.  I created a new build-pack as you suggested.  

If you are having troubles you can look/fork my build-pack 
cainj
/*heroku-buildpack-scala *to 
build with sbt  12.0.  


Jay




-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Multiple apps/Same DB

2012-08-24 Thread Carson Gross
Hey Everyone,

I'm going to be running two heroku apps with the same backing database (I 
want request isolation between the API and the web application so that if I 
screw the web application up from a perf perspective it won't back up the 
API.)

It seems pretty simple to do this:

  
http://stackoverflow.com/questions/5981508/share-database-between-2-apps-in-heroku

and it seems like Heroku kinda-sorta considers it a supported configuration.

Anyone have comments on and/or experience with it?

Thanks,
Carson

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Latest heroku gem

2012-08-24 Thread Keith Rarick
On Fri, Aug 24, 2012 at 4:53 AM, Jeff Schmitz
 wrote:
> So I uninstalled and reinstalled the gem there, which fixed the netrc 
> problem???

If you're using Heroku Toolbelt, there's little reason to use the
heroku gem either inside or outside of a particular app. I'd
suggest uninstalling the heroku gem completely.

> $ heroku run script/console --app scholaric
> ...
> Any ideas?

The `heroku run` command should be the same as what you use
locally to get a rails console. With recent versions of rails, I believe
this is usually `rails console`. So try:

$ heroku run --app scholaric rails console

> where is script/console running in the above command?

You can answer this question (and many others) by running:

$ heroku run --app scholaric bash

and then poking around. For example:

$ heroku run --app randompizza bash
Running `bash` attached to terminal... up, run.1
~ $ pwd
/app
~ $ ls
Procfile  bin  public

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Resizing images on Amazon S3 from Heroku

2012-08-24 Thread m...@bolser.co.uk
Thanks Stephen - it's good to know imagemagick is available and supported.

I've also had a couple of people confirm that my suggested approach is fine 
and *won't* incur Amazon data transfer fees.

Mike

On Friday, August 24, 2012 8:33:46 AM UTC+1, Stephen wrote:
>
> Hi Mike
>
> I have ImageMagick running on Heroku for my website. Only admins can post 
> images, and it can take over a dyno, so it's not a perfect solution. I use 
> it with Mark Evans' excellent Rack-based Dragonfly gem that scales my 
> images on the fly.
>
> Details for setting up Dragonfly on Heroku-based applications is here:
> http://markevans.github.com/dragonfly/file.Heroku.html
>
> I simply reference the Dragonfly gem in my Gemfile, and there's no mention 
> of ImageMagic (or similar) in my Gemfile.lock file, so I guess in 
> development it just uses the Homebrew-installed version on my MacBook and 
> Heroku's own pre-installed ImageMagic in production.
>
> I do reference ImageMagic in my configuration settings for Dragonfly in my 
> Initializers directory, instructions here:
> http://markevans.github.com/dragonfly/file.ImageMagick.html
>
> For alternatives, there are two "image processing in the cloud" add-ons 
> for Heroku, Blitline and Cloudinary. And some other online services too.
>
> But I've been pretty happy with Dragonfly and how I can easily copy down 
> my originally-formatted images from Amazon S3 to my laptop and still 
> display them in development mode when I'm offline and demonstrating my 
> website.
>
> I think Dragonfly, Blitline and Cloudinary all have documention for 
> dealing with images that are already in S3.
>
> Stephen
>
>
> On 23 August 2012 23:32, mi...@bolser.co.uk  <
> mi...@bolser.co.uk > wrote:
>
>> Hi all
>>
>>
>>- I have lots of JPEG images in an Amazon S3 bucket.
>>- I have a Rails app running on Heroku, which knows the filenames of 
>>the images.
>>- The rails app is not responsible for uploading the files to S3. In 
>>fact, it's the other way round: the file is POSTed to S3, which then 
>>informs the Rails app of the file name via a success_action_redirect as 
>>per http://aws.amazon.com/articles/1434/ 
>>
>> *The Rails app requires greyscale, thumbnail copies of the images.* So 
>> I'm thinking about writing a rake task within the Rails app to produce the 
>> copies.
>>
>> My questions are:
>>
>>1. Is Imagemagick available and supported on Heroku?
>>2. If so, is there any documentation on how to use Imagemagick on 
>>Heroku?
>>3. If so, do I have to pull down the file from S3 to a tmp directory, 
>>make the copy then upload back to S3? 
>>4. 
>>
>>If so, would I incur Amazon S3 data transfer fees?
>>
>>or...
>>5. 
>>
>>Is there a better way? :)
>>
>> Thanks!
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Heroku" group.
>>  
>> To unsubscribe from this group, send email to
>> heroku+un...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/heroku?hl=en_US?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Latest heroku gem

2012-08-24 Thread Jeff Schmitz
In theory, it should be heroku run rails console for rails 3 and heroku run
script/console for 2.3

On Fri, Aug 24, 2012 at 10:36 AM, vincent daubry  wrote:

> Same problem here after updating heroku toolbelt  :
>
> $ heroku console
> `heroku console` is now deprecated. Please use `heroku run` to run a
> console: http://bit.ly/NlhGxl.
>
> $ heroku run console
> Running `console` attached to terminal... up, run.1
> bash: console: command not found
>
>
> same problem with 'heroku run -a myappname rails console'
>
>
> Le vendredi 24 août 2012 15:03:55 UTC+2, Ed Jones a écrit :
>
>> Well, then I guess I'm glad I didn't upgrade my toolbelt yesterday when
>> my app crashed!
>>
>> (Of course I'm on cedar)
>>
>>
>>
>>
>>
>> On Friday, August 24, 2012 8:24:45 AM UTC-4, iamtheschmitzer wrote:
>>>
>>> $ heroku run console --app scholaric
>>> Running `console` attached to terminal... up, run.1
>>> bash: console: command not found
>>>
>>>
>>> On Fri, Aug 24, 2012 at 7:17 AM, Ed Jones  wrote:
>>>
 Did you just try
 $ heroku run console
 That's how it works on Cedar 3.2.x



 On Friday, August 24, 2012 7:53:00 AM UTC-4, iamtheschmitzer wrote:
>
> heroku update caused be netrc issues, so I got the toolbelt last night.
>
> A problem:
>
> This is installed as a package, so when I cd to my project dir, rvm is
> running its own version of heroku gem, which has the issue I started with.
>  So I uninstalled and reinstalled the gem there, which fixed the netrc
> problem???
>
> I guess heroku update does not fix any new dependencies.
>
> Now, though, I can't run a console (bamboo/rails 2.3.11) the "right"
> way
>
> $ heroku console --app scholaric
>
> `heroku console` is now deprecated. Please use `heroku run` to run a
> console: http://bit.ly/NlhGxl.
>
> Ruby console for scholaric.heroku.com
> >>
>
> So reading the link, I try the right way:
>
> $ heroku run script/console --app scholaric
> Running `script/console` attached to terminal... up, run.1
> :29:in `require': no such
> file to load -- script/../config/boot (LoadError)
> from :29:in `require'
>  from script/console:2:in `'
>
> where is script/console running in the above command?
>
> IRB works:
>
> $ heroku run irb --app scholaric
> Running `irb` attached to terminal... up, run.1
> irb(main):001:0> exit
>
>
> Any ideas?
>
>   --
 You received this message because you are subscribed to the Google
 Groups "Heroku" group.

 To unsubscribe from this group, send email to
 heroku+un...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/heroku?hl=en_US?hl=en

>>>
>>>  --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Play 2.0 Build Error [object execution is not a member of package play.api.libs.concurrent]

2012-08-24 Thread Jay
I forked the buildpack for 0.12 and changed the following line in compile 

SBT_JAR="sbt-launch-0.11.3.2.jar" =>   SBT_JAR="sbt-launch-0.12.0.jar"

and still had no success.  Obviously, not the correct change.  How do I 
configure my custom build-pack to use sbt 0.12.0?

Jay 


On Monday, August 20, 2012 8:38:06 AM UTC-6, James Ward wrote:
>
> Play 2 doesn't usually have a modules directory. 
>
> Yes, Heroku pulls the sbt-plugin from the plugins.sbt file.  You can 
> simulate it with: 
> sbt stage 
>
> (Which should do the same thing as play stage.) 
>
> It is possible though that this is an sbt version problem because Heroku 
> uses sbt 0.11.3 and I think Play 2.1 may be bumping to 0.12.  You could 
> fork the buildpack for 0.12: 
> https://github.com/heroku/heroku-buildpack-scala 
>
> -James 
>
>
> On 08/20/2012 08:14 AM, Jay wrote: 
> > I was reading a post and it mentioned to .gitignore the "modules" 
> > directory.  I have my modules directory in the repo, is this my problem? 
> > 
> > On Saturday, August 18, 2012 9:52:53 PM UTC-6, Jay wrote: 
> > 
> > Tried clearing out the ivy cache, still no success. 
> > 
> > java version "1.6.0_33" 
> > Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) 
> > Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) 
> > 
> > 
> > Does heroku pull the play version from the plugins.sbt file? 
> > 
> > plugins.sbt 
> >  
> > logLevel := Level.Warn 
> > 
> > resolvers ++= Seq( 
> >  "Typesafe repository" at 
> > "http://repo.typesafe.com/typesafe/releases/ 
> > ", 
> >  Resolver.url("Typesafe ivy-snapshots", 
> >  url("http://repo.typesafe.com/typesafe/ivy-snapshots 
> > 
> > "))(Resolver.ivyStylePatterns),
> >  
>
> >  "Typesafe snapshots" at 
> > "http://repo.typesafe.com/typesafe/snapshots 
> > " 
> > ) 
> > 
> > // Use the Play sbt plugin for Play projects 
> > addSbtPlugin("play" % "sbt-plugin" % "2.1-SNAPSHOT") 
> > 
> > 
> > 
> > 
> > On Saturday, August 18, 2012 2:31:14 PM UTC-6, James Ward wrote: 
> > 
> > Hmmm...  Possibly a different snapshot version or a different 
> > JDK version. 
> > 
> > Make sure you are using JDK 6 locally and clear out your local 
> ivy 
> > cache, then run "play stage" again. 
> > 
> > -James 
> > 
> > 
> > On 08/18/2012 11:05 AM, Jay wrote: 
> >  > Thanks for the quick response. 
> >  > 
> >  > It runs local with 'play stage'. 
> >  > 
> >  > My repos are the following: 
> >  > resolvers += "Apache Snapshot repository" at 
> >  > 
> > "https://repository.apache.org/content/repositories/snapshots/ 
> > ", 
>
> >  > resolvers += "t2v.jp  repo" at 
> > "http://www.t2v.jp/maven-repo/";, 
> >  > resolvers += "Spy Repository" at 
> > "http://files.couchbase.com/maven2 
> > " 
> >  > 
> >  > 
> >  > On Saturday, August 18, 2012 9:00:21 AM UTC-6, James Ward 
> wrote: 
> >  > 
> >  > Can you reproduce this locally by running: 
> >  > play stage 
> >  > 
> >  > Is the snapshot build being downloaded from a remote 
> repo? 
> >  > 
> >  > -James 
> >  > 
> >  > 
> >  > On 08/18/2012 08:46 AM, Jay wrote: 
> >  >  > Hello, 
> >  >  > 
> >  >  > I'm trying to push my code to Heroku, but I'm running 
> > into the 
> >  > following 
> >  >  > issue: 
> >  >  > 
> >  >  > 
> > /tmp/build_gzxih7dftrne/app/controllers/Application.scala:16: 
> > object 
> >  >  > execution is not a member of package 
> > play.api.libs.concurrent 
> >  >  >  [error] import 
> >  > play.api.libs.concurrent.execution.defaultContext 
> >  >  > 
> >  >  > Currently, using Play-2.1-SNAPSHOT and trying to use 
> > play's Async 
> >  >  > design.  I'm not sure what's going on here. 
> >  >  > 
> >  >  > Thanks 
> >  >  > 
> >  >  > Jay 
> >  >  > 
> >  >  > -- 
> >  >  > You received this message because you are subscribed 
> > to the Google 
> >  >  > Groups "Heroku" group. 
> >  >  > 
> >  >  > To unsubscribe from this group, send email to 
> >  >  > heroku+un...@googlegroups.com  
> >  >  > For more options, visit this group at 
> >  > 

Re: Latest heroku gem

2012-08-24 Thread vincent daubry
Same problem here after updating heroku toolbelt  :

$ heroku console
`heroku console` is now deprecated. Please use `heroku run` to run a 
console: http://bit.ly/NlhGxl.

$ heroku run console
Running `console` attached to terminal... up, run.1
bash: console: command not found


same problem with 'heroku run -a myappname rails console'


Le vendredi 24 août 2012 15:03:55 UTC+2, Ed Jones a écrit :
>
> Well, then I guess I'm glad I didn't upgrade my toolbelt yesterday when my 
> app crashed!
>
> (Of course I'm on cedar)
>
>
>
>
>
> On Friday, August 24, 2012 8:24:45 AM UTC-4, iamtheschmitzer wrote:
>>
>> $ heroku run console --app scholaric
>> Running `console` attached to terminal... up, run.1
>> bash: console: command not found
>>
>>
>> On Fri, Aug 24, 2012 at 7:17 AM, Ed Jones  wrote:
>>
>>> Did you just try 
>>> $ heroku run console
>>> That's how it works on Cedar 3.2.x
>>>
>>>
>>>
>>> On Friday, August 24, 2012 7:53:00 AM UTC-4, iamtheschmitzer wrote:

 heroku update caused be netrc issues, so I got the toolbelt last night.

 A problem:

 This is installed as a package, so when I cd to my project dir, rvm is 
 running its own version of heroku gem, which has the issue I started with. 
  So I uninstalled and reinstalled the gem there, which fixed the netrc 
 problem??? 

 I guess heroku update does not fix any new dependencies.

 Now, though, I can't run a console (bamboo/rails 2.3.11) the "right" way

 $ heroku console --app scholaric

 `heroku console` is now deprecated. Please use `heroku run` to run a 
 console: http://bit.ly/NlhGxl.

 Ruby console for scholaric.heroku.com
 >>

 So reading the link, I try the right way:

 $ heroku run script/console --app scholaric
 Running `script/console` attached to terminal... up, run.1
 :29:in `require': no such file 
 to load -- script/../config/boot (LoadError)
 from :29:in `require'
  from script/console:2:in `'

 where is script/console running in the above command?

 IRB works:

 $ heroku run irb --app scholaric
 Running `irb` attached to terminal... up, run.1
 irb(main):001:0> exit


 Any ideas?

   -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Heroku" group.
>>>  
>>> To unsubscribe from this group, send email to
>>> heroku+un...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/heroku?hl=en_US?hl=en
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Error in the heroku/django tutorial raise ImproperlyConfigured("You need to specify NAME in your Django settings file.") django.core.exceptions.ImproperlyConfigured: You need to specify NAME i

2012-08-24 Thread Victor Vorski
you need to do:

% heroku pg:promote HEROKU_POSTGRESQL_BLUE

to make sure that your DATABASE_URL is set.

>
>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Latest heroku gem

2012-08-24 Thread Ed Jones
Well, then I guess I'm glad I didn't upgrade my toolbelt yesterday when my 
app crashed!

(Of course I'm on cedar)





On Friday, August 24, 2012 8:24:45 AM UTC-4, iamtheschmitzer wrote:
>
> $ heroku run console --app scholaric
> Running `console` attached to terminal... up, run.1
> bash: console: command not found
>
>
> On Fri, Aug 24, 2012 at 7:17 AM, Ed Jones 
> > wrote:
>
>> Did you just try 
>> $ heroku run console
>> That's how it works on Cedar 3.2.x
>>
>>
>>
>> On Friday, August 24, 2012 7:53:00 AM UTC-4, iamtheschmitzer wrote:
>>>
>>> heroku update caused be netrc issues, so I got the toolbelt last night.
>>>
>>> A problem:
>>>
>>> This is installed as a package, so when I cd to my project dir, rvm is 
>>> running its own version of heroku gem, which has the issue I started with. 
>>>  So I uninstalled and reinstalled the gem there, which fixed the netrc 
>>> problem??? 
>>>
>>> I guess heroku update does not fix any new dependencies.
>>>
>>> Now, though, I can't run a console (bamboo/rails 2.3.11) the "right" way
>>>
>>> $ heroku console --app scholaric
>>>
>>> `heroku console` is now deprecated. Please use `heroku run` to run a 
>>> console: http://bit.ly/NlhGxl.
>>>
>>> Ruby console for scholaric.heroku.com
>>> >>
>>>
>>> So reading the link, I try the right way:
>>>
>>> $ heroku run script/console --app scholaric
>>> Running `script/console` attached to terminal... up, run.1
>>> :29:in `require': no such file 
>>> to load -- script/../config/boot (LoadError)
>>> from :29:in `require'
>>>  from script/console:2:in `'
>>>
>>> where is script/console running in the above command?
>>>
>>> IRB works:
>>>
>>> $ heroku run irb --app scholaric
>>> Running `irb` attached to terminal... up, run.1
>>> irb(main):001:0> exit
>>>
>>>
>>> Any ideas?
>>>
>>>   -- 
>> You received this message because you are subscribed to the Google
>> Groups "Heroku" group.
>>  
>> To unsubscribe from this group, send email to
>> heroku+un...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/heroku?hl=en_US?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Latest heroku gem

2012-08-24 Thread Jeff Schmitz
$ heroku run console --app scholaric
Running `console` attached to terminal... up, run.1
bash: console: command not found


On Fri, Aug 24, 2012 at 7:17 AM, Ed Jones  wrote:

> Did you just try
> $ heroku run console
> That's how it works on Cedar 3.2.x
>
>
>
> On Friday, August 24, 2012 7:53:00 AM UTC-4, iamtheschmitzer wrote:
>>
>> heroku update caused be netrc issues, so I got the toolbelt last night.
>>
>> A problem:
>>
>> This is installed as a package, so when I cd to my project dir, rvm is
>> running its own version of heroku gem, which has the issue I started with.
>>  So I uninstalled and reinstalled the gem there, which fixed the netrc
>> problem???
>>
>> I guess heroku update does not fix any new dependencies.
>>
>> Now, though, I can't run a console (bamboo/rails 2.3.11) the "right" way
>>
>> $ heroku console --app scholaric
>>
>> `heroku console` is now deprecated. Please use `heroku run` to run a
>> console: http://bit.ly/NlhGxl.
>>
>> Ruby console for scholaric.heroku.com
>> >>
>>
>> So reading the link, I try the right way:
>>
>> $ heroku run script/console --app scholaric
>> Running `script/console` attached to terminal... up, run.1
>> :29:in `require': no such file
>> to load -- script/../config/boot (LoadError)
>> from :29:in `require'
>>  from script/console:2:in `'
>>
>> where is script/console running in the above command?
>>
>> IRB works:
>>
>> $ heroku run irb --app scholaric
>> Running `irb` attached to terminal... up, run.1
>> irb(main):001:0> exit
>>
>>
>> Any ideas?
>>
>>   --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Latest heroku gem

2012-08-24 Thread Ed Jones
Did you just try 
$ heroku run console
That's how it works on Cedar 3.2.x


On Friday, August 24, 2012 7:53:00 AM UTC-4, iamtheschmitzer wrote:
>
> heroku update caused be netrc issues, so I got the toolbelt last night.
>
> A problem:
>
> This is installed as a package, so when I cd to my project dir, rvm is 
> running its own version of heroku gem, which has the issue I started with. 
>  So I uninstalled and reinstalled the gem there, which fixed the netrc 
> problem??? 
>
> I guess heroku update does not fix any new dependencies.
>
> Now, though, I can't run a console (bamboo/rails 2.3.11) the "right" way
>
> $ heroku console --app scholaric
>
> `heroku console` is now deprecated. Please use `heroku run` to run a 
> console: http://bit.ly/NlhGxl.
>
> Ruby console for scholaric.heroku.com
> >>
>
> So reading the link, I try the right way:
>
> $ heroku run script/console --app scholaric
> Running `script/console` attached to terminal... up, run.1
> :29:in `require': no such file to 
> load -- script/../config/boot (LoadError)
> from :29:in `require'
>  from script/console:2:in `'
>
> where is script/console running in the above command?
>
> IRB works:
>
> $ heroku run irb --app scholaric
> Running `irb` attached to terminal... up, run.1
> irb(main):001:0> exit
>
>
> Any ideas?
>
>  

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Latest heroku gem

2012-08-24 Thread Jeff Schmitz
heroku update caused be netrc issues, so I got the toolbelt last night.

A problem:

This is installed as a package, so when I cd to my project dir, rvm is
running its own version of heroku gem, which has the issue I started with.
 So I uninstalled and reinstalled the gem there, which fixed the netrc
problem???

I guess heroku update does not fix any new dependencies.

Now, though, I can't run a console (bamboo/rails 2.3.11) the "right" way

$ heroku console --app scholaric

`heroku console` is now deprecated. Please use `heroku run` to run a
console: http://bit.ly/NlhGxl.

Ruby console for scholaric.heroku.com
>>

So reading the link, I try the right way:

$ heroku run script/console --app scholaric
Running `script/console` attached to terminal... up, run.1
:29:in `require': no such file to
load -- script/../config/boot (LoadError)
from :29:in `require'
from script/console:2:in `'

where is script/console running in the above command?

IRB works:

$ heroku run irb --app scholaric
Running `irb` attached to terminal... up, run.1
irb(main):001:0> exit


Any ideas?

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Trouble configuring database with new Django app

2012-08-24 Thread Victor Vorski
I used the solution 
from: 
http://stackoverflow.com/questions/11071579/heroku-database-settings-injection-how-do-i-setup-my-dev-django-database/11072426#11072426

in .profile set:
export HEROKU_LOCAL_DEV=true # used to sel

in setthings.py:

import dj_database_url

import os

DATABASES = {'default': dj_database_url.config(default=
'postgres://localhost')}


if bool(os.environ.get('HEROKU_LOCAL_DEV', False)):

DATABASES = {

'default': {

'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 
'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.

'NAME': 'htest1',  # Or path to database 
file if using sqlite3.

'USER': '',  # Not used with sqlite3.

'PASSWORD': '',  # Not used with sqlite3.

'HOST': '',  # Set to empty string for 
localhost. Not used with sqlite3.

'PORT': '',  # Set to empty string for 
default. Not used with sqlite3.

}

}

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Trouble configuring database with new Django app

2012-08-24 Thread Victor Vorski
Some information here:
http://stackoverflow.com/questions/11071579/heroku-database-settings-injection-how-do-i-setup-my-dev-django-database

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Resizing images on Amazon S3 from Heroku

2012-08-24 Thread Stephen Cremin
Hi Mike

I have ImageMagick running on Heroku for my website. Only admins can post
images, and it can take over a dyno, so it's not a perfect solution. I use
it with Mark Evans' excellent Rack-based Dragonfly gem that scales my
images on the fly.

Details for setting up Dragonfly on Heroku-based applications is here:
http://markevans.github.com/dragonfly/file.Heroku.html

I simply reference the Dragonfly gem in my Gemfile, and there's no mention
of ImageMagic (or similar) in my Gemfile.lock file, so I guess in
development it just uses the Homebrew-installed version on my MacBook and
Heroku's own pre-installed ImageMagic in production.

I do reference ImageMagic in my configuration settings for Dragonfly in my
Initializers directory, instructions here:
http://markevans.github.com/dragonfly/file.ImageMagick.html

For alternatives, there are two "image processing in the cloud" add-ons for
Heroku, Blitline and Cloudinary. And some other online services too.

But I've been pretty happy with Dragonfly and how I can easily copy down my
originally-formatted images from Amazon S3 to my laptop and still display
them in development mode when I'm offline and demonstrating my website.

I think Dragonfly, Blitline and Cloudinary all have documention for dealing
with images that are already in S3.

Stephen


On 23 August 2012 23:32, m...@bolser.co.uk  wrote:

> Hi all
>
>
>- I have lots of JPEG images in an Amazon S3 bucket.
>- I have a Rails app running on Heroku, which knows the filenames of
>the images.
>- The rails app is not responsible for uploading the files to S3. In
>fact, it's the other way round: the file is POSTed to S3, which then
>informs the Rails app of the file name via a success_action_redirect as
>per http://aws.amazon.com/articles/1434/
>
> *The Rails app requires greyscale, thumbnail copies of the images.* So
> I'm thinking about writing a rake task within the Rails app to produce the
> copies.
>
> My questions are:
>
>1. Is Imagemagick available and supported on Heroku?
>2. If so, is there any documentation on how to use Imagemagick on
>Heroku?
>3. If so, do I have to pull down the file from S3 to a tmp directory,
>make the copy then upload back to S3?
>4.
>
>If so, would I incur Amazon S3 data transfer fees?
>
>or...
>5.
>
>Is there a better way? :)
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en