Re: error installing heroku gem (ruby 1.9 / mac os x)

2010-01-08 Thread David Dollar
Anyone using Ruby 1.9 feeling adventurous?

Clone git://github.com/heroku/heroku.git, run rake spec, and let me
know if you're green or not.

- David

On Fri, Jan 8, 2010 at 12:24 PM, Devyn Cairns  wrote:
> Why can't you guys just give an option in the app config for the Ruby
> version? We can already set gem versions for the app in the .gems manifest.
> Doesn't this make sense?
> Just my two cents.
>
> --
>   ~devyn
> --
> 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: Accidental 'heroku db:reset'

2010-01-08 Thread Ryan Heneise
> I suppose you could probably alias the command out in your .bashrc file or
> something.

Carl - great idea.

I'm actually more worried about accidentally doing 'heroku db:push' -
as this would pretty much do the same thing as db:reset, just without
the scary prompt (I think - I'm not going to try it right now).


On Jan 8, 9:14 pm, Carl Anderson  wrote:
> I suppose you could probably alias the command out in your .bashrc file or
> something.
>
> Carl
>
>
>
> On Fri, Jan 8, 2010 at 6:05 PM, David Dollar  wrote:
> > With db:reset you get a scary prompt asking you if you're sure. This
> > is a good suggestion though.
>
> > - David
>
> > On Fri, Jan 8, 2010 at 9:00 PM, Ryan Heneise  wrote:
> > > I should have put "PREVENTING accidental 'heroku db:reset'" - no, I
> > > haven't done this yet. But I have nightmares about it.
>
> > > On Jan 8, 8:59 pm, Ryan Heneise  wrote:
> > >> I was wondering if there's a way to turn off 'heroku db:push', or some
> > >> way to obscure the command. The reason I'm asking is because I am
> > >> deploying a second app to Heroku, and I was just thinking to myself,
> > >> gosh, if I accidentally typed 'heroku db:push' or 'heroku db:reset' on
> > >> my other app, all my data would be toast.
>
> > >> So is there a way to turn that feature off, or keep that from
> > >> happening?
>
> > > --
> > > 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: Accidental 'heroku db:reset'

2010-01-08 Thread Carl Anderson
I suppose you could probably alias the command out in your .bashrc file or
something.

Carl

On Fri, Jan 8, 2010 at 6:05 PM, David Dollar  wrote:

> With db:reset you get a scary prompt asking you if you're sure. This
> is a good suggestion though.
>
> - David
>
> On Fri, Jan 8, 2010 at 9:00 PM, Ryan Heneise  wrote:
> > I should have put "PREVENTING accidental 'heroku db:reset'" - no, I
> > haven't done this yet. But I have nightmares about it.
> >
> > On Jan 8, 8:59 pm, Ryan Heneise  wrote:
> >> I was wondering if there's a way to turn off 'heroku db:push', or some
> >> way to obscure the command. The reason I'm asking is because I am
> >> deploying a second app to Heroku, and I was just thinking to myself,
> >> gosh, if I accidentally typed 'heroku db:push' or 'heroku db:reset' on
> >> my other app, all my data would be toast.
> >>
> >> So is there a way to turn that feature off, or keep that from
> >> happening?
> >
> > --
> > 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: Accidental 'heroku db:reset'

2010-01-08 Thread David Dollar
With db:reset you get a scary prompt asking you if you're sure. This
is a good suggestion though.

- David

On Fri, Jan 8, 2010 at 9:00 PM, Ryan Heneise  wrote:
> I should have put "PREVENTING accidental 'heroku db:reset'" - no, I
> haven't done this yet. But I have nightmares about it.
>
> On Jan 8, 8:59 pm, Ryan Heneise  wrote:
>> I was wondering if there's a way to turn off 'heroku db:push', or some
>> way to obscure the command. The reason I'm asking is because I am
>> deploying a second app to Heroku, and I was just thinking to myself,
>> gosh, if I accidentally typed 'heroku db:push' or 'heroku db:reset' on
>> my other app, all my data would be toast.
>>
>> So is there a way to turn that feature off, or keep that from
>> happening?
>
> --
> 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: Accidental 'heroku db:reset'

2010-01-08 Thread Yuri Niyazov
(Disclaimer: i don't work for Heroku) 

Ryan - I haven't seen any such feature, but you could just read the heroku gem 
source code and comment out those parts of the code that actually do the 
db:push if you are that paranoid

On Jan 8, 2010, at 9:00 PM, Ryan Heneise wrote:

> I should have put "PREVENTING accidental 'heroku db:reset'" - no, I
> haven't done this yet. But I have nightmares about it.
> 
> On Jan 8, 8:59 pm, Ryan Heneise  wrote:
>> I was wondering if there's a way to turn off 'heroku db:push', or some
>> way to obscure the command. The reason I'm asking is because I am
>> deploying a second app to Heroku, and I was just thinking to myself,
>> gosh, if I accidentally typed 'heroku db:push' or 'heroku db:reset' on
>> my other app, all my data would be toast.
>> 
>> So is there a way to turn that feature off, or keep that from
>> happening?
> -- 
> 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: Accidental 'heroku db:reset'

2010-01-08 Thread Ryan Heneise
I should have put "PREVENTING accidental 'heroku db:reset'" - no, I
haven't done this yet. But I have nightmares about it.

On Jan 8, 8:59 pm, Ryan Heneise  wrote:
> I was wondering if there's a way to turn off 'heroku db:push', or some
> way to obscure the command. The reason I'm asking is because I am
> deploying a second app to Heroku, and I was just thinking to myself,
> gosh, if I accidentally typed 'heroku db:push' or 'heroku db:reset' on
> my other app, all my data would be toast.
>
> So is there a way to turn that feature off, or keep that from
> happening?
-- 
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.




Accidental 'heroku db:reset'

2010-01-08 Thread Ryan Heneise
I was wondering if there's a way to turn off 'heroku db:push', or some
way to obscure the command. The reason I'm asking is because I am
deploying a second app to Heroku, and I was just thinking to myself,
gosh, if I accidentally typed 'heroku db:push' or 'heroku db:reset' on
my other app, all my data would be toast.

So is there a way to turn that feature off, or keep that from
happening?
-- 
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: Upload file and process in DJ

2010-01-08 Thread Ryan Heneise
> So, wouldn't I have the same issue with DJ and my process exceeding
> 30s?

What I've been doing is storing the files on S3, and then pulling them
down to the tmp directory on demand when my DJ process requests them.
All you have to do to copy a file from S3 to tmp (with Paperclip) is:
@model_with_attachment.file.to_file

You could then open it for processing with:
File.read(@model_with_attachment.file.to_file)

Then you can delete the file from S3 when you're done with it.

The best thing about using S3 is that you'll always know exactly where
the file is, no matter which DJ process is using it.


On Jan 8, 2:19 pm, Karl  wrote:
> On Jan 8, 12:10 pm, David Dollar  wrote:
>
> > This wouldn't work on Heroku because even though it's in a different
> > thread it's still the same request, and we only allow requests to go
> > for 30s. This would tie up your dyno for the background request.
>
> So, wouldn't I have the same issue with DJ and my process exceeding
> 30s?
>
> BTW, when I have run this processing within the current request, and
> it has exceeded 30s, I have not seen any errors or issues. Everything
> appears to processed successfully.
-- 
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: Default rails landing page won't go away.

2010-01-08 Thread Devyn Cairns
Yeah, it's best to turn off caching while doing development. The easiest way
to do this is

# app/controllers/application_controller.rb
class ApplicationController # blah blah blah
# blah blah blah
after_filter :set_no_cache
private
def set_no_cache
headers['Cache-Control'] = 'no-cache'
end
end

On Fri, Jan 8, 2010 at 10:51 AM, Carl Anderson  wrote:

> You may also need to try:
>
> heroku restart
>
> I had the same problem a while back and once I restarted the server it
> fixed the problem. I'm wondering if the index page was cache in Varnish
> perhaps?
>
> Carl
>
>
> On Fri, Jan 8, 2010 at 10:46 AM, David Dollar  wrote:
>
>> Try the following
>>
>> git rm public/index.html
>> git commit -m "remove default index page"
>> git push heroku
>>
>> - David
>>
>> On Fri, Jan 8, 2010 at 9:15 AM, JGrubb 
>> wrote:
>> > I'm a complete and utter nooby, though not so new that I haven't run a
>> > search or five on this list to find if anyone else is having this
>> > problem.
>> >
>> > I'm getting my feet wet with Heroku, Rails, and Git all at the same
>> > time.  I've got a couple of little projects going, each of which have
>> > had the standard index.html deleted and the map.root =>
>> > 'where_I_want_it_to_go', but for some reason, upon visiting the root
>> > URL of my apps in Heroku, the Welcome to Rails page shows up.
>> > Needless to say it works fine locally.
>> >
>> > The weirder thing is that my very first project was a blog that I
>> > pushed up about 2 weeks ago.  The landing page has since disappeared
>> > on it's own without any intervention on my part (that I can
>> > remember).
>> >
>> > What am I doing wrong?
>> >
>> > thanks, all...
>> >
>> > John
>> >
>> > --
>> > 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.
>
>


-- 
   ~devyn
-- 

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: Upload file and process in DJ

2010-01-08 Thread Karl
On Jan 8, 12:10 pm, David Dollar  wrote:
> This wouldn't work on Heroku because even though it's in a different
> thread it's still the same request, and we only allow requests to go
> for 30s. This would tie up your dyno for the background request.

So, wouldn't I have the same issue with DJ and my process exceeding
30s?

BTW, when I have run this processing within the current request, and
it has exceeded 30s, I have not seen any errors or issues. Everything
appears to processed successfully.
-- 
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: Upload file and process in DJ

2010-01-08 Thread David Dollar
This wouldn't work on Heroku because even though it's in a different
thread it's still the same request, and we only allow requests to go
for 30s. This would tie up your dyno for the background request.

- David

On Fri, Jan 8, 2010 at 2:08 PM, Karl  wrote:
> On rufus-scheduler, it looks like it simply creates a new ruby thread:
>
> class PlainScheduler < SchedulerCore
>    def start
>     �...@thread = Thread.new do
>        loop do
>          sleep(@frequency)
>          self.step
>        end
>      end
>    end
> end
>
> Would this remain on the same dyno as the initializer?
>
> --
> 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: Upload file and process in DJ

2010-01-08 Thread Karl
On rufus-scheduler, it looks like it simply creates a new ruby thread:

class PlainScheduler < SchedulerCore
def start
  @thread = Thread.new do
loop do
  sleep(@frequency)
  self.step
end
  end
end
end

Would this remain on the same dyno as the initializer?
-- 
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: Upload file and process in DJ

2010-01-08 Thread Karl
On Jan 8, 11:48 am, David Dollar  wrote:
> Maybe, but there's no guarantee of that. The dyno that received the
> request may be running on a totally different server than the worker
> that processes it. In this case, you should upload the file to S3,
> then download from S3 in the worker for processing.

Thanks David.

Do you know if rufus-scheduler would spawn the background process on
the same dyno?
-- 
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: Default rails landing page won't go away.

2010-01-08 Thread Carl Anderson
You may also need to try:

heroku restart

I had the same problem a while back and once I restarted the server it fixed
the problem. I'm wondering if the index page was cache in Varnish perhaps?

Carl

On Fri, Jan 8, 2010 at 10:46 AM, David Dollar  wrote:

> Try the following
>
> git rm public/index.html
> git commit -m "remove default index page"
> git push heroku
>
> - David
>
> On Fri, Jan 8, 2010 at 9:15 AM, JGrubb 
> wrote:
> > I'm a complete and utter nooby, though not so new that I haven't run a
> > search or five on this list to find if anyone else is having this
> > problem.
> >
> > I'm getting my feet wet with Heroku, Rails, and Git all at the same
> > time.  I've got a couple of little projects going, each of which have
> > had the standard index.html deleted and the map.root =>
> > 'where_I_want_it_to_go', but for some reason, upon visiting the root
> > URL of my apps in Heroku, the Welcome to Rails page shows up.
> > Needless to say it works fine locally.
> >
> > The weirder thing is that my very first project was a blog that I
> > pushed up about 2 weeks ago.  The landing page has since disappeared
> > on it's own without any intervention on my part (that I can
> > remember).
> >
> > What am I doing wrong?
> >
> > thanks, all...
> >
> > John
> >
> > --
> > 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: Upload file and process in DJ

2010-01-08 Thread David Dollar
Maybe, but there's no guarantee of that. The dyno that received the
request may be running on a totally different server than the worker
that processes it. In this case, you should upload the file to S3,
then download from S3 in the worker for processing.

Hope this helps,
David

On Fri, Jan 8, 2010 at 1:37 PM, Karl  wrote:
> My app uploads a file (via paperclip), and saves the file in
> ":rails_root/tmp/:id/:basename.:extension". Works perfectly.
>
> After the file is successfully received and saved in tmp, I need to
> run a script on it that may take 30-60 seconds. For now I just process
> this within the current request cycle.
>
> I know that files stored in tmp will, eventually, be deleted. In my
> case, I *want* them to be deleted, after they are processed.
>
>
> If I wanted to use Delayed Job to process this file, will DJ still
> find the file as it is saved in tmp? Consider that the file should be
> processed immediately after it is uploaded, there is no need to wait
> for some time in the future.
>
> --
> 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: Default rails landing page won't go away.

2010-01-08 Thread David Dollar
Try the following

git rm public/index.html
git commit -m "remove default index page"
git push heroku

- David

On Fri, Jan 8, 2010 at 9:15 AM, JGrubb  wrote:
> I'm a complete and utter nooby, though not so new that I haven't run a
> search or five on this list to find if anyone else is having this
> problem.
>
> I'm getting my feet wet with Heroku, Rails, and Git all at the same
> time.  I've got a couple of little projects going, each of which have
> had the standard index.html deleted and the map.root =>
> 'where_I_want_it_to_go', but for some reason, upon visiting the root
> URL of my apps in Heroku, the Welcome to Rails page shows up.
> Needless to say it works fine locally.
>
> The weirder thing is that my very first project was a blog that I
> pushed up about 2 weeks ago.  The landing page has since disappeared
> on it's own without any intervention on my part (that I can
> remember).
>
> What am I doing wrong?
>
> thanks, all...
>
> John
>
> --
> 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.




Default rails landing page won't go away.

2010-01-08 Thread JGrubb
I'm a complete and utter nooby, though not so new that I haven't run a
search or five on this list to find if anyone else is having this
problem.

I'm getting my feet wet with Heroku, Rails, and Git all at the same
time.  I've got a couple of little projects going, each of which have
had the standard index.html deleted and the map.root =>
'where_I_want_it_to_go', but for some reason, upon visiting the root
URL of my apps in Heroku, the Welcome to Rails page shows up.
Needless to say it works fine locally.

The weirder thing is that my very first project was a blog that I
pushed up about 2 weeks ago.  The landing page has since disappeared
on it's own without any intervention on my part (that I can
remember).

What am I doing wrong?

thanks, all...

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




RubyCAS-server on heroku

2010-01-08 Thread icarus.wings
Hi everybody,

Im working on some RESTful web services witch will be running on
heroku, and currently trying to work out what is the best way to do
single sign on, so my main app will not need to authenticate with the
web services in order to access data.
they are all on the same domain - services.mydomain.com,
content.mydomain.com, finance.mydomain.com etc

i have investigated about setting up an openid server, and might go
down that path, but im currently looking into how i would get the
rubycas-server running on heroku.

i have not set up rubycas before so im not sure where to start - has
anyone got it running on heroku before?, or does anyone know where i
can find some information about it?

thanks

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




Upload file and process in DJ

2010-01-08 Thread Karl
My app uploads a file (via paperclip), and saves the file in
":rails_root/tmp/:id/:basename.:extension". Works perfectly.

After the file is successfully received and saved in tmp, I need to
run a script on it that may take 30-60 seconds. For now I just process
this within the current request cycle.

I know that files stored in tmp will, eventually, be deleted. In my
case, I *want* them to be deleted, after they are processed.


If I wanted to use Delayed Job to process this file, will DJ still
find the file as it is saved in tmp? Consider that the file should be
processed immediately after it is uploaded, there is no need to wait
for some time in the future.
-- 
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: error installing heroku gem (ruby 1.9 / mac os x)

2010-01-08 Thread Devyn Cairns
Why can't you guys just give an option in the app config for the Ruby
version? We can already set gem versions for the app in the .gems manifest.
Doesn't this make sense?

Just my two cents.

--
  ~devyn
-- 

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: error installing heroku gem (ruby 1.9 / mac os x)

2010-01-08 Thread Terence Lee
It looks like json isn't necessarily 1.9 on every platform.  We might
have to detect when using 1.9 and use the fake json gemspec talked about
here: http://isitruby19.com/json

Have you tried 1.8.6?  Heroku currently runs 1.8.6 so it would make
sense to dev on ruby 1.8.6 instead of 1.9.1 since they aren't
necessarily compatible.  If need a platform w/ ruby 1.9 then I'd look
elsewhere.

Cheers,
Terence

On Tue, 2010-01-05 at 21:49 -0800, dan wrote:
> gem does not install on my mac - ruby 1.9
> 
> sudo gem install heroku
> Password:
> Building native extensions.  This could take a while...
> ERROR:  Error installing heroku:
>   ERROR: Failed to build gem native extension.
> 
> /usr/local/bin/ruby extconf.rb
> creating Makefile
> 
> make
> gcc -Wall -I. -I/usr/local/include/ruby-1.9.1/i386-darwin10.2.0 -I/usr/
> local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1
> -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -D_XOPEN_SOURCE=1
> -O2 -g -Wall -Wno-parentheses  -fno-common -pipe -fno-common  -o
> parser.o -c parser.c
> In file included from parser.rl:5:
> /usr/local/include/ruby-1.9.1/ruby/backward/st.h:2:2: warning:
> #warning use "ruby/st.h" instead of bare "st.h"
> parser.rl: In function ‘cParser_initialize’:
> parser.rl:460: error: ‘struct RHash’ has no member named ‘tbl’
> make: *** [parser.o] Error 1
> 
> 
> Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/
> json-1.1.0 for inspection.
> Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/json-1.1.0/ext/
> json/ext/parser/gem_make.out
> 
> 
> 
> my env
> 
> ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.2.0]
> Rails 2.3.5
> mac os x 10.6.2
> 
> *** LOCAL GEMS ***
> 
> actionmailer (2.3.5)
> actionpack (2.3.5)
> activerecord (2.3.5)
> activeresource (2.3.5)
> activesupport (2.3.5)
> factory_girl (1.2.3)
> gemcutter (0.2.1)
> json (1.2.0)
> json_pure (1.2.0)
> launchy (0.3.2)
> rack (1.0.1)
> rails (2.3.5)
> rake (0.8.7)
> rest-client (1.0.3)
> ruby-aaws (0.7.0)
> rubygems-update (1.3.5)
> sqlite3-ruby (1.2.5)
> 
> 



signature.asc
Description: This is a digitally signed message part


Re: error installing heroku gem (ruby 1.9 / mac os x)

2010-01-08 Thread Devyn Cairns
Do you think there's any way we can remove the requirement of the 'json' gem
for 1.9? This is what appears to be causing the problem—Ruby 1.9 includes
the json library.

On Fri, Jan 8, 2010 at 8:36 AM, David Dollar  wrote:

> I'm currently working on getting the heroku gem running on as many
> platforms as possible.
>
> If anyone would like to get involved in this effort, the gem is open
> source at http://github.com/heroku/heroku
>
> - David
>
> On Fri, Jan 8, 2010 at 2:32 AM, dan  wrote:
> > i was looking forward to giving heroku a try but am worried about the
> > attention this issue is getting.
> > there are no ways to submit this issue using the heroku website as i
> > do not have a running heroku app yet.
> > if this issue is not even acknowledged, i will have to try other hosts
> > with better support mechanisms.
> >
> >
> > --
> > 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.
>
>
>
>


-- 
   ~devyn
-- 

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: error installing heroku gem (ruby 1.9 / mac os x)

2010-01-08 Thread David Dollar
I'm currently working on getting the heroku gem running on as many
platforms as possible.

If anyone would like to get involved in this effort, the gem is open
source at http://github.com/heroku/heroku

- David

On Fri, Jan 8, 2010 at 2:32 AM, dan  wrote:
> i was looking forward to giving heroku a try but am worried about the
> attention this issue is getting.
> there are no ways to submit this issue using the heroku website as i
> do not have a running heroku app yet.
> if this issue is not even acknowledged, i will have to try other hosts
> with better support mechanisms.
>
>
> --
> 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: error installing heroku gem (ruby 1.9 / mac os x)

2010-01-08 Thread Devyn Cairns
Hmm... try unzipping the .gem and poking around. If you install all of the
dependencies minus the 'json' gem, it may work.

I don't work at Heroku, by the way.
-- 

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: Slightly OT: Backups and S3

2010-01-08 Thread Baz
Thanks Matt and John.

Sounds like backupmyapp could be great for my other apps (they say
their servers are in Germany which is even better for me, given the
difference between EU and US data protection laws).

But for this soon-to-be-heroku based app, I guess I'll leave it with a
warning and rely on S3.

Thanks again

Baz.

On Jan 8, 11:48 am, johnb  wrote:
> I've been playing with backupmyapp.com - they recently changed their
> pricing model and made it much more viable - works fine with Heroku
> too..that might be just the ticket for you
>
> I'd imagine they're using s3 behind the scenes.
>
> john.
>
> On Jan 7, 7:18 pm, Matt Buck  wrote:
>
>
>
> > Baz,
>
> > You don't really need to be too concerned about backing up files that are
> > already stored on S3.  Those files are thoroughly replicated on Amazon's
> > end.  For an added measure of security, you could duplicate your files from
> > S3 to some other cloud storage service (i.e. cloudfiles), but it would
> > probably be more trouble and cost than it's worth.
>
> > - Matt Buck
>
> > On Thu, Jan 7, 2010 at 9:24 AM, Baz  wrote:
> > > I'm considering using Heroku for a new app that I'm working on - but
> > > I'm not too sure about backups.
>
> > > I can grab a bundle every night, or use this:
> > >http://nickmerwin.com/easily-backup-your-heroku-database-to-s3justto
> > > grab the database (as I've already got my code stored in source
> > > control so I may as well save on bandwidth).
>
> > > But what about files that my app has uploaded to S3?
>
> > > My other apps (on traditional VPSes) have backup routines that put the
> > > backups onto S3 - so I have two copies of everything (one on the VPS
> > > and one on S3).  But this app, because of the filesystem will need to
> > > push stuff onto S3 straight away - so I'll only have a single copy.
> > > Is that safe?  I can't find much detail about what Amazon will do in
> > > the case of a disaster.
>
> > > Also - my app will have a warning stating that you should keep your
> > > own copies of these files but no-one ever reads warnings, so it's best
> > > to ask the question I feel.
>
> > > Cheers
>
> > > Baz.
>
> > > --
> > > 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: Slightly OT: Backups and S3

2010-01-08 Thread johnb
I've been playing with backupmyapp.com - they recently changed their
pricing model and made it much more viable - works fine with Heroku
too..that might be just the ticket for you

I'd imagine they're using s3 behind the scenes.

john.

On Jan 7, 7:18 pm, Matt Buck  wrote:
> Baz,
>
> You don't really need to be too concerned about backing up files that are
> already stored on S3.  Those files are thoroughly replicated on Amazon's
> end.  For an added measure of security, you could duplicate your files from
> S3 to some other cloud storage service (i.e. cloudfiles), but it would
> probably be more trouble and cost than it's worth.
>
> - Matt Buck
>
> On Thu, Jan 7, 2010 at 9:24 AM, Baz  wrote:
> > I'm considering using Heroku for a new app that I'm working on - but
> > I'm not too sure about backups.
>
> > I can grab a bundle every night, or use this:
> >http://nickmerwin.com/easily-backup-your-heroku-database-to-s3just to
> > grab the database (as I've already got my code stored in source
> > control so I may as well save on bandwidth).
>
> > But what about files that my app has uploaded to S3?
>
> > My other apps (on traditional VPSes) have backup routines that put the
> > backups onto S3 - so I have two copies of everything (one on the VPS
> > and one on S3).  But this app, because of the filesystem will need to
> > push stuff onto S3 straight away - so I'll only have a single copy.
> > Is that safe?  I can't find much detail about what Amazon will do in
> > the case of a disaster.
>
> > Also - my app will have a warning stating that you should keep your
> > own copies of these files but no-one ever reads warnings, so it's best
> > to ask the question I feel.
>
> > Cheers
>
> > Baz.
>
> > --
> > 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.