Taps gem not recognized
Hello, I was trying to use the command heroku db:pull. I keep getting this error message: Install the Taps gem to use db commands. On most systems this will be: sudo gem install taps Even though I have the taps gem installed. taps (0.2.22) What can I do to fix this? -- Andrei Erdoss -- 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: Taps gem not recognized
This is often another LoadError masking as this error. Try the following: gem install open_gem gem open heroku Navigate to lib/heroku/commands/db.rb Change the following two lines: rescue LoadError error Install the Taps gem to use db commands. On most systems this will be:\nsudo gem install taps to: rescue LoadError = ex puts ex.inspect error Install the Taps gem to use db commands. On most systems this will be:\nsudo gem install taps and try to rerun. This should give you some more visibility into what is failing. Hope this helps! David On Tue, Dec 8, 2009 at 9:37 AM, Andrei Erdoss erd...@gmail.com wrote: Hello, I was trying to use the command heroku db:pull. I keep getting this error message: Install the Taps gem to use db commands. On most systems this will be: sudo gem install taps Even though I have the taps gem installed. taps (0.2.22) What can I do to fix this? -- Andrei Erdoss -- 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.
If you reserve full instance for custom SSL - why don't I get more dynos?
Hi, I've read your explanation about why you charge $100/mo for custom SSL (http://docs.heroku.com/ssl#faq). You need exclusive IP, Amazon assigns only one IP for an instance, so you need to reserve full instance just to use one SSL cert - seems fair. Ok, but if you reserve full EC2 instance just for me... then why do I have to pay for extra dynos? Aren't you double-billing for this instance? I believe it's just against your architecture but still I'd like to know the explanation. Regards, Wojciech -- http://twitter.com/WojciechK http://oxos.pl - Ruby on Rails development -- 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.
Sendgrid Basic Failing With Custom Domain But OK on heroku.com Domain
Hi there I'm using the sendgrid basic addon and I'm a little stumped. I get a 500 error when sending mail from my custom domain, but not from myapp.heroku.com. My mailer is very simple - an observer that sends out email on save of an AR object. And like I said, everything works just fine when I'm navigating the app using the myapp.heroku.com domain. I've set config.action_mailer.raise_delivery_errors = true in production.rb But heroku logs show me nothing. Here's what I see in the logs after a restart of the app and then a test resulting in the 500 error. Otherland:$ heroku logs == production.log == # Logfile created on Tue Dec 08 08:24:18 -0800 2009 == dyno-455072.log == Otherland:$ If I use the heroku console to create the AR object mail is sent just fine. Here's what that looks like: Contact.inspect = Contact(id: integer, name: string, email: string, message: text, created_at: datetime, updated_at: datetime) Contact.create!(:name='foo', :email='f...@bar.com', message='hello world') NameError: undefined local variable or method `message' for #Object: 0x2b6a4f52a348 @heroku_console_output=[] Contact.create!(:name='foo', :email='f...@bar.com', :message='hello world') = #Contact id: 6, name: foo, email: f...@bar.com, message: hello world, created_at: 2009-12-08 16:28:44, updated_at: 2009-12-08 16:28:44 My controller is pretty basic... class ContactsController ApplicationController def create @contact = Contact.create!(params[:contact]) flash[:info] = 'Your message has been sent. Thanks!' redirect_to contact_path(@contact) end end My observer: class ContactObserver ActiveRecord::Observer def after_create(contact) ContactMailer.deliver_contact_message(contact) contact.logger.info(Contact from #{contact.name} sent) end end My mailer: class ContactMailer ActionMailer::Base def contact_message(contact) recipients 'aliciac...@yahoo.com' bcc 'la...@shovelpunks.com' subject New aliciachatham.com Message from #{contact.name} from 'mai...@aliciachatham.com' body :contact=contact end end This is all Rails 101 stuff, so I'm baffled as to why it's not working. Can anyone point me in the right direction? I'm at a bit of a loss at this point. Thanks, Lance -- 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: Sendgrid Basic Failing With Custom Domain But OK on heroku.com Domain
David Thanks for the quick reply! I've submitted a support ticket and answered your questions there. Here's a link. http://support.heroku.com/requests/2977 Thanks again! Lance On Dec 8, 11:48 am, David Dollar da...@heroku.com wrote: A couple of questions: 1) What is the name of your app? (the bit before .heroku.com) 2) When you say sending mail from do you mean the from address? 3) Where are you seeing the 500 error If you'd like to take this off-list, please submit a support ticket athttp://support.heroku.comso we can help you track down the problem. - David On Tue, Dec 8, 2009 at 11:39 AM, lanceball lanceb...@gmail.com wrote: Hi there I'm using the sendgrid basic addon and I'm a little stumped. I get a 500 error when sending mail from my custom domain, but not from myapp.heroku.com. My mailer is very simple - an observer that sends out email on save of an AR object. And like I said, everything works just fine when I'm navigating the app using the myapp.heroku.com domain. I've set config.action_mailer.raise_delivery_errors = true in production.rb But heroku logs show me nothing. Here's what I see in the logs after a restart of the app and then a test resulting in the 500 error. Otherland:$ heroku logs == production.log == # Logfile created on Tue Dec 08 08:24:18 -0800 2009 == dyno-455072.log == Otherland:$ If I use the heroku console to create the AR object mail is sent just fine. Here's what that looks like: Contact.inspect = Contact(id: integer, name: string, email: string, message: text, created_at: datetime, updated_at: datetime) Contact.create!(:name='foo', :email='@bar.com', message='hello world') NameError: undefined local variable or method `message' for #Object: 0x2b6a4f52a348 @heroku_console_output=[] Contact.create!(:name='foo', :email='@bar.com', :message='hello world') = #Contact id: 6, name: foo, email: f...@bar.com, message: hello world, created_at: 2009-12-08 16:28:44, updated_at: 2009-12-08 16:28:44 My controller is pretty basic... class ContactsController ApplicationController def create �...@contact = Contact.create!(params[:contact]) flash[:info] = 'Your message has been sent. Thanks!' redirect_to contact_path(@contact) end end My observer: class ContactObserver ActiveRecord::Observer def after_create(contact) ContactMailer.deliver_contact_message(contact) contact.logger.info(Contact from #{contact.name} sent) end end My mailer: class ContactMailer ActionMailer::Base def contact_message(contact) recipients 'aliciac...@yahoo.com' bcc 'la...@shovelpunks.com' subject New aliciachatham.com Message from #{contact.name} from 'mai...@aliciachatham.com' body :contact=contact end end This is all Rails 101 stuff, so I'm baffled as to why it's not working. Can anyone point me in the right direction? I'm at a bit of a loss at this point. Thanks, Lance -- 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.
password protected site
Is it possible to password protect a site, through something like http auth? I want to set up testing and staging sites, but I don't want these to be public and I don't want to have these restrictions in the code of my app. -- 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: If you reserve full instance for custom SSL - why don't I get more dynos?
Hi, In general I am very happy with Heroku and their rates but I think Wojciech has a reasonable point. Yours, Husain On Tue, Dec 8, 2009 at 10:48 AM, Wojciech Kruszewski wojci...@oxos.plwrote: Hi, I've read your explanation about why you charge $100/mo for custom SSL (http://docs.heroku.com/ssl#faq). You need exclusive IP, Amazon assigns only one IP for an instance, so you need to reserve full instance just to use one SSL cert - seems fair. Ok, but if you reserve full EC2 instance just for me... then why do I have to pay for extra dynos? Aren't you double-billing for this instance? I believe it's just against your architecture but still I'd like to know the explanation. Regards, Wojciech -- http://twitter.com/WojciechK http://oxos.pl - Ruby on Rails development -- 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: password protected site
Rack has this baked in, the Sinatra docs have a good example of using it: http://www.sinatrarb.com/faq.html#auth On Mon, Dec 7, 2009 at 11:35 AM, Bradley bradleyrobert...@gmail.com wrote: Is it possible to password protect a site, through something like http auth? I want to set up testing and staging sites, but I don't want these to be public and I don't want to have these restrictions in the code of my app. -- 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: password protected site
If you want to do it with Rails, check out http://railscasts.com/episodes/82-http-basic-authentication You can set your RAILS_ENV to staging/testing using heroku config:add apply the before_filter conditionally. Hope this helps! David On Tue, Dec 8, 2009 at 2:37 PM, Nick Quaranto n...@quaran.to wrote: Rack has this baked in, the Sinatra docs have a good example of using it: http://www.sinatrarb.com/faq.html#auth On Mon, Dec 7, 2009 at 11:35 AM, Bradley bradleyrobert...@gmail.comwrote: Is it possible to password protect a site, through something like http auth? I want to set up testing and staging sites, but I don't want these to be public and I don't want to have these restrictions in the code of my app. -- 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: If you reserve full instance for custom SSL - why don't I get more dynos?
They are totally independent. The way our architecture works, dynos run on machines called railguns, which are specially set up for the job. We have to setup a special (and yes, mostly idle) server just to handle the SSL requests. It's not possible with the product we have today to run dynos on that server. Oren On Tue, Dec 8, 2009 at 7:48 AM, Wojciech Kruszewski wojci...@oxos.pl wrote: Hi, I've read your explanation about why you charge $100/mo for custom SSL (http://docs.heroku.com/ssl#faq). You need exclusive IP, Amazon assigns only one IP for an instance, so you need to reserve full instance just to use one SSL cert - seems fair. Ok, but if you reserve full EC2 instance just for me... then why do I have to pay for extra dynos? Aren't you double-billing for this instance? I believe it's just against your architecture but still I'd like to know the explanation. Regards, Wojciech -- http://twitter.com/WojciechK http://oxos.pl - Ruby on Rails development -- 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: If you reserve full instance for custom SSL - why don't I get more dynos?
Thanks Oren, this makes sense. So can that one mostly idle server handle SSL requests for multiple applications? I mean I tried Heroku and was very happy with the experience - looks like it needs little to no maintenance on my part. I'd wish to host a handful smaller web apps, each with 1-3 dynos. I could live with piggyback ssl, if it was my own wildcard certificate. - Wojciech On Dec 8, 8:58 pm, Oren Teich o...@heroku.com wrote: They are totally independent. The way our architecture works, dynos run on machines called railguns, which are specially set up for the job. We have to setup a special (and yes, mostly idle) server just to handle the SSL requests. It's not possible with the product we have today to run dynos on that server. Oren On Tue, Dec 8, 2009 at 7:48 AM, Wojciech Kruszewski wojci...@oxos.pl wrote: Hi, I've read your explanation about why you charge $100/mo for custom SSL (http://docs.heroku.com/ssl#faq). You need exclusive IP, Amazon assigns only one IP for an instance, so you need to reserve full instance just to use one SSL cert - seems fair. Ok, but if you reserve full EC2 instance just for me... then why do I have to pay for extra dynos? Aren't you double-billing for this instance? I believe it's just against your architecture but still I'd like to know the explanation. Regards, Wojciech -- http://twitter.com/WojciechKhttp://oxos.pl- Ruby on Rails development -- 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 athttp://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: password protected site
Use something like http://github.com/pedro/miniauth Best, Morten On Dec 7, 2009, at 8:35 AM, Bradley bradleyrobert...@gmail.com wrote: Is it possible to password protect a site, through something like http auth? I want to set up testing and staging sites, but I don't want these to be public and I don't want to have these restrictions in the code of my app. -- 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: If you reserve full instance for custom SSL - why don't I get more dynos?
I don't know if that's possible or not it's probably a function of the SSL protocol and our routing mesh, but it's beyond my technical knowledge. Best bet is to drop support@ a line, and see what they say. They'll be able to dig into the details for you. Oren On Tue, Dec 8, 2009 at 12:42 PM, Wojciech Kruszewski wojci...@oxos.pl wrote: Thanks Oren, this makes sense. So can that one mostly idle server handle SSL requests for multiple applications? I mean I tried Heroku and was very happy with the experience - looks like it needs little to no maintenance on my part. I'd wish to host a handful smaller web apps, each with 1-3 dynos. I could live with piggyback ssl, if it was my own wildcard certificate. - Wojciech On Dec 8, 8:58 pm, Oren Teich o...@heroku.com wrote: They are totally independent. The way our architecture works, dynos run on machines called railguns, which are specially set up for the job. We have to setup a special (and yes, mostly idle) server just to handle the SSL requests. It's not possible with the product we have today to run dynos on that server. Oren On Tue, Dec 8, 2009 at 7:48 AM, Wojciech Kruszewski wojci...@oxos.pl wrote: Hi, I've read your explanation about why you charge $100/mo for custom SSL (http://docs.heroku.com/ssl#faq). You need exclusive IP, Amazon assigns only one IP for an instance, so you need to reserve full instance just to use one SSL cert - seems fair. Ok, but if you reserve full EC2 instance just for me... then why do I have to pay for extra dynos? Aren't you double-billing for this instance? I believe it's just against your architecture but still I'd like to know the explanation. Regards, Wojciech -- http://twitter.com/WojciechKhttp://oxos.pl- Ruby on Rails development -- 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 athttp://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: If you reserve full instance for custom SSL - why don't I get more dynos?
Wojciech, if you ask support about that and get some good news, would you report back? I'm curious about this too. Thanks! Chris On Dec 8, 2:05 pm, Oren Teich o...@heroku.com wrote: I don't know if that's possible or not it's probably a function of the SSL protocol and our routing mesh, but it's beyond my technical knowledge. Best bet is to drop support@ a line, and see what they say. They'll be able to dig into the details for you. Oren On Tue, Dec 8, 2009 at 12:42 PM, Wojciech Kruszewski wojci...@oxos.pl wrote: Thanks Oren, this makes sense. So can that one mostly idle server handle SSL requests for multiple applications? I mean I tried Heroku and was very happy with the experience - looks like it needs little to no maintenance on my part. I'd wish to host a handful smaller web apps, each with 1-3 dynos. I could live with piggyback ssl, if it was my own wildcard certificate. - Wojciech On Dec 8, 8:58 pm, Oren Teich o...@heroku.com wrote: They are totally independent. The way our architecture works, dynos run on machines called railguns, which are specially set up for the job. We have to setup a special (and yes, mostly idle) server just to handle the SSL requests. It's not possible with the product we have today to run dynos on that server. Oren On Tue, Dec 8, 2009 at 7:48 AM, Wojciech Kruszewski wojci...@oxos.pl wrote: Hi, I've read your explanation about why you charge $100/mo for custom SSL (http://docs.heroku.com/ssl#faq). You need exclusive IP, Amazon assigns only one IP for an instance, so you need to reserve full instance just to use one SSL cert - seems fair. Ok, but if you reserve full EC2 instance just for me... then why do I have to pay for extra dynos? Aren't you double-billing for this instance? I believe it's just against your architecture but still I'd like to know the explanation. Regards, Wojciech -- http://twitter.com/WojciechKhttp://oxos.pl-Ruby on Rails development -- 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 athttp://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 athttp://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 Spree Commerce + SOA
Thanks David! 1. If I have to create all the web services as a separate heroku apps, how would I share the database instance between the more than one services or apps like admin tools or crons? While sharing a database between apps isn't officially supported, you could have a way to expose an app's ENV['DATABASE_URL'] to other apps. This URL may change periodicially, so you'd want to make sure you had a way to reacquire the new one rather than hardcoding it. Another way to accomplish similar functionality is to expose the data you need as an API that is consumed by the other apps in your architecture. I would prefer the API approach if the data set is NOT large in size. ENV['DATABASE_URL'] approach doesn't seem very clean. I will have to spend some time to explore these two. 2. If the consumer facing web-app needs to call other services within the cloud to fulfill the request, do I have to use public address (may be using CNAME or whatever) or can I have it route it within the cloud? Requests would need to be made to the public address (via the domain name) as the hostname is what routes a request to a given site. If I have to setup my own data center, I would create a network for the production environment with firewall etc. And, the network would have its own DNS/hostnames. Within that network if one app needs to call a service, the number of hops are limited to within the network. In the heroku environment, if one app needs to call another service within the environment using public address (via the domain name), what would be the number of hops before it gets to the service. Would it route within the cloud? I am just concerned about the performance and security. Thanks! Chandra -- 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.