Re: Can't push my database

2010-09-30 Thread Olivier R
Once again, just update your heroku and taps gems and you'll be fine.

On Sep 28, 4:22 pm, MSc schmidtmar...@yahoo.de wrote:
 I get the same error message when trying to pull databases from any of
 our apps running on heroku.

 It used to work fine. Last time I pulled a DB was on friday before the
 weekend. I noticed the Problem for the first time on sunday.

 No migrations or anything in between, rake tasks and apps run
 normally.

 Regards, Marius

 On Sep 28, 1:02 pm, Olivier R orouch...@gmail.com wrote:



  I didn't even have the chance push it on the first try. It's the first
  time it happens amongst all my applications.
  Are there any other way to mirror both dbs?

  On Sep 28, 12:13 pm, Hemal Kuntawala hemal.kuntaw...@gmail.com
  wrote:

   Did it used to work or is this your first try? How do the schemas compare?

   On 28 September 2010 11:04, Olivier R orouch...@gmail.com wrote:

I can't upload my database:



 heroku db:push
Auto-detected local database: sqlite://db/development.sqlite3
! Internal server error



An idea?

Best regards, Olivier

--
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.comheroku%2bunsubscr...@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: Heroku Mongoid config and how it works

2010-09-30 Thread Oren Teich
Nope - the only thing an add-on does is set one config var -
MONOGHQ_URL in this case.  No other magic.  Some add-ons like new
relic will also install a gem or plugin, but mongo hq isn't one of
them.  Those are the only actions an add-on can take.

Oren

On Wed, Sep 29, 2010 at 7:55 PM, Bradley bradleyrobert...@gmail.com wrote:
 It's interesting, after searching through the source of the gem,
 there's a mongoid.yml in a generator that references the same env vars
 for the db connection (MONGOID_HOST, MONGOID_PORT... etc), and yet I
 don't see the gem creating these anywhere.  So I'm still confused as
 to where these were generated.  It MUST be part of heroku in some
 way... no?  maybe the mongohq addon?

 On Sep 27, 11:47 am, John Barnette jbarne...@gmail.com wrote:
 On Sep 27, 2010, at 8:44 AM, Chris Hanks wrote:

  On Sep 27, 6:51 am, Abel Tamayo abel.tam...@gmail.com wrote:
  It seems MongoMapper is more popular around here. At least it's the 
  solution
  I'm using and works flawlessly with Heroku.
  On Mon, Sep 27, 2010 at 2:33 PM, Bradley bradleyrobert...@gmail.com 
  wrote:
  no one has a comment on this?  I thought it'd be a fairly straight
  forward answer.

 Why bother with the YML file?

 require mongoid
 require uri

 url = URI.parse ENV[MONGODB_URL]
 MONGO = Mongo::Connection.new(url.host, url.port).db url.path[1..-1]

 if url.user  url.password
   unless MONGO.authenticate url.user, url.password
     raise Couldn't authenticate MongoDB: #{url.to_s}
   end
 end

 Mongoid.configure do |config|
   config.autocreate_indexes = true
   config.master = MONGO
   config.persist_in_safe_mode = false
   config.raise_not_found_error = false
 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.



-- 
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: DDOS attack alleviation?

2010-09-30 Thread railsnerd
Just as an aside

Does Varnishing as much content as you can protect you from DDOS?

It would cover your app backend but is Varnished content on Heroku
so heavily cached that it is impenitrable?

I assume it must be, since a Reddit attack is as bad as DDOS, and
Vanish is what people recommend for Redditing?

I guess I'm asking this because I'm thinking one option is to make
your site still accessible in a cached format when necessary if your
backend/database overheats ... some sort of graceful fail

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