Re: get the production log of my application

2010-07-22 Thread Sergio Lima
ok john tks but it didn't work.

I received the following error:

Qui Jul 22 05:48:00 $ heroku logs
/Users/sergiosouzalima/.rvm/
gems/ruby-1.9.2-h...@rails3beta/gems/rest-client-1.4.2/lib/restclient/exceptions.rb:76:in
`http_body': undefined method `body' for nil:NilClass (NoMethodError)
from 
/Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/gems/heroku-1.9.7/lib/heroku/command.rb:33:in
`rescue in run'
from 
/Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/gems/heroku-1.9.7/lib/heroku/command.rb:18:in
`run'
from 
/Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/gems/heroku-1.9.7/bin/heroku:13:in
`'
from 
/Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/bin/heroku:19:in
`load'
from 
/Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/bin/heroku:19:in
`'


--

Sergio Lima
sergiosouzal...@gmail.com
www.sergiosouzalima.com.br
Contacte-me [image: Facebook] [image:
Linkedin] [image:
Orkut][image:
Twitter] 

--- @ WiseStamp
Signature.
Get it 
now


On Thu, Jul 22, 2010 at 3:46 PM, johnb  wrote:

> heroku logs
>
> in ur local project folder in terminal
>
> John
>
> On Jul 20, 9:16 am, Sergio Lima  wrote:
>
> > Hi group,
> >
> >I'm a Heroku user. I have an application in Rails 3 and ruby 1.9.2
> hosted
> > at Heroku.
> >
> >Please I have to get the production log of my application. How can I
> do
> > that ?
> >
> > tks
> > --
> >
> > Sergio Lima
> > sergiosouzal...@gmail.comwww.sergiosouzalima.com.br
> > Contacte-me [image: Facebook]  >[image:
> > Linkedin] [image:
> > Orkut] >[image:
> > Twitter] 
> >
> > --- @ WiseStamp
> > Signature<
> http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>.
> > Get it now<
> http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>
>
> --
> 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: get the production log of my application

2010-07-22 Thread johnb
heroku logs

in ur local project folder in terminal

John

On Jul 20, 9:16 am, Sergio Lima  wrote:

> Hi group,
>
>    I'm a Heroku user. I have an application in Rails 3 and ruby 1.9.2 hosted
> at Heroku.
>
>    Please I have to get the production log of my application. How can I do
> that ?
>
> tks
> --
>
> Sergio Lima
> sergiosouzal...@gmail.comwww.sergiosouzalima.com.br
> Contacte-me [image: Facebook] [image:
> Linkedin] [image:
> Orkut][image:
> Twitter] 
>
> --- @ WiseStamp
> Signature.
> Get it 
> now

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



get the production log of my application

2010-07-22 Thread Sergio Lima
Hi group,

   I'm a Heroku user. I have an application in Rails 3 and ruby 1.9.2 hosted
at Heroku.

   Please I have to get the production log of my application. How can I do
that ?

tks
--

Sergio Lima
sergiosouzal...@gmail.com
www.sergiosouzalima.com.br
Contacte-me [image: Facebook] [image:
Linkedin] [image:
Orkut][image:
Twitter] 

--- @ WiseStamp
Signature.
Get it 
now

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



CAS + Castronaut + databases + heroku

2010-07-22 Thread Russell Quinn
I am trying to implement a single-sign-on setup with Castronaut (which
runs on Sinatra.)

What I want to do:

- Castronaut app (Sinatra) at: https://login.examle.com
- User management app (Rails) (user creation, forgotten passwords,
entry of global information such as addresses, etc.) at: 
https://accounts.example.com
- Various other web apps (most likely all Rails) that authenticate
with the Castronaut server and refer users to the user management
server for, um, user management tasks.

The problem:

- Castronaut (and any CAS server) needs two databases (one for the CAS-
specific stuff and another for the user records—although in theory
these could be the same physical database I believe.) The user records
one needs to be shared between both Castronaut *and* the user
management server.

My questions:

* How can I get Heroku to set up two databases in the Sinatra
castronaut.yml config file? (one for cas_database and one for
cas_adapter.)
* How can I share the cas_adapter database between two Heroku apps?
This is impossible with the default Heroku PostgreSQL database, right?
* Would a solution be to use the PostgreSQL database for the
cas_database and then an Amazon RDS for the cas_adapter? If so, how
could I configure Heroku to do this?

Alternatively:

Castronaut can be built into a gem and run. Would it be somehow
possible to have the Castronaut Sinatra gem and the user management
rails app running together in the same Heroku app? (the Sinatra gem
runs on a different port.) In that case I could use a single
PostgreSQL database for both cas_database and cas_adapater and both
the Sinatra gem and Rails app could access it, right?

Thanks in advance for any advice,

Russell.

-- 
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: keep-alive time?

2010-07-22 Thread Jacob Vorreuter
Yeah, connections are closed after 30 seconds

On Jul 20, 2010, at 11:50 AM, Kevin Patel wrote:

> What is the Keepalive interval on heroku, 30secs?
> 
> -- 
> 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.



Paperclip: `method_missing': undefined method `has_attached_file'

2010-07-22 Thread pcg79
Hello,

I'm in the process of deploying my first Heroku app and I'm having a
problem.  My Rails 3 beta4 app (running on bamboo-mri-1.9.1) uses
Paperclip 2.3.3.  While it works fine in development and in
"production" locally (RAILS_ENV=production rails server) I'm getting
the following error on my app's Heroku page:

/disk1/home/slugs/193987_ca1a76e_5a46/mnt/.bundle/gems/gems/
activerecord-3.0.0.beta4/lib/active_record/base.rb:1041:in
`method_missing': undefined method `has_attached_file' for #
(NoMethodError)
from /disk1/home/slugs/193987_ca1a76e_5a46/mnt/app/models/picture.rb:
4:in `'

Line 4 of picture.rb is:

has_attached_file :photo,
:styles => { :large => "500x500>", :medium =>
"200x200#", :thumb => "100x100#" },
:processors => [:rotator]

I do understand that I have not yet configured Paperclip to use S3 but
I wanted to get the app deployed and working before dealing with the
photos.

I've found people all over the internet that appear to be using
Paperclip and Heroku just fine so I'm not sure why I'm having
problems.  I also found this thread:

https://groups.google.com/group/paperclip-plugin/browse_thread/thread/d9e374a131c879e9/611c77e08c9cced0?lnk=gst&q=heroku#611c77e08c9cced0

Even though it's from a couple years ago I tried the solution but it
didn't work.

According to my first Heroku deploy log, the Paperclip gem was
installed successfully:

Using paperclip (2.3.3) from git://github.com/thoughtbot/paperclip.git
(at master)

No other deploy logs indicate any problems with the app or gems.

Any help would be greatly appreciated.

Thanks.

Pat

-- 
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 making me cry :(

2010-07-22 Thread Michael
Ive been getting this error from sendgrid all morning.


Net::SMTPAuthenticationError (535 5.7.8 Error: authentication failed:
generic failure
):
/usr/ruby1.8.7/lib/ruby/1.8/net/smtp.rb:942:in `check_auth_response'
  /usr/ruby1.8.7/lib/ruby/1.8/net/smtp.rb:733:in `auth_plain'
  /usr/ruby1.8.7/lib/ruby/1.8/net/smtp.rb:725:in `send'
  /usr/ruby1.8.7/lib/ruby/1.8/net/smtp.rb:725:in `authenticate'
  /usr/ruby1.8.7/lib/ruby/1.8/net/smtp.rb:566:in `do_start'
  /usr/ruby1.8.7/lib/ruby/1.8/net/smtp.rb:525:in `start'


I looked up the problem in the forms and saw that people were getting
the same errors a few months ago because of a problem with the addon
and they a reinstall of the addon could fix the problem. Well i have
spent about 2 hours adding/removing checking every single config high
and low to no success.

Anyone got any ideas or plans? thanks
mike.

-- 
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: keep-alive time?

2010-07-22 Thread johnb
yeah, if a request takes too long then Heroku would kill the request,

"If your dyno takes more than 30 seconds to respond to a request, the
mesh will serve a “Request Timeout” page to the user."

from

http://docs.heroku.com/performance

Hope that helps,

John.

On Jul 20, 7:50 pm, Kevin Patel  wrote:
> What is the Keepalive interval on heroku, 30secs?

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



Wildcard domains with SSL?

2010-07-22 Thread johnb
What addon would I need to use wildcards domains with a wildcard SSL -
is that the $100 beast of an SSL addon?

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.



Re: FAILED: Have you updated to use a 0.9 Gemfile?

2010-07-22 Thread aurels
Thanks for you reply,

OK I see.

It works if I gitignore my Gemfile.lock (as long as I do not have
mongrel inside the Gemfile...).

Thanks Steve.

aurélien

-- 
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: FAILED: Have you updated to use a 0.9 Gemfile?

2010-07-22 Thread Steve Smith
Hey,

As far as I know Heroku haven't upgraded to bundler 0.10x and since
0.9 and 0.10 are not compatible you will have to use bundler 0.9.x
locally to create the lock file (alternatively you might be able to
remove the lockfile if you are happy with the latest releases etc).

Steve

On Jul 22, 11:34 am, aurels  wrote:
> Hi,
>
> I cannot push one of my Rails3 app anymore, here is what I get :
>
> -> Heroku receiving push
> -> Migrating from bamboo-ree-1.8.7 to bamboo-mri-1.9.1
>
> -> Rails app detected
> -> Gemfile detected, running Bundler
>        Unresolved dependencies detected; Installing...
>        Your Gemfile.lock was generated by Bundler 0.10.
>        You must delete it if you wish to use Bundler 0.9.
>        FAILED: Have you updated to use a 0.9 Gemfile?
>        http://docs.heroku.com/gems#gem-bundler
>
> My Gemfile wasn't generated with 0.10 but with 1.0.0.beta.5.
>
> If I understand well, Heroku requires a 0.9-generated Gemfile ?
>
> Thanks for any light.

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



FAILED: Have you updated to use a 0.9 Gemfile?

2010-07-22 Thread aurels
Hi,

I cannot push one of my Rails3 app anymore, here is what I get :

-> Heroku receiving push
-> Migrating from bamboo-ree-1.8.7 to bamboo-mri-1.9.1

-> Rails app detected
-> Gemfile detected, running Bundler
   Unresolved dependencies detected; Installing...
   Your Gemfile.lock was generated by Bundler 0.10.
   You must delete it if you wish to use Bundler 0.9.
   FAILED: Have you updated to use a 0.9 Gemfile?
   http://docs.heroku.com/gems#gem-bundler

My Gemfile wasn't generated with 0.10 but with 1.0.0.beta.5.

If I understand well, Heroku requires a 0.9-generated Gemfile ?

Thanks for any light.

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