Re: Running build on heroku using Integrity

2011-02-04 Thread Amit Kulkarni
Hi,
Any updates on this?

On Thu, Feb 3, 2011 at 5:21 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote:

 Yes we cannot use ssh keys because of which i am using the https url.But
 again it is not working and getting the error

 I tried to clone the private repo on my local machine using the https and
 it is asking for the password.May be we are not providing the password while
 cloning on Integrity,it is giving error.
 Is there any way where to do it.


 On Wed, Feb 2, 2011 at 9:25 PM, Michael Abner mike.ab...@gmail.comwrote:

 You won't be able to cline the private repo without hacking integrity to
 send your ssh keys.

 Mike

 On Feb 2, 2011, at 5:20 AM, Amit Kulkarni amitkkulkarni...@gmail.com
 wrote:

 Hi,
 After many attempts i am able to clone public repo but for private repo i
 am getting error.
 For public repo,enter the url as
 https://github.com/username/projectname
 https://github.com/username/projectname and it will clone and run the
 script.

 But for private repo when i run this i am getting error as
 error: The requested URL returned error: 401 while accessing
 http://github.com/abc/test.git/info/refs
 http://github.com/abc/test.git/info/refs
 fatal: HTTP request failed

 So is there any way where i can clone the private directory without
 entering the password.



 On Wed, Feb 2, 2011 at 2:26 PM, Amit Kulkarni amitkkulkarni...@gmail.com
 amitkkulkarni...@gmail.com wrote:

 Hi John,
 I tried this by copying the https version in the integrity repo but it
 does not seem to be work.
 I am getting an error as
 Exception occured during build: undefined local variable or method
 `output' for #Integrity::CommandRunner:0x2aeb2b4d50d0\n

 Now i tried to debug the problem by putting debugging statements in the
 lib/integrity/commandline.rb file then i a getting the result as


 jj
 d
 Could not create directory '/home/slugs//.ssh'.\r\nFailed to add the
 host to the list of known hosts
 (/home/slugs/.ssh/known_hosts).\r\nPermission denied (publickey).\r\nfatal:
 The remote end hung up unexpectedly\nInitialized empty Git repository in
 /disk1/var/tmp/userapps/407034_fb0af09_58a6/25/.git/\n
 jj
 d
 error: The requested URL returned error: 500\nwarning: remote HEAD
 refers to nonexistent ref, unable to checkout.\n\nInitialized empty Git
 repository in /disk1/var/tmp/userapps/407034_fb0af09_58a6/26/.git/\n
 jj
 d
 error: The requested URL returned error: 500\nerror: The requested URL
 returned error: 500\nerror: The requested URL returned error: 500\n
 jj
 d
 error: pathspec 'origin/master' did not match any file(s) known to
 git.\n
 jj
 d
 error: The requested URL returned error: 401\nwarning: remote HEAD
 refers to nonexistent ref, unable to checkout.\n\nInitialized empty Git
 repository in /disk1/var/tmp/userapps/407034_fb0af09_58a6/27/.git/\n
 jj
 d
 error: The requested URL returned error: 401\nerror: The requested URL
 returned error: 401\nerror: The requested URL returned error: 401\n
 jj
 d
 error: pathspec 'origin/master' did not match any file(s) known to
 git.\n
 (Not all processes could be identified, non-owned process info
  will not be shown, you would have to be root to see it all.)
 jj
 d
 error: The requested URL returned error: 401\nwarning: remote HEAD
 refers to nonexistent ref, unable to checkout.\n\nInitialized empty Git
 repository in /disk1/var/tmp/userapps/407034_fb0af09_58a6/28/.git/\n
 jj
 d
 error: The requested URL returned error: 401\nerror: The requested URL
 returned error: 401\nerror: The requested URL returned error: 401\n
 jj
 d
 error: pathspec 'origin/master' did not match any file(s) known to
 git.\n

 Also if it enter the https version of the the git url in the browser then
 i am getting an error as 401 as mentioned in the error.
 I then removed the .git from the end and checked then in the browser it
 is working but in the log i am getting 500 error.


 error: The requested URL returned error: 500\nerror: The requested URL
 returned error: 500\nerror: The requested URL returned error: 500\n
 jj
 d
 error: pathspec 'origin/master' did not match any file(s) known to
 git.\n
 jj
 d
 error: The requested URL returned error: 401\nwarning: remote HEAD
 refers to nonexistent ref, unable to checkout.\n\nInitialized empty Git
 repository in /disk1/var/tmp/userapps/407034_fb0af09_58a6/27/.git/\n
 jj
 d
 error: The requested URL returned error: 401\nerror: The requested URL
 returned error: 401\nerror: The requested URL returned error: 401\n
 jj
 d
 error: pathspec 'origin/master' did not match any file(s) known to
 git.\n
 (Not all processes could be identified, non-owned process info
  will not be shown, you would have to be root to see it 

Re: Running build on heroku using Integrity

2011-02-04 Thread John McCaffrey
i think this is something for the integrity forum, as not many people here
have tried it. (and the issues we're having are not standard rails app
issues).

Let me know if you get an answer from the integrity people, as I'd like to
see this working too.

-John

On Fri, Feb 4, 2011 at 2:26 AM, Amit Kulkarni amitkkulkarni...@gmail.comwrote:

 Hi,
 Any updates on this?


 On Thu, Feb 3, 2011 at 5:21 PM, Amit Kulkarni 
 amitkkulkarni...@gmail.comwrote:

 Yes we cannot use ssh keys because of which i am using the https url.But
 again it is not working and getting the error

 I tried to clone the private repo on my local machine using the https and
 it is asking for the password.May be we are not providing the password while
 cloning on Integrity,it is giving error.
 Is there any way where to do it.


 On Wed, Feb 2, 2011 at 9:25 PM, Michael Abner mike.ab...@gmail.comwrote:

 You won't be able to cline the private repo without hacking integrity to
 send your ssh keys.

 Mike

 On Feb 2, 2011, at 5:20 AM, Amit Kulkarni amitkkulkarni...@gmail.com
 wrote:

 Hi,
 After many attempts i am able to clone public repo but for private repo i
 am getting error.
 For public repo,enter the url as
 https://github.com/username/projectname
 https://github.com/username/projectname and it will clone and run the
 script.

 But for private repo when i run this i am getting error as
 error: The requested URL returned error: 401 while accessing
 http://github.com/abc/test.git/info/refs
 http://github.com/abc/test.git/info/refs
 fatal: HTTP request failed

 So is there any way where i can clone the private directory without
 entering the password.



 On Wed, Feb 2, 2011 at 2:26 PM, Amit Kulkarni amitkkulkarni...@gmail.com
 amitkkulkarni...@gmail.com wrote:

 Hi John,
 I tried this by copying the https version in the integrity repo but it
 does not seem to be work.
 I am getting an error as
 Exception occured during build: undefined local variable or method
 `output' for #Integrity::CommandRunner:0x2aeb2b4d50d0\n

 Now i tried to debug the problem by putting debugging statements in the
 lib/integrity/commandline.rb file then i a getting the result as


 jj
 d
 Could not create directory '/home/slugs//.ssh'.\r\nFailed to add the
 host to the list of known hosts
 (/home/slugs/.ssh/known_hosts).\r\nPermission denied (publickey).\r\nfatal:
 The remote end hung up unexpectedly\nInitialized empty Git repository in
 /disk1/var/tmp/userapps/407034_fb0af09_58a6/25/.git/\n
 jj
 d
 error: The requested URL returned error: 500\nwarning: remote HEAD
 refers to nonexistent ref, unable to checkout.\n\nInitialized empty Git
 repository in /disk1/var/tmp/userapps/407034_fb0af09_58a6/26/.git/\n
 jj
 d
 error: The requested URL returned error: 500\nerror: The requested URL
 returned error: 500\nerror: The requested URL returned error: 500\n
 jj
 d
 error: pathspec 'origin/master' did not match any file(s) known to
 git.\n
 jj
 d
 error: The requested URL returned error: 401\nwarning: remote HEAD
 refers to nonexistent ref, unable to checkout.\n\nInitialized empty Git
 repository in /disk1/var/tmp/userapps/407034_fb0af09_58a6/27/.git/\n
 jj
 d
 error: The requested URL returned error: 401\nerror: The requested URL
 returned error: 401\nerror: The requested URL returned error: 401\n
 jj
 d
 error: pathspec 'origin/master' did not match any file(s) known to
 git.\n
 (Not all processes could be identified, non-owned process info
  will not be shown, you would have to be root to see it all.)
 jj
 d
 error: The requested URL returned error: 401\nwarning: remote HEAD
 refers to nonexistent ref, unable to checkout.\n\nInitialized empty Git
 repository in /disk1/var/tmp/userapps/407034_fb0af09_58a6/28/.git/\n
 jj
 d
 error: The requested URL returned error: 401\nerror: The requested URL
 returned error: 401\nerror: The requested URL returned error: 401\n
 jj
 d
 error: pathspec 'origin/master' did not match any file(s) known to
 git.\n

 Also if it enter the https version of the the git url in the browser
 then i am getting an error as 401 as mentioned in the error.
 I then removed the .git from the end and checked then in the browser it
 is working but in the log i am getting 500 error.


 error: The requested URL returned error: 500\nerror: The requested URL
 returned error: 500\nerror: The requested URL returned error: 500\n
 jj
 d
 error: pathspec 'origin/master' did not match any file(s) known to
 git.\n
 jj
 d
 error: The requested URL returned error: 401\nwarning: remote HEAD
 refers to nonexistent ref, unable to checkout.\n\nInitialized empty Git
 repository in /disk1/var/tmp/userapps/407034_fb0af09_58a6/27/.git/\n
 jj
 d
 error: The requested URL 

Re: How do I rewrite a url for requests from one domain to another?

2011-02-04 Thread Scott Watermasysk
You might also want to check out RackRewrite which has lots of great features. 

On Feb 4, 2011, at 2:45 AM, John Beynon j...@beynon.org.uk wrote:

 yep, it's redirect inside routes is a 301 redirect by default -
 
 https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/routing/redirection.rb
  - line 41
 
 John.
 
 -- 
 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: amazon simple email service + heroku

2011-02-04 Thread Tim Fletcher
 2) Any sign of a Ruby library?
 Currently only .NET, Java and PHP wrappers.

Yes, there's one here:
https://github.com/drewblas/aws-ses

This might help if you're using Rails 3:

http://robots.thoughtbot.com/post/3105121049/delivering-email-with-amazon-ses-in-a-rails-3-app

Cheers,
Tim

-- 
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: amazon simple email service + heroku

2011-02-04 Thread Miles Smith
I've tried SES and it has an extremely crippling requirement:

Every email must opt-in to recieve an email from SES. If you attempt to
authorize an email account, Amazon sends out a very non-descriptive, cryptic
(for normal users) message that states that Amazon SES would like to send
email to you. It doesn't say anything about my app, nor did I find any way
of modifying the message that's sent.

Still not ready to replace my current email solution with them for that. :(

On Fri, Feb 4, 2011 at 8:21 AM, Tim Fletcher m...@tfletcher.com wrote:

  2) Any sign of a Ruby library?
  Currently only .NET, Java and PHP wrappers.

 Yes, there's one here:
https://github.com/drewblas/aws-ses

 This might help if you're using Rails 3:

 http://robots.thoughtbot.com/post/3105121049/delivering-email-with-amazon-ses-in-a-rails-3-app

 Cheers,
 Tim

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




-- 


Miles Smith
*Owner/Lead Developer*
http://vimae.com/

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or individuals to whom the e-mail is
addressed. This e-mail and any files transmitted with it may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you are not the intended recipient of this e-mail, please immediately notify
the sender and delete and/or destroy the e-mail (along with any files
transmitted with it) and all electronic or hard copies from your system. You
should not, directly or indirectly, use, disclose, distribute, print, or
copy any part of this message if you are not the intended recipient.

-- 
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: amazon simple email service + heroku

2011-02-04 Thread Dan Croak
The only problem we've seen so far is not being able to use the Reply-To
header because THAT email address must be verified:

https://forums.aws.amazon.com/thread.jspa?messageID=220892

That's the typical pattern where your app always sends email (never on
behalf of another user), but you set the sending user's email to the
Reply-To header so the receiver can just reply normally.

We decided to remove the Reply-To feature for now.

On Fri, Feb 4, 2011 at 12:51 PM, Dan Croak dcr...@thoughtbot.com wrote:

 That doesn't appear to be true once you've moved out of their sandbox and
 into the production environment. I just tested this a few seconds ago,
 sending an email via Amazon SES from a Rails app to an email that has never
 received an SES email before.

 The user received only the email from my app, no opt-in email from Amazon.

 On Fri, Feb 4, 2011 at 12:21 PM, Miles Smith mi...@vimae.com wrote:

 I've tried SES and it has an extremely crippling requirement:

 Every email must opt-in to recieve an email from SES. If you attempt to
 authorize an email account, Amazon sends out a very non-descriptive, cryptic
 (for normal users) message that states that Amazon SES would like to send
 email to you. It doesn't say anything about my app, nor did I find any way
 of modifying the message that's sent.

 Still not ready to replace my current email solution with them for that.
 :(

 On Fri, Feb 4, 2011 at 8:21 AM, Tim Fletcher m...@tfletcher.com wrote:

  2) Any sign of a Ruby library?
  Currently only .NET, Java and PHP wrappers.

 Yes, there's one here:
https://github.com/drewblas/aws-ses

 This might help if you're using Rails 3:

 http://robots.thoughtbot.com/post/3105121049/delivering-email-with-amazon-ses-in-a-rails-3-app

 Cheers,
 Tim

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




 --


 Miles Smith
 *Owner/Lead Developer*
 http://vimae.com/

 This e-mail and any files transmitted with it are confidential and
 intended solely for the use of the individual or individuals to whom the
 e-mail is addressed. This e-mail and any files transmitted with it may
 contain confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission. If
 you are not the intended recipient of this e-mail, please immediately notify
 the sender and delete and/or destroy the e-mail (along with any files
 transmitted with it) and all electronic or hard copies from your system. You
 should not, directly or indirectly, use, disclose, distribute, print, or
 copy any part of this message if you are not the intended recipient.

  --
 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: amazon simple email service + heroku

2011-02-04 Thread Miles Smith


How does one remove themselves from the sandbox?

On Fri, Feb 4, 2011 at 9:51 AM, Dan Croak dcr...@thoughtbot.com wrote:

 That doesn't appear to be true once you've moved out of their sandbox and
 into the production environment. I just tested this a few seconds ago,
 sending an email via Amazon SES from a Rails app to an email that has never
 received an SES email before.

 The user received only the email from my app, no opt-in email from Amazon.

 On Fri, Feb 4, 2011 at 12:21 PM, Miles Smith mi...@vimae.com wrote:

 I've tried SES and it has an extremely crippling requirement:

 Every email must opt-in to recieve an email from SES. If you attempt to
 authorize an email account, Amazon sends out a very non-descriptive, cryptic
 (for normal users) message that states that Amazon SES would like to send
 email to you. It doesn't say anything about my app, nor did I find any way
 of modifying the message that's sent.

 Still not ready to replace my current email solution with them for that.
 :(

 On Fri, Feb 4, 2011 at 8:21 AM, Tim Fletcher m...@tfletcher.com wrote:

  2) Any sign of a Ruby library?
  Currently only .NET, Java and PHP wrappers.

 Yes, there's one here:
https://github.com/drewblas/aws-ses

 This might help if you're using Rails 3:

 http://robots.thoughtbot.com/post/3105121049/delivering-email-with-amazon-ses-in-a-rails-3-app

 Cheers,
 Tim

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




 --


 Miles Smith
 *Owner/Lead Developer*
 http://vimae.com/

 This e-mail and any files transmitted with it are confidential and
 intended solely for the use of the individual or individuals to whom the
 e-mail is addressed. This e-mail and any files transmitted with it may
 contain confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission. If
 you are not the intended recipient of this e-mail, please immediately notify
 the sender and delete and/or destroy the e-mail (along with any files
 transmitted with it) and all electronic or hard copies from your system. You
 should not, directly or indirectly, use, disclose, distribute, print, or
 copy any part of this message if you are not the intended recipient.

  --
 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.comheroku%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.




-- 


Miles Smith
*Owner/Lead Developer*
http://vimae.com/

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or individuals to whom the e-mail is
addressed. This e-mail and any files transmitted with it may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you are not the intended recipient of this e-mail, please immediately notify
the sender and delete and/or destroy the e-mail (along with any files
transmitted with it) and all electronic or hard copies from your system. You
should not, directly or indirectly, use, disclose, distribute, print, or
copy any part of this message if you are not the intended recipient.

-- 
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: amazon simple email service + heroku

2011-02-04 Thread Dan Croak
Instructions for requesting production access are here:

http://docs.amazonwebservices.com/ses/latest/DeveloperGuide/index.html?InitialSetup.Customer.html

About three minutes after we submitted the form requesting access, an actual
human from Amazon called us to verify. By the time we hung up the phone, we
had production access.

On Fri, Feb 4, 2011 at 12:54 PM, Miles Smith mi...@vimae.com wrote:

 

 How does one remove themselves from the sandbox?

 On Fri, Feb 4, 2011 at 9:51 AM, Dan Croak dcr...@thoughtbot.com wrote:

 That doesn't appear to be true once you've moved out of their sandbox and
 into the production environment. I just tested this a few seconds ago,
 sending an email via Amazon SES from a Rails app to an email that has never
 received an SES email before.

 The user received only the email from my app, no opt-in email from Amazon.

 On Fri, Feb 4, 2011 at 12:21 PM, Miles Smith mi...@vimae.com wrote:

 I've tried SES and it has an extremely crippling requirement:

 Every email must opt-in to recieve an email from SES. If you attempt to
 authorize an email account, Amazon sends out a very non-descriptive, cryptic
 (for normal users) message that states that Amazon SES would like to send
 email to you. It doesn't say anything about my app, nor did I find any way
 of modifying the message that's sent.

 Still not ready to replace my current email solution with them for that.
 :(

 On Fri, Feb 4, 2011 at 8:21 AM, Tim Fletcher m...@tfletcher.com wrote:

  2) Any sign of a Ruby library?
  Currently only .NET, Java and PHP wrappers.

 Yes, there's one here:
https://github.com/drewblas/aws-ses

 This might help if you're using Rails 3:

 http://robots.thoughtbot.com/post/3105121049/delivering-email-with-amazon-ses-in-a-rails-3-app

 Cheers,
 Tim

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




 --


 Miles Smith
 *Owner/Lead Developer*
 http://vimae.com/

 This e-mail and any files transmitted with it are confidential and
 intended solely for the use of the individual or individuals to whom the
 e-mail is addressed. This e-mail and any files transmitted with it may
 contain confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission. If
 you are not the intended recipient of this e-mail, please immediately notify
 the sender and delete and/or destroy the e-mail (along with any files
 transmitted with it) and all electronic or hard copies from your system. You
 should not, directly or indirectly, use, disclose, distribute, print, or
 copy any part of this message if you are not the intended recipient.

  --
 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.comheroku%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.




 --


 Miles Smith
 *Owner/Lead Developer*
 http://vimae.com/

 This e-mail and any files transmitted with it are confidential and intended
 solely for the use of the individual or individuals to whom the e-mail is
 addressed. This e-mail and any files transmitted with it may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission. If
 you are not the intended recipient of this e-mail, please immediately notify
 the sender and delete and/or destroy the e-mail (along with any files
 transmitted with it) and all electronic or hard copies from your system. You
 should not, directly or indirectly, use, disclose, distribute, print, or
 copy any part of this message if you are not the intended recipient.

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

Hourly cron? No output from heroku logs:cron

2011-02-04 Thread Barry Hoggard
I would submit a ticket, but I get

Oh no.
Something went wrong.

from Zendesk when I click on the support button.

I'm supposed to have a cron running, but if I run

heroku logs:cron --artcal-production

I get no output 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.



Re: My (flawed?) attempt to add or subtract workers via Heroku API.

2011-02-04 Thread rubynoob
Well, lo and behold, its working -- on the Aspen stack, no less!  The
trick was to keep the code block in the controller or model the action
was being called from.

The only thing not working at this point is adding a worker when one
is already running.

heroku.set_workers(ENV['HEROKU_APP'], +1) sets workers to 1, rather
than adding 1 to the total.

heroku.set_workers(ENV['HEROKU_APP'], -1) definitely subtracts a
worker, though.

So I guess I'll try assigning the current number of workers to a
variable, add one to that variable, and place it where the quantity
goes in the set_workers command.

Problem solved!

Thanks again for the help, folks.


On Jan 25, 8:09 am, rubynoob mysmilecent...@gmail.com wrote:
 Dammit!  I pressed the space bar and inadvertently posted before I was
 done typing the message!  :/

 That code block obviously should have and 'end,' so here it is:

 end

 There, I feel better now.

 On Jan 25, 8:06 am, rubynoob mysmilecent...@gmail.com wrote:

  I've been told by Heroku Support that we need to migrate to the Bamboo
  stack, upgrade our heroku and rest-client gems to the latest, and this
  should work.  Thanks to this community's help, I should be able to add
  or subtract workers with just a few lines of code!

  add_heroku_worker
  heroku = Heroku::Client.new(ENV['HEROKU_USERNAME'],
  ENV['HEROKU_PASSWORD'])
  heroku.set_workers(ENV['HEROKU_APP'], +1)

  Thanks, everyone!
  Jim

  On Jan 21, 10:07 am, rubynoob mysmilecent...@gmail.com wrote:

   @Pedro:

   Here's a link to the stack 
   trace:https://docs.google.com/document/d/1ntWg7PKgyOnSmAVkURW00O5i_LEDFdRsc...

   We're using RestClient gem version 1.4.2 with the Heroku gem version
   1.17.8, FWIW.

   @Chris:  That is good to know.  So it sounds like I don't need to
   introduce a lag as Keenan suggests.

   Thanks,
   Jim

   On Jan 21, 9:01 am, Chris Hanks christopher.m.ha...@gmail.com wrote:

You can start up as many workers (or dynos, for that matter) as you
want through the command line. 24 is just how high the slider goes on
the pricing page.

On Jan 21, 7:52 am, rubynoob mysmilecent...@gmail.com wrote:

 I may misunderstand how workers get charged on heroku, but from what
 I've seen 
 athttp://docs.heroku.com/background-jobsandhttp://docs.heroku.com/delay...,
  workers get charged $0.05/hr each
 no matter how many are running, pro-rated to the second.  The maximum
 workers per account seems to be 24 (that's where the slider stops on
 their Resources page).

 The jobs being delayed won't be created faster than one every 30
 seconds, so I assumed the first worker would spin up and grab the
 first job, then when the second job gets queued, a second worker would
 start, grabbing the second job, and so on.  Each job would process in
 it's own worker, which would then get shut down when the job
 completes.  One worker running three jobs that take a total of fifteen
 minutes to process should get charged the same as three workers
 running one job each for five minutes.  If I'm mistaken, let me know.

 Thanks,
 Jim

 On Jan 20, 4:57 pm, Keenan Brock kee...@thebrocks.net wrote:

  Also a thought.

  You will need to introduce a lag when you are determining if you 
  need more or less delayed job workers.

  Otherwise you will spin up too many DJs too quickly. And add/remove 
  them very often. Incurring extra charges.

  Smugmug spoke about this when they were talking about their on 
  demand photo processors a few years back.

  --Keenan

  On Jan 20, 2011, at 6:06 PM, Pedro Belo pe...@heroku.com wrote: 
  That was a good call, you definitely don't want to store variables 
  in
   config vars. Save if for constants (passwords, urls, etc).

   It seems like you might be getting an error due to different 
   versions
   of RestClient, not sure though. What version are you using? 
   What's the
   stack trace for the exception?

   On a side note, if it helps you can call heroku workers passing
   relative values, like +3, -1, etc.

   On Thu, Jan 20, 2011 at 12:00 PM, rubynoob 
   mysmilecent...@gmail.com wrote:
   Instead of storing the count of active workers as a heroku config
   variable, I decided to create a table in our database to store 
   the
   value in.
   So now I've got the problem narrowed down to the last line in the
   method.  Here's the block of code I've now got:

   add_heroku_worker
                  heroku = 
   Heroku::Client.new(ENV['HEROKU_USERNAME'],
   ENV['HEROKU_PASSWORD'])
                  myapp = 
   heroku.config_vars(ENV['HEROKU_APP'])[HEROKU_APP]
                  worker_count = WorkerCount.find(1)  # now I'm 
   storing the current
   number of active workers in a table that will always only have 
   one
   record.
                  workers =