Re: Forcing traffic to www.

2011-06-02 Thread Hemal Kuntawala
I've got a before hook in my Sinatra app:

before do
  if request.env['HTTP_HOST'] == APP_NAME.heroku.com ||
request.env['HTTP_HOST'] == APP_NAME.com
redirect http://www.APP_NAME.com#{request.fullpath};, 301
  end
end

My rails knowledge is zero, but I'm guessing* you can write a before_filter
method in the ApplicationController to do something smiliar? Not sure if my
method is the best way either.


*I'm literally making this up.

On 2 June 2011 04:12, Aaron Brethorst aa...@brethorsting.com wrote:

 I remember a couple weeks back we were strongly advised to send all traffic
 to www. instead of a bare domain. What is the best way to ensure this
 happens? I would do this at the Rack middleware level, but I'm getting
 frequent reports of 'server not responding' errors from users when they try
 accessing the site, which means the Rack option is right out.

 Thanks,
 Aaron

 --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To post to this group, send email to heroku@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 heroku@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: Forcing traffic to www.

2011-06-02 Thread Hemal Kuntawala
Ah my bad, didn't spot that.

On 2 June 2011 08:38, Aaron Brethorst aa...@brethorsting.com wrote:

 Thanks, but like I said, the traffic is never making it to my app server,
 leaving any Rack middleware option unusable.

 On Jun 2, 2011, at 12:36 AM, Hemal Kuntawala wrote:

 I've got a before hook in my Sinatra app:

 before do
   if request.env['HTTP_HOST'] == APP_NAME.heroku.com ||
 request.env['HTTP_HOST'] == APP_NAME.com
 redirect 
 http://www.APP_NAME.com#{request.fullpath}http://www.APP_NAME.com/#%7Brequest.fullpath%7D,
 301
   end
 end

 My rails knowledge is zero, but I'm guessing* you can write a before_filter
 method in the ApplicationController to do something smiliar? Not sure if my
 method is the best way either.


 *I'm literally making this up.

 On 2 June 2011 04:12, Aaron Brethorst aa...@brethorsting.com wrote:

 I remember a couple weeks back we were strongly advised to send all
 traffic to www. instead of a bare domain. What is the best way to ensure
 this happens? I would do this at the Rack middleware level, but I'm getting
 frequent reports of 'server not responding' errors from users when they try
 accessing the site, which means the Rack option is right out.

 Thanks,
 Aaron

 --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To post to this group, send email to heroku@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 heroku@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 heroku@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 heroku@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: request.remote_ip

2011-03-31 Thread Hemal Kuntawala
I had a similar problem with a Sinatra app on Rack. Rack's request.ip was
returning Amazon LB IPs. I ended up grabbing the client IP from the env
environment variables..

ip = env[‘HTTP_X_REAL_IP’] ||= env[‘REMOTE_ADDR’]

Hope that helps.
(
http://developerhemal.tumblr.com/post/3958107290/client-ip-addresses-on-heroku
)

On 31 March 2011 16:58, Brad Gyger b...@heroku.com wrote:

 Looking into this now.  I'll follow up with an email as well.

 On Mar 30, 11:23 am, kowsik kow...@gmail.com wrote:
  This is a bummer. We are about to switch to hostname-based SSL
 onhttp://blitz.ioand it's important that we see the original IP. Can
  someone from Heroku confirm/deny this and/or suggest a work around? We
  are using sinatra and so far (without the SSL add-on) we can see the
  request.ip.
 
  Thanks,
 
  K.
  ---http://blitz.iohttp://twitter.com/pcapr
 
 
 
 
 
 
 
  On Wed, Mar 30, 2011 at 7:39 AM, chris mcclellan...@gmail.com wrote:
   Again, if you're using Hostname Based SSL, even on non-https requests,
 you
   will not get the users IP, no matter which headers you try. So, yeah,
 you'll
   have go to through a 3rd party, or try not to care about the IPs at
 all!
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Heroku group.
   To post to this group, send email to heroku@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 heroku@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 heroku@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: Mobile strategy

2011-03-18 Thread Hemal Kuntawala
I am just by checking the useragent in the request.

On 18 March 2011 10:01, railsnerd rails.n...@gmail.com wrote:

 Hi there

 Is anyone using Heroku to serve a mobile and desktop version of their
 site?

 How to handle device detection?  Particularly when using the some URLs
 to deliver different markup/content to the two different platforms.

 Any ideas of a device detection strategy?  Even if it was just
 mobile or desktop (as opposed to detecting specific handsets).

 cheers

 --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To post to this group, send email to heroku@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 heroku@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: Mobile strategy

2011-03-18 Thread Hemal Kuntawala
Not good if you're caching then?

On 18 March 2011 12:16, Dan Croak dcr...@thoughtbot.com wrote:

 I'm using mobile-fu on a few Rails apps on Heroku:

 https://github.com/brendanlim/mobile-fu

 It does device detection by checking the user agent against a giant regex.

 It also provides a mobile mime type so you can put your mobile-specific
 views in their own foo.mobile.erb views if you want.

 On Mar 18, 2011, at 6:01 AM, railsnerd rails.n...@gmail.com wrote:

  Hi there
 
  Is anyone using Heroku to serve a mobile and desktop version of their
  site?
 
  How to handle device detection?  Particularly when using the some URLs
  to deliver different markup/content to the two different platforms.
 
  Any ideas of a device detection strategy?  Even if it was just
  mobile or desktop (as opposed to detecting specific handsets).
 
  cheers
 
  --
  You received this message because you are subscribed to the Google Groups
 Heroku group.
  To post to this group, send email to heroku@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 heroku@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 heroku@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: Mobile strategy

2011-03-18 Thread Hemal Kuntawala
Indeed. I'm not totally convinced by client-side device detection from a
responsiblity perspective. I think maintaining a server-side distinction,
personally preferably via a subdomain, ticks most boxes given caching
efforts. Interested in more views though..

On 18 March 2011 22:41, railsnerd rails.n...@gmail.com wrote:

 Yes, I was about to say all these techniques (other than the css
 media queries) require a hit to the backend.

 Ideally there would be detection on the edge/cloud, so varnish cache
 can kick in where possible without hitting a rails stack or sinatra.

 Still, good ideas in this thread.

 --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To post to this group, send email to heroku@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 heroku@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: PGError: FATAL: sorry, too many clients already

2011-02-02 Thread Hemal Kuntawala
http://wiki.postgresql.org/wiki/FAQ#Why_do_I_get_.22Sorry.2C_too_many_clients.22_when_trying_to_connect.3F

Would your app be spawning many new db connections for any reason? E.g.
Backups?


On 2 February 2011 08:20, Shilpa shilpa.dal...@gmail.com wrote:

 Hello,

 My app is configured to use Shared Database.

 Today I'm getting PGError: FATAL:  sorry, too many clients already
 error on my  app. My app is unresponsive, I cannot connect to the db
 using heroku console. ALso, pgbackups:capture fails with this error
 -  !An error occurred and your backup did not finish.

 Please help. My app is on production  its completely unresponsive
 right now!

 I have created a support ticket for this issue, but wanted to see if
 anyone else has faced this issue before.

 Shilpa

 --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To post to this group, send email to heroku@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 heroku@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: Unable to push application..

2010-10-26 Thread Hemal Kuntawala
I got notifications around this time that just pinging our app took ages -
might be a heroku thing. Tried this morning?

On 26 October 2010 02:42, WilliamF wflana...@tempusgroup.com wrote:

 Hi all,

 Heroku is failing on launch with a Launching. failed (Heroku
 error) message. Any ideas how to fix? Anyone else having this problem?

 William

 --
 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: Can't push my database

2010-09-28 Thread Hemal Kuntawala
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: How to deploy app with sensitive config information?

2010-09-02 Thread Hemal Kuntawala
Not sure on the resolution but I wouldn't mind knowing what you mean/how you
do:

For git I configure my app not to include any sensitive information so it
will not appear anywhere.

Ta.

On 2 September 2010 18:51, Jeff Deville jeffdevi...@gmail.com wrote:

 The general way to set up config values is with heroku config:add
 NAME=VALUE  I have no idea what level of security that affords you that git
 would not, but that's all I know of.  (I'm far far from an expert here
 though).


 On Sep 1, 2010, at 10:38 AM, dnagir wrote:

  Hi,
 
  Deployment to Heroku is done as a Git push.
  For git I configure my app not to include any sensitive information so
  it will not appear anywhere.
  This includes email, payment gateway credentials, encryption key, etc.
 
  So how would I deploy that information together with the application
  without storing it in git?
 
  Cheers,
  Dmytrii.
 
  --
  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.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: Backup for MongoHQ Data

2010-08-26 Thread Hemal Kuntawala
I use a mongoexport 
mongoexport -h [host]:[port] -d [database] -u [user] -p [password] -c
[collection] -o [path, e.g. ~/tmp/mongoexport/export.json]

And a mongoimport 
mongoimport -h [host]:[port] -d [database] -u [user] -p [password] -c
[collection] --file [file, e.g. ~/tmp/mongoexport/export.json]

Replace the square brackets... Hope that helps.


On 26 August 2010 22:41, Chris Hanks christopher.m.ha...@gmail.com wrote:

 Not sure what that error message means, sorry. You might ask in the
 MongoDB google group - 10gen is good about helping users with issues:

 http://groups.google.com/group/mongodb-user

 Also, I should have mentioned before that there's a guide to
 mongorestore and the other MongoDB import/export tools here:


 http://www.mongodb.org/display/DOCS/Import+Export+Tools#ImportExportTools-mongorestore





 On Aug 26, 2:22 pm, Ginny Hendry cont...@ghendry.com wrote:
  Chris-
 
  Thanks.  That got me most of the way there but I needed to extract
  those four fields from the URL I connect with (in ENV['MONGOHQ_URL'])
  that looks like this:
 
  mongodb://app123456:alongstr...@flame.mongohq.com:27078/app123456
 
  This dump command seemed to work for me:
 
  mongodump  -hflame.mongohq.com:27078  -dapp123456  -uapp123456  -
  palongstring
 
  It created a dump subdirectory with what looks like my collections.
  Now how do I restore it to a local database?
 
  I tried several variations of this command
 
  mongorestore -hlocalhost:27017 -dapp123456
 
  and got:
 
  connected to: localhost:27017
  don't know what to do with [dump]
 
  so I'm not sure what mongorestore wants.  I am running mongod 1.6.1
  locally with default settings.
 
  Thanks.
 
 -Ginny
 
  On Aug 26, 12:45 am, Chris Hanks christopher.m.ha...@gmail.com
  wrote:
 
 
 
   Use the mongodump utility from the command line. It comes with
   mongodb, and can be pointed at whatever remote database you like.
 
   For example, try a ruby script that looks something like:
 
   host = 'flame.mongohq.com:27000'
   db   = 'ginnys-database'
   user = 'ginny'
   pass = 'password'
 
   `mongodump -h#{host} -d#{db} -u#{user} -p#{pass} --out ~/dump`
 
   That'll dump the entire contents to your local ~/dump folder. If you
   need to restore them, you can use mongorestore, which takes similar
   arguments.
 
   On Aug 25, 9:44 pm, Ginny Hendry cont...@ghendry.com wrote:
 
Am I right in assuming that Heroku bundles don't include MongoHQ
 data?
 
Do db:pull or taps work with MongoHQ?
 
If not, what are our options for backup and restore for MongoHQ
databases?
 
I'm sure MongoHQ has backups in case their disks crash but I need my
own backups in case I or a user destroys something important.
 
Thx.
 
  -Ginny

 --
 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: Project.where(:status = true)

2010-06-17 Thread Hemal Kuntawala
Just out of interest, what are folks using ORM-wise? I've moved from
DataMapper to Sequel.

2010/6/17 Jesús Navarrete jesus.navarr...@gmail.com

 I had problems in development environment using mysql (with the default
 values in migrations), now I use Prostgres with heroku projects. I'd
 recommend it in development to have the same environment like heroku.

 jesús.


 On Wed, Jun 16, 2010 at 6:24 PM, Neil Middleton 
 neil.middle...@gmail.comwrote:

 I've had this exact issue, which is why I now make sure my dev environment
 is the same as Heroku in every single way reasonably possible. (Ruby
 version, DB, etc).

 SQLite doesn't seem to care if foreign keys aren't ints, Postgres does,
 which is why you really should develop on Postgres where possible.

 Neil


 On Wed, Jun 16, 2010 at 3:28 PM, webdevotion webdevot...@gmail.comwrote:

 Thanks guys for your time.
 The problem was that status was defined as text
 in the migration file.

 * ouch *




 On Jun 16, 3:46 pm, webdevotion webdevot...@gmail.com wrote:
  Hey
 
  We have a problem with our Projects controller.
  Where we want to select all  the projects with status set to true we
  use:
 
  p = Project.where(:status = true)
 
  It works locally, but it doesn't work on the Heroku instance.
 
  Does work, but not agnostic
  p = Project.where(:status = '1')
 
  What's the best practice to solve this ( little ) 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.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.comheroku%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.




 --
 Jesús Navarrete

 Blog: http://blog.jenaiz.com
 Twitter: http://twitter.com/jenaiz

 --
 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: Project.where(:status = true)

2010-06-16 Thread Hemal Kuntawala
Sounds like a db modelling issue. What do the heroku logs say? ('heroku
logs')

On 16 June 2010 14:46, webdevotion webdevot...@gmail.com wrote:

 Hey

 We have a problem with our Projects controller.
 Where we want to select all  the projects with status set to true we
 use:

 p = Project.where(:status = true)

 It works locally, but it doesn't work on the Heroku instance.

 Does work, but not agnostic
 p = Project.where(:status = '1')

 What's the best practice to solve this ( little ) 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.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: Suppressing confirmation messages with heroku db:pull heroku db:push

2010-06-14 Thread Hemal Kuntawala

Mysq would be clunky fingers on an iPhone. Glad you sorted it.


On 14 Jun 2010, at 17:11, Jonathan jse...@gmail.com wrote:


Thanks very much...  With that hint I was eventually able to get it
working.  I was confused by the asterisks and the apparent
typographical error in mysq:, but I eventually worked it out.  For
future seekers, this worked from a Windows batch file:

call heroku db:pull mysql://myuser:mypassw...@localhost/mydb? 
encoding=utf8

--force

--
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: Suppressing confirmation messages with heroku db:pull heroku db:push

2010-06-08 Thread Hemal Kuntawala
+1 Thank you thank you!

(And thanks to Steven, too 
http://www.mail-archive.com/heroku@googlegroups.com/msg04909.html He
articulated my question so well all I had to do was copy it... I hope he
sees this answer!)



On 8 June 2010 04:15, Jonathan jse...@gmail.com wrote:

 Thank you thank you!

 --
 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: Suppressing confirmation messages with heroku db:pull heroku db:push

2010-06-08 Thread Hemal Kuntawala
Specify your database.. e.g: heroku db:pull *
mysq://somename:somep...@localhost/somedatabase* --force

On 8 June 2010 16:53, Jonathan jse...@gmail.com wrote:

 I get this:

  8:45:33 C:\hf1 heroku  db:pull --force
 Loaded Taps v0.3.6
 Warning: Data in the database '--force' will be overwritten and will
 not be recoverable.
 Are you sure you wish to continue? (y/n)? n

 If I put the --force first, I get 'Unknown command.'

 Any suggestions?  Thanks.

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