Re: for everyone who complete the ruby on rails tutorial by M. hartl

2015-09-21 Thread John McCaffrey
awesome!

thanks for sharing the solution, it will help the next person

On Mon, Sep 21, 2015 at 2:40 PM, Juan Cabrera  wrote:

> I found the solution here:
>
>
> http://stackoverflow.com/questions/16125581/heroku-messing-up-css-following-hartls-rails-tutorial
>
> thanks,
>
> Run bundle exec rake assets:precompile to compile the assets incl. the
> stylesheets into the public hierarchy that is being used by Heroku.
>
> When done:
>
> git add -A
>
> git commit -m "Precompiled assets" and finally
>
> git push and git push heroku
>
>
>
>
> On Monday, September 21, 2015 at 1:29:33 PM UTC-4, j_McCaffrey wrote:
>>
>> Are you missing some css or something?
>>
>> I would look in dev-tools in the browser to see if there are any errors.
>> Areas to investigate:
>> 1. Are there any files that did not get checked in?
>> 2. Are there any css/js files that did not get properly handled by the
>> asset pipeline?
>> 3. Are there any errors in the browser? (does it render differently in
>> different browsers?)
>> 4. Are there any errors in the heroku logs?
>>
>>
>> You might find that others have run into this same issue and posted
>> questions/answers on StackOverflow or directly on the RailsTutorial site.
>>
>> Let us know how you end up resolving it!
>>
>>
>> On Mon, Sep 21, 2015 at 10:48 AM, Juan Cabrera  wrote:
>>
>>>
>>>
>>>
>>> 
>>> 
>>>
>>>
>>> my App is ok in development environment(local machine)... but when i
>>> deploy to heroku producction this happen.
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Heroku" group.
>>>
>>> To unsubscribe from this group, send email to
>>> heroku+un...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/heroku?hl=en_US?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Heroku Community" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to heroku+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Thanks,
>> -John
>>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Heroku Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to heroku+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks,
-John

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: for everyone who complete the ruby on rails tutorial by M. hartl

2015-09-21 Thread John McCaffrey
Are you missing some css or something?

I would look in dev-tools in the browser to see if there are any errors.
Areas to investigate:
1. Are there any files that did not get checked in?
2. Are there any css/js files that did not get properly handled by the
asset pipeline?
3. Are there any errors in the browser? (does it render differently in
different browsers?)
4. Are there any errors in the heroku logs?


You might find that others have run into this same issue and posted
questions/answers on StackOverflow or directly on the RailsTutorial site.

Let us know how you end up resolving it!


On Mon, Sep 21, 2015 at 10:48 AM, Juan Cabrera  wrote:

>
>
>
> 
> 
>
>
> my App is ok in development environment(local machine)... but when i
> deploy to heroku producction this happen.
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Heroku Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to heroku+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks,
-John

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 400 Bad Request When Sending Post Request

2015-08-17 Thread John McCaffrey
If you look at the logs do you see a difference in what you are sending in
when it works from the form vs server post?

Is it because of the security token (the hidden form value rails adds to
forms)

On Mon, Aug 17, 2015 at 4:37 PM, Dana Baillie  wrote:

> Hi we have a Ruby on Rails server application on Heroku.  When I send a
> post request to it, I always get a 400 Bad Request response. I have
> searched other 400 errors, but none are related to our issue. The HTTP
> response that we receive looks like this below:
>
> HTTP/1.1 400 Bad Request
>
> Server: Cowboy
>
> Date: Fri, 14 Aug 2015 21:55:25 GMT
>
> Content-Length: 0
>
> The post request that I am sending looks like this below:
>
> POST http://ourapp.herokuapp.com/api/v1/requests HTTP/1.0
>
> Accept-Language: en-us
>
> Accept: text/plain
>
> Content-Type: application/x-www-form-urlencoded
>
> Content-Length: 38
>
> Connection: Close
>
> request=600&key=&newKey=danasecretkey&
>
> If I create an HTML form to send the data, there is no issue. It's when I
> try to send the same request from our file server, that I get the errors. I
> tried using a preflight request with all of the correct request headings,
> but received the same 400 Bad Request error.  It's the same whether I use
> HTTP or HTTPS.
>
>
> Does anyone have any suggestions as to what I might be doing wrong?
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Heroku Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to heroku+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks,
-John

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Watir on heroku

2014-04-01 Thread John McCaffrey
I've never combined multiple buildpacks, but it is possible

https://github.com/ddollar/heroku-buildpack-multi

let us know how it works out!
I think there are others that want to use a scraper like phantomjs, and a
website in the same app.


On Tue, Apr 1, 2014 at 5:11 PM, Nícolas Iensen  wrote:

> Thanks John, I was reading about phantomjs and it looks awesome!
>
> I have a Rails application, and I want to use phantomjs in a rake task.
> But when I use the buildpack you mentioned the Rails app goes down.
>
> Do you know how can I use phantomjs only on the rake tasks, and keep using
> Rails environment for the web server?
>
>
> On Tue, Apr 1, 2014 at 6:46 PM, John McCaffrey 
> wrote:
>
>> I like using phantomjs for scraping, though I haven't used it on heroku
>> yet.
>>
>> I see there is a buildpack
>> https://github.com/stomita/heroku-buildpack-phantomjs
>>
>> this example might be helpful
>> http://benjaminbenben.com/2013/07/28/phantomjs-webserver/
>>
>>
>> On Mon, Dec 20, 2010 at 4:11 AM, Josal  wrote:
>>
>>> Hi, guys.
>>>
>>> I want to scrap an HTML site which is using javascript to generate the
>>> contents. So, I can't use mechanize gem or similar ones. I've tried
>>> rdom and taka with johnson, but still some problems (I could give you
>>> more details). The best and easiest option I have at the moment is to
>>> use watir (or selenium or celerity for jruby). I've selected watir,
>>> it's simple, the watir gem or even the watir-webdriver gem. I like
>>> them. But I have two problems:
>>>
>>> - I want to deploy the app in heroku but I get the error: "Could not
>>> find Firefox binary (os=linux)".
>>> - I don't know if it's possible to access to the watir logic without
>>> the need of the browser binary (and without open it in background).
>>>
>>> I currently have an answer here:
>>>
>>> http://stackoverflow.com/questions/3597118/can-you-deploy-watir-on-heroku-to-generate-html-snapshots-if-so-how
>>> ,
>>> but I just wanted to confirm the options I have.
>>>
>>> I write a watir-webdriver example, working well in local, to ilustrate
>>> the simple process (in this case html is not dynamically generated, of
>>> course, it's only an example):
>>>
>>>   require "rubygems"
>>>   require "watir-webdriver"
>>>   require "watir-webdriver/extensions/wait"
>>>
>>>   browser = Watir::Browser.new :firefox
>>>   browser.goto "http://google.com";
>>>   browser.text_field(:name, 'q').set "watir-webdriver"
>>>   browser.button(:name, 'btnG').click
>>>
>>> Maybe the only option I have is to use EC2, but it's a pitty because I
>>> only need to scrap javascript-generated HTML and I want to keep on
>>> using heroku, I love it!!!
>>>
>>> What do you think is the best gem for me to do it on heroku? Or
>>> there's no option and I have to use EC2 just to open a browser, losing
>>> the heroku goodness?
>>>
>>> Thanks in advance
>>>
>>> --
>>>
>>> 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.
>>>
>>>
>>
>>
>> --
>> Thanks,
>> -John
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Heroku" group.
>>
>> 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_US?hl=en
>>
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Heroku Community" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/heroku/ePZ-Ws263Ug/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> heroku+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Nícolas Iensen
>
> --
> --
> You received this message because

Re: Watir on heroku

2014-04-01 Thread John McCaffrey
I like using phantomjs for scraping, though I haven't used it on heroku yet.

I see there is a buildpack
https://github.com/stomita/heroku-buildpack-phantomjs

this example might be helpful
http://benjaminbenben.com/2013/07/28/phantomjs-webserver/


On Mon, Dec 20, 2010 at 4:11 AM, Josal  wrote:

> Hi, guys.
>
> I want to scrap an HTML site which is using javascript to generate the
> contents. So, I can't use mechanize gem or similar ones. I've tried
> rdom and taka with johnson, but still some problems (I could give you
> more details). The best and easiest option I have at the moment is to
> use watir (or selenium or celerity for jruby). I've selected watir,
> it's simple, the watir gem or even the watir-webdriver gem. I like
> them. But I have two problems:
>
> - I want to deploy the app in heroku but I get the error: "Could not
> find Firefox binary (os=linux)".
> - I don't know if it's possible to access to the watir logic without
> the need of the browser binary (and without open it in background).
>
> I currently have an answer here:
>
> http://stackoverflow.com/questions/3597118/can-you-deploy-watir-on-heroku-to-generate-html-snapshots-if-so-how
> ,
> but I just wanted to confirm the options I have.
>
> I write a watir-webdriver example, working well in local, to ilustrate
> the simple process (in this case html is not dynamically generated, of
> course, it's only an example):
>
>   require "rubygems"
>   require "watir-webdriver"
>   require "watir-webdriver/extensions/wait"
>
>   browser = Watir::Browser.new :firefox
>   browser.goto "http://google.com";
>   browser.text_field(:name, 'q').set "watir-webdriver"
>   browser.button(:name, 'btnG').click
>
> Maybe the only option I have is to use EC2, but it's a pitty because I
> only need to scrap javascript-generated HTML and I want to keep on
> using heroku, I love it!!!
>
> What do you think is the best gem for me to do it on heroku? Or
> there's no option and I have to use EC2 just to open a browser, losing
> the heroku goodness?
>
> Thanks in advance
>
> --
> 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.
>
>


-- 
Thanks,
-John

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Headless Processing on Heroku

2013-10-15 Thread John McCaffrey
I use phantomJs to login/scrape data from a site, then I put that data in a
db.

It runs a full browser, with javascript events, ajax, etc.

1. login to a secure site, navigate to a list of orders
2. pull down data for each order and write it to a file
3. process each file and write to the database.

I use phantom for step 1 and step 2, and have multiple workers executing at
the same time (because of I/O and network delays)

I have a separate ruby process that picks up the new files and does the
processing. (and I can fire up multiple workers of this type if I need to)

CasperJs  is a nice addition that can make writing
your scripts even easier



On Tue, Oct 15, 2013 at 10:52 AM, Jack R-G  wrote:

> PhantomJS looks interesting.  Can it 1) Read/write a Postgres database,
> and 2) Fill in form fields and submit forms, with the javascript associated
> with the various events firing automatically.  I looked at the PhantomJS
> website but didn't find any examples of these uses; it would be helpful if
> you could point me at examples.
>
> If PhantomJS cannot access Postgres, is there a typical usage pattern for
> PhantomJS code that uses it as a helper to retrieve pages and return them
> to the caller for further processing?
>
>
> On Monday, October 14, 2013 11:38:07 AM UTC-7, j_McCaffrey wrote:
>
>> I can't address your specific situation, but can recommend phantomjs
>> instead
>>
>> https://github.com/stomita/**heroku-buildpack-phantomjs
>>
>>
>> On Mon, Oct 14, 2013 at 1:12 PM, Jack Royal-Gordon wrote:
>>
>>> I'm trying to scrape some websites that rely on Javascript, so I found this
>>> article
>>>  discussing
>>> Watir and headless processing.  I ran into the following
>>> exception: Headless::**Exception: Xvfb not found on your system.  So I
>>> started researching Xvfb and discovered that it is a stand-alone display
>>> server.  So I started looking into how to get it installed on Heroku,
>>> I found a gist  where the
>>> author is discussing building a static linked binary, but he doesn't really
>>> come to a successful conclusion.  I've also seen mention of using a custom
>>> build-pack, but nothing definite there either.
>>>
>>> Does anyone have experience with this and can offer some advice on how
>>> to proceed?
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Heroku" group.
>>>
>>> To unsubscribe from this group, send email to
>>> heroku+un...@**googlegroups.com
>>>
>>> For more options, visit this group at
>>> http://groups.google.com/**group/heroku?hl=en_US?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Heroku Community" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to heroku+un...@**googlegroups.com.
>>>
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>
>>
>>
>> --
>> Thanks,
>> -John
>>
>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Heroku Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to heroku+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Thanks,
-John

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Headless Processing on Heroku

2013-10-14 Thread John McCaffrey
I can't address your specific situation, but can recommend phantomjs instead

https://github.com/stomita/heroku-buildpack-phantomjs


On Mon, Oct 14, 2013 at 1:12 PM, Jack Royal-Gordon  wrote:

> I'm trying to scrape some websites that rely on Javascript, so I found this
> article
>  discussing
> Watir and headless processing.  I ran into the following
> exception: Headless::Exception: Xvfb not found on your system.  So I
> started researching Xvfb and discovered that it is a stand-alone display
> server.  So I started looking into how to get it installed on Heroku,
> I found a gist  where the
> author is discussing building a static linked binary, but he doesn't really
> come to a successful conclusion.  I've also seen mention of using a custom
> build-pack, but nothing definite there either.
>
> Does anyone have experience with this and can offer some advice on how to
> proceed?
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Heroku Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to heroku+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Thanks,
-John

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Issue with Google indexing caused by herokuapp domain

2013-09-09 Thread John McCaffrey
when I click or enter the naked/root domain dogiamsf.com, it resolves to
http://dogiamsf.herokuapp.com/ in the browser, so it makes sense that
google is seeing the same thing.

You probably just need to review your dns setup and double check everything
according to the docs for how to set up Root domains.

https://devcenter.heroku.com/articles/custom-domains

> host dogiamsf.com
dogiamsf.com has address 184.168.221.23
dogiamsf.com has address 75.101.145.87
dogiamsf.com has address 75.101.163.44
dogiamsf.com has address 174.129.212.2
dogiamsf.com mail is handled by 0 smtp.secureserver.net.
dogiamsf.com mail is handled by 10 mailstore1.secureserver.net.

> host  www.dogiamsf.com
www.dogiamsf.com is an alias for dogiamsf.herokuapp.com.
dogiamsf.herokuapp.com has address 50.17.218.27



On Sun, Sep 8, 2013 at 8:34 PM, viciousesque
wrote:

> This seems like it must be a common issue, but I haven't found much help
> so far.
>
> My new app/site is failing to rank on Google searches at all because the
> naked url links (e.g. dogiamsf.com) resolve to dogiamsf.herokuapp.com. To
> be clear, this only happens in the Google results. If you just type that in
> or follow a link structured as dogiamsf.com my defined custom domain
> resolves and displays as expected. The Google bot is apparently really
> unhappy about this because a search of site:www.dogiamsf.com returns no
> results at all and my site NEVER appears in relevant search results (e.g.
> 'sf dog walkers').
>
> I defined my custom domains through the cl tool, and again both the naked
> and 'www' forms work as expected when a user just types or clicks. It's
> only the Google bot's request that resolves to the herokuapp structure.
>
> Has anyone seen this issue before? Any thoughts on where to start working
> to fix?
>
> Thanks!
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Heroku Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to heroku+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Thanks,
-John

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Google Maps Integration

2013-08-13 Thread John McCaffrey
everything works when you try your app locally?

On Mon, Aug 12, 2013 at 10:47 PM, Oshane Bailey  wrote:

> For some reason, i can't comprehend as yet, Google maps is not working on
> my heruko instance.. the url and so forth is correct in my api console
> yet,... google maps disable its function on heruko. Does anyone know how to
> get around this.
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Heroku Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to heroku+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Thanks,
-John

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Search form works on local machine, but not on heroku!

2013-07-30 Thread John McCaffrey
Do you think it is the acts_as_indexed gem, and how it writes to the
filesystem?

https://github.com/dougal/acts_as_indexed/issues/29

try taking that out and see if you still get the error. It seems like a
good place to start (or any gem that does something outside of the heroku
norm)

On Tue, Jul 30, 2013 at 5:33 AM, Steven Stadler wrote:

>
> Hey guys! I did create a search form for an extension of the standard
>> refniery app. This extension stands for publications which can be found
>> with three search terms like "author", "date" and "title".
>> It works on my local machine. After I deploy it to heroku I just get this
>> error message ... "We're sorry, but something went wrong."
>> I hope someone can help me ...
>>
>> Here is a part of the full log:
>>
>> 2013-07-30T10:14:32.782472+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**rack-cache-1.2/lib/rack/cache/**context.rb:143:in
>>> `pass'
>>> 2013-07-30T10:14:32.782472+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**rack-cache-1.2/lib/rack/cache/**context.rb:155:in
>>> `invalidate'
>>> 2013-07-30T10:14:32.782472+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**rack-cache-1.2/lib/rack/cache/**context.rb:51:in
>>> `call'
>>> 2013-07-30T10:14:32.782472+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**rack-cache-1.2/lib/rack/cache/**context.rb:136:in
>>> `forward'
>>> 2013-07-30T10:14:32.782472+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**actionpack-3.2.13/lib/action_**
>>> dispatch/middleware/static.rb:**63:in `call'
>>> 2013-07-30T10:14:32.782114+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**activesupport-3.2.13/lib/**
>>> active_support/cache/strategy/**local_cache.rb:72:in `call'
>>> 2013-07-30T10:14:32.782624+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**rack-1.4.5/lib/rack/handler/**webrick.rb:59:in
>>> `service'
>>> 2013-07-30T10:14:32.782624+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**railties-3.2.13/lib/rails/**rack/log_tailer.rb:17:in
>>> `call'
>>> 2013-07-30T10:14:32.782472+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**railties-3.2.13/lib/rails/**engine.rb:479:in
>>> `call'
>>> 2013-07-30T10:14:32.782624+00:**00 app[web.1]:
>>> vendor/ruby-2.0.0/lib/ruby/2.**0.0/webrick/server.rb:295:in `block in
>>> start_thread'
>>> 2013-07-30T10:14:32.782472+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**rack-cache-1.2/lib/rack/cache/**context.rb:71:in
>>> `call!'
>>> 2013-07-30T10:14:32.782624+00:**00 app[web.1]:
>>> 2013-07-30T10:14:32.782624+00:**00 app[web.1]:
>>> vendor/ruby-2.0.0/lib/ruby/2.**0.0/webrick/httpserver.rb:94:**in `run'
>>> 2013-07-30T10:14:32.782624+00:**00 app[web.1]:
>>> 2013-07-30T10:14:32.782472+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**rack-1.4.5/lib/rack/content_**length.rb:14:in
>>> `call'
>>> 2013-07-30T10:14:32.782624+00:**00 app[web.1]:
>>> vendor/ruby-2.0.0/lib/ruby/2.**0.0/webrick/httpserver.rb:138:**in
>>> `service'
>>> 2013-07-30T10:14:32.782472+00:**00 app[web.1]:
>>> vendor/bundle/ruby/2.0.0/gems/**railties-3.2.13/lib/rails/**application.rb:223:in
>>> `call'
>>> 2013-07-30T10:14:32.784993+00:**00 app[web.1]:   Rendered
>>> vendor/extensions/**publications/app/views/**refinery/publications/**publications/index.html.erb
>>> within layouts/application (721.8ms)
>>> 2013-07-30T10:14:32.784993+00:**00 app[web.1]: Completed 500 Internal
>>> Server Error in 738ms
>>> 2013-07-30T10:14:32.784993+00:**00 app[web.1]: Processing by
>>> Refinery::Publications::**PublicationsController#search as HTML
>>> 2013-07-30T10:14:32.784993+00:**00 app[web.1]:   Parameters:
>>> {"utf8"=>"✓", "authenticity_token"=>"**88vYJKWcs7Xjb/**
>>> OGHVYg13AW5SibRJGk8OvQrbeliqA=**", "search_author"=>"ang",
>>> "search_title"=>"", "search_year"=>"", "commit"=>"Search", "locale"=>:en}
>>>
>>
>> My routes (from the extension):
>>
>>> Refinery::Core::Engine.routes.**append do
>>>
>>>   # Frontend routes
>>>   namespace :publications do
>>> resources :publications, :path => '', :only => [:index, :show]
>>> match '/get_pubs' => 'publications#search'
>>>   end
>>>
>>>
>>>   # Admin routes
>>>   namespace :publications, :path => '' do
>>> namespace :admin, :path => 'refinery' do
>>>   resources :publications, :except => :show do
>>> collection do
>>>   post :update_positions
>>> end
>>>   end
>>> end
>>>   end
>>>
>>> end
>>
>>
>> My search form:
>>
>>> <% content_for :body do %>
>>>   
>>>
>>> <%= form_tag "/publications/get_pubs", method: :post do %>
>>> 
>>> 
>>> 
>>>   Author:
>>> 
>>> 
>>>   Title:
>>>   
>>>   
>>>   Year:
>>>   
>>>   
>>> 
>>> 
>>>   <%= text_field_tag :search_author, '' %>
>>> 
>>> 
>>>   <%= text_field_tag :search_title, '' %>
>>>   
>>>   
>>>   <%= text_field_tag :search_year, '' %>
>>>   
>>>   
>>>   
>>>   <%= submit_tag "Search" %>
>>> <% end %>
>>
>> .
>>>
>>
>> My Model:
>>
>>> module Refinery
>>>   module Publications
>>> class Publication < Refinery::Core::BaseModel
>>>

Re: PDTFTK on Cedar stack

2012-10-02 Thread John McCaffrey
Thanks for sharing the info!

I figured that someone would have a public buildpack of pdftk, and figured
this out already.

I imagine you saw this:
http://stackoverflow.com/questions/7128855/statically-compile-pdftk-for-heroku-need-to-split-pdf-into-single-page-files


I have an app that is hosted on rackspace, but I have staging and qa
servers set up on heroku, so I can demo changes to my client prior to
pushing to prod. Right now I just disable the pdf functions in those
environments, but I'd really like to get it working.

On Tue, Oct 2, 2012 at 7:25 AM, vincent daubry  wrote:

> I had an answer from the Heroku team : the solution is to build PDFTK on
> heroku from source and vendor the resulting binary with your app. I've not
> yet managed to get this working, in the meantime i created another app on
> bamboo to do the PDTK job and exchange HTTP messages with my main app on
> cedar
>
> Anyway it's possible and here are some articles explaining how to do it :
>
>
> http://www.ryandaigle.com/a/using-vulcan-to-build-binary-dependencies-on-heroku
>
>
> http://theprogrammingbutler.com/blog/archives/2011/07/28/running-pdftotext-on-heroku/
> If you get some results please let me know.
>
> Hope this helps,
> Vincent
>
> Le lundi 1 octobre 2012 18:47:18 UTC+2, parth shah a écrit :
>
>> Hi,
>> we have a similar requirement for pdftk on cedar stack. Have you found a
>> way to install pdftk on Cedar stack?
>>
>> Thanks
>> Parth
>>
>> On Thursday, August 23, 2012 8:13:46 AM UTC-7, vincent daubry wrote:
>>>
>>> Hi,
>>>
>>> We have a book application which heavily manipulates pdf on heroku
>>> bamboo stack.
>>>
>>> We use PDFTK which is installed by default on Bamboo. It seems it's no
>>> longer the case on Cedar. Is there a way for us to use PDFTK on Cedar ?
>>>
>>> On Bambo :
>>> >> `pdftk`
>>> => "SYNOPSIS\n   pdftk \n\t
>>>  [input_pw ]\n\t[
>>> ]\n\t[output ]\n\t
>>>  [encrypt_40bit | encrypt_128bit]\n\t[allow ]\n\t
>>>  [owner_pw ]\n\t[user_pw >> PROMPT>]\n\t[flatten] [compress | uncompress]\n\t[keep_first_id |
>>> keep_final_id] [drop_xfa]\n\t[verbose] [dont_ask | do_ask]\n
>>> Where:\n\t may be empty, or:\n\t[cat | attach_files |
>>> unpack_files | burst |\n\t fill_form | background | stamp |
>>> generate_fdf\n\t dump_data | dump_data_fields | update_info]\n\n
>>> For Complete Help: pdftk --help\n"
>>> >> exit
>>>
>>> On Cedar :
>>> >> `pdftk`
>>> script/rails: No such file or directory - pdftk
>>> => nil
>>>
>>>
>>> Thanks,
>>> Vincent
>>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>



-- 
Thanks,
-John

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Using Prawn with Highcharts

2012-07-20 Thread John McCaffrey
is this a heroku problem? (like it works locally, but not on heroku?)

you might get a better answer in a highcharts specific group, or on
stackoverflow

On Thu, Jul 19, 2012 at 9:18 PM, Bada Dayo (El nino) wrote:

> Hi Friends,
>
> I just working on an app where users can log in, input information which
> is processed by the app and i use highchart to generate a PDF of the input
> in a table format, how do i add the Highchart "Pie Chart" on it too
>
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>



-- 
Thanks,
-John

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Heroku plugin for bug-tracking / code-review

2012-07-11 Thread John McCaffrey
There are other places besides github to host your code, if you are open to
them. (and it doesn't annoy the team to be on something else).

https://bitbucket.org has free private git repos, which might be worth a
quick look (free for up to 5 people).

On Tue, Jul 10, 2012 at 4:52 PM, Vighnesh Rege wrote:

> Hey guys,
>
> Would you have any recommendations for bug-tracking/code-review tools
> that works very well with Heroku app git repos?
>
> I was thinking of creating a separate repo on github and pushing to
> both - that seems like a lot of work though.
>
> Thanks,
> Vighnesh
>
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>



-- 
Thanks,
-John

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Timeouts uploading with dragonfly

2012-06-22 Thread John McCaffrey
I would love some info around this problem as well.

Carrierwave Direct is the only thing I'm aware of, but I hope you post
whatever solution ends up working for you.



On Thu, Jun 21, 2012 at 8:40 PM, Dave Perrett wrote:

> Hi, we're trying to upload relatively large images (~5MB) to S3 via
> heroku/cedar/rails-3.2.3/**dragonfly, and are hitting the 30-second
> cutoff pretty consistently. Has anyone found a workaround for uploading
> large files? I'm exploring a couple of options :
>
> 1) Upload directly to S3, bypassing heroku. This would be ideal, but
> haven't figured out yet how to integrate this with dragonfly, as it seems
> to rely on a specific combo of mime types and a metadata file to display
> properly.
>
> 2) Streaming the request somehow (https://devcenter.heroku.com/**
> articles/request-timeout)
> with the 'Transfer-Encoding: Chunked' header. I've toyed with this but I
> think this is more targeted at streaming outgoing responses rather than
> incoming uploads (?). This looks similar (http://icelab.com.au/**
> articles/money-stress-and-the-**cloud/)
> but again I don't think it will help with incoming data.
>
> 3) Switch to something like https://github.com/dwilkie/**
> carrierwave_direct  - this
> will be a fairly major change, and we'd like to avoid it if possible.
>
> Any suggestions or experiences handling large uploads?
>
> Cheers,
>
> Dave
>
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> To unsubscribe from this group, send email to
> heroku+unsubscribe@**googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/heroku?hl=en_US?hl=en
>



-- 
Thanks,
-John

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Diagnosing outage

2012-06-08 Thread John McCaffrey
Also, its good to follow @herokustatus on twitter

The new relic add-on has a ping feature which is useful.

The StillAlive add-on goes a bit further with a full functional test (but
doesn't run as frequently).

On Fri, Jun 8, 2012 at 3:33 AM, Neil Middleton wrote:

> You'll have trouble diagnosing this outage as the platform was at fault,
> not your application.  The routing layer was having issues for a few
> minutes meaning that HTTP requests would not have been able to reach your
> application (and as this happens in a layer above your application would
> not show in your logs).
>
> Aside from this there are a number of logging options.  The default Heroku
> provided logging add-ons allow you to view up to 24 hours, whereas add-ons
> such as Papertrail allow you to go back pretty much as far as you want (I
> use Papertrail a fair amount on my apps and find it very useful)
>
> More info on Logging / Syslog (how Papertrail works) can be found here:
> https://devcenter.heroku.com/articles/logging
>
> In the meantime, it's a good idea to bookmark the Heroku status site (
> http://status.heroku.com) as, generally speaking, any issues that are
> outside of your control will appear here with more information.
>
> On Thursday, 7 June 2012 at 23:32, puzzler wrote:
>
> I've been testing out heroku, with a paid account, to determine
> reliability.
> Got a message from my pingdom account today that my server was down
> for a half-hour.
>
> Looking through the logs for the time in question, I see nothing.
> Specifically, I don't see the router process even reporting that it
> received the pings for the half-hour in question.
>
> One possibly suspicious thing I see is that a half-hour before that, I
> see a web dyno process exiting with code 143 and then restarting, and
> I can't find any documentation about what that means.
>
> Another possibly suspicious thing is that in the two requests
> immediately following the half-hour blank spot in the log, the
> requests show a "wait time" of about 15ms. The amount seems
> insignificant, but this web server sees so little traffic that the
> wait time is always 0ms. I find it suspicious that the two requests
> immediately following the outage would be the only requests I've ever
> seen to show a wait time.
>
> The main thing I'm realizing is that I really have no idea how to
> troubleshoot outages. The logs that show up when you type "heroku
> logs" really don't go back that far. Is there a way to get them to go
> back farther? How do I look up what specific exiting codes mean? Any
> idea what could cause web requests to not get through to my app and
> show up in the logs for a half-hour?
>
> Thanks,
>
> mark
>
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>



-- 
Thanks,
-John

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: postgres query help

2012-05-18 Thread John McCaffrey
I would try to reproduce it locally, and see which index combinations are
best (pull down prod data if you can).

You can also run the explain from the heroku console, to get feedback about
how the postgres query planner is looking up the data.

Most likely you need to add an index on lastreport, if that index should
really only contain entries for the last 90 days (or whatever your interval
is), you can also use a special postgres feature called a partial index.
(the index only contains entries that match a constraint, like lastreport >
'01-01-2012', and can really speed things up. you update that index every
month or whatever to drop off stuff that isn't relevant)

The planner will tell you if it is able to combine your existing individual
indexes to get all the data it needs. If you always query these columns, it
might be better to do a single index, but you'll have to test that and see.
(which I think is just a lot easier to do locally)


On Thu, May 17, 2012 at 1:50 PM, Josh Coffman  wrote:

> In this rails 3.2 app, New Relic is showing location#find is taking a lot
> of time from a particular controller method. I have users & locations;
> location belongs to user. the user_id column is indexed, and there is a
> "timestamp" column which is also indexed. I recently added a column called
> "lastreport" which is also a date time field but not indexed. The resulting
> query filters on user_id, and timestamp, and where timestamp + interval is
> less than or equal to lastreport. Should I create a composite index on all
> 3 columns? Is adding an index on just "lastreport" enough?
>
> This is causing me grief today. Any help is appreciated.
>
> Thanks,
> Josh
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> 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_US?hl=en
>



-- 
Thanks,
-John

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

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_US?hl=en


Re: Cloudfront

2012-04-04 Thread John McCaffrey
I  used the free account on cloudflare, and had good results. Also used
unicorn with 4 workers on heroku

On Wed, Apr 4, 2012 at 9:41 PM, Arun Thampi  wrote:

> We use Cloudfront's Custom Origin Server to point to our Rails app instead
> of an S3 bucket. This removes the need to sync assets to an S3 bucket. We
> used Open Government's tutorial [1] as a base and built upon it to improve
> it slightly [2].
>
> [1]
> http://blog.opengovernment.org/2011/02/10/cloudfront-s3-rails-and-jammit-on-apache/
>
> [2]
> http://dev.anideo.com/2012/01/03/how-we-setup-amazon-cloudfront-to-play-nice-with-rails.html
>
>
> On Thu, Apr 5, 2012 at 10:37 AM, Peter Keen wrote:
>
>> I use asset_sync[1] on the one project where I push stuff to
>> S3/cloudfront. It works great and is basically automatic.
>>
>> [1]: https://github.com/rumblelabs/asset_sync
>>
>> On Wed, Apr 4, 2012 at 7:21 PM, railsnerd  wrote:
>> > Hi there
>> >
>> > My site has a lot of static pages, and I'm hoping I can use Cloudfront
>> > to host them and stop requests hitting Heroku.
>> >
>> > (Yes I know there are other possibilities like memcached and varnish)
>> >
>> > Does anyone know of a good guide in setting this up?  It's not very
>> > clear to me.
>> >
>> > thanks
>> >
>> > --
>> > 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.
>>
>>
>
>
> --
> It's better to be a pirate than join the Navy - Steve Jobs
> http://mclov.in | @iamclovin
>
> --
> 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.
>



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



Re: confused about best practices for CNAME records

2012-04-03 Thread John McCaffrey
I don't think of it as heroku suggesting that you have to do it with a
CNAME, but Neil's post highlights why you might want to.
 
http://neilmiddleton.com/the-**dangers-of-a-records-and-**heroku

I think of it like apple including their 'time machine' backup software
means you'd buy a backup drive. They aren't saying you absolutely have to
do it, but its a good idea for a variety of reasons.

You can use an A record and the ip addresses, it will work fine, but if
there is an outage and they have to bring your app up on other IPs, you'll
at least have a heads up for what you can do about it.

Personally I like dnsimple.com, so I don't think of it as an extra thing I
have to do, but as an extra reason I like their service, like they are
helping me manage my app in a way that stays current with hosting on a
cloud solution like heroku, openshift, cloudbees, etc.

On Tue, Apr 3, 2012 at 7:32 PM, Justin Collum  wrote:

> So to use Heroku the way they'd like me to -- without an A record pointing
> to an IP address -- I'll have to use a third party paid service? What the
> heck. The fact that Heroku suggests doing this while the spec doesn't
> support it without workarounds makes me question how important it is. This
> DNS thing has been doing it the same way for quite some time.
>
> I think I'll just use the A record until we run into a problem. This app
> won't be hurt if it's offline for a half day.
>
>
> On Tuesday, April 3, 2012 1:49:43 AM UTC-7, Neil Middleton wrote:
>>
>> Ideally you want everything to be a CNAME of your Heroku URL (
>> app.herokuapp.com etc).  The problem is is that the DNS spec doesn't
>> allow the Apex domain to be CNAME'ed.  The solution is to use Zerigo or
>> DNSimple who provide workarounds.
>>
>> Full writeup here:  http://neilmiddleton.com/the-**
>> dangers-of-a-records-and-**heroku/
>>
>>
>> Neil
>>
>> On Tuesday, 3 April 2012 at 01:24, Justin Collum wrote:
>>
>> Hi, I have an app that's set up at http://gentle-wind-.**
>> herokuapp.com/ . On my 
>> hover.comaccount in the DNS I have two records:
>>
>> WWW CNAME 
>> www.gentle-wind-.**herokuapp.com
>>
>> URL CNAME gentle-wind-.herokuapp.com**   # (I'm not sure if this one
>> is right/valid)
>>
>> The app is browsable at gentle-wind-.herokuapp.com**, but the
>> redirected URL (http://myapp.com) is giving me this message:
>>
>> *Heroku | No such app*
>>
>>
>>
>> So I'm confused about how I should be setting this up. Usually I just do
>> A records that point to an IP, but after reading the article on heroku
>> about that I decided that an A record was not a good idea. So I'd like to
>> set this up with a www domain and a top level domain that redirects to www.
>> How should I set up my CNAME records to achieve this?
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Heroku" group.
>> To view this discussion on the web visit https://groups.google.com/d/**
>> msg/heroku/-/uSGwjEBAFcoJ
>> .
>> To post to this group, send email to heroku@googlegroups.com.
>> To unsubscribe from this group, send email to heroku+unsubscribe@**
>> 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 view this discussion on the web visit
> https://groups.google.com/d/msg/heroku/-/zOT0PRhHGI0J.
>
> 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.
>



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



Re: Assets Precompile: Works Locally, Heroku Skips Some Files

2012-03-23 Thread John McCaffrey
thanks for posting the resolution!

I did not know about that difference in behavior for the .slugignore file
(that's going in my notes).

I also have not played around with making a buildpack yet, so my note on
that is "you can create a custom buildpack to help you debug issues".

Actually, if you don't mind pushing that verbose buildpack out to github,
I'd love to check it out, and see how it works.

I've been helping students with a variety of technical backgrounds with
their heroku deployments, and sometimes they get themselves into some
interesting situations that are not easy to tease out at first, and having
a verbose buildpack like this might really cut down on the amount of time
spent trying to 'guess' at what the issue is.

Also, I wonder what questions we could have asked you that would have lead
us to your .slugignore situation.

"Do you have any other projects using these tools that are working ok?"
Followed by "What is different about this project vs. those?"

"If you create a new project from scratch, using the same versions of these
tools, do you have the same problem?"

Thanks again for posting the outcome, its enormously valuable for the rest
of us.

On Thu, Mar 22, 2012 at 10:16 PM, Andrew Lorente
wrote:

> haha YES, simulsolve
>
>
> On Thu, Mar 22, 2012 at 8:13 PM, Karl  wrote:
>
>> Well, I figured it out. The problem is with my .slugignore file. In
>> .slugignore I had:
>>
>> spec/**/*
>>
>> assets/**/*
>>
>>
>> Why? I used to keep some photoshop files in there. But the /assets folder
>> doen't exist any more.
>>
>> The problem? It appears that when .slugignore is processed is does NOT
>> behave like .gitignore and in my case above it ignored *all* *folders*with 
>> the name of 'assets',
>> *all* *files* with the name of 'assets', regardless of location. Thus
>> public/assets and all it's contents were removed from the slug before asset
>> compilation, thus it didn't detect manifest.yml because it was removed.
>>
>> The only way I was able to figure this out was by creating a custom
>> buildback with copious 'puts' to watch what was happening during the entire
>> slug compilation process. Man, what a waste of too, too many hours.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Heroku" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/heroku/-/mmahX0niEnUJ.
>>
>> 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.
>



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



Re: Assets Precompile: Works Locally, Heroku Skips Some Files

2012-03-19 Thread John McCaffrey
any resolution on this?

On Tue, Mar 13, 2012 at 10:58 PM, Karl  wrote:

> Not 100% sure it is related to my other 
> problem,
> but I'm holding out until heroku gets back with me.
>
>
> On Monday, March 12, 2012 4:13:31 PM UTC-7, Karl wrote:
>>
>> Just tried that (again), and it works as expected, unauth_web_connect.js
>> and tester.js are compiled and sync'd to S3.
>>
>> On Monday, March 12, 2012 3:55:25 PM UTC-7, j_McCaffrey wrote:
>>>
>>> To rule out a heroku specific issue, try running locally in production
>>> mode. This usually reveals an issue.
>>>
>>> if not, then try
>>> RAILS_ENV=production bundle exec rake assets:precompile
>>>
>>> On Mon, Mar 12, 2012 at 5:49 PM, Karl wrote:
>>>
 Rails 3.2.2 app, on cedar, using ruby 1.9.3 with asset_sync gem to sync
 assets to S3. When I 'bundle exec rake assets:precompile' on my dev
 machine, asset_sync works just as expected.

 However, the same project when pushed to Heroku skips some of the asset
 files. Just so I'm clear, these assets files are specified using
 'config.assets.precompile += []'. Here is the exact code in production.rb:


   config.assets.precompile += [ 'print.css',

 'api_docs.css',

 'not_auto_loaded/tester.js',

 'not_auto_loaded/unauth_web_**
 connect.js',

 'not_auto_loaded/installation.**js',

 'not_auto_loaded/token_**recovery.js'

 ]

 Print.css, api_docs.css, installation.js, and token_recover.js compile
 just fine and asset sync sends them on their merry way to S3. But *
 nothing* I have tried over the past two days will get
 unauth_web_connect.js or tester.js to compile on heroku. No errors are
 reported during slug compilation or in the logs.

 Token_recovery.js.coffee and installation.js.coffee compile just fine,
 and appear on S3 as expected, digests and all.

 Unauth_web_connect.js is a coffeescript file
 (unauth_web_connect.js.coffee) that resides in '
 app/assets/javascript/not_**auto_loaded/'.

 I have tried, and it did not fix:

- changing the names of the xxx.js.coffee files
- reducing the javascript in xxx.js.coffee files down to just
'alert "home"'
- changing the order in config.assets.precompile
- removing the xxx.js.coffee file and re-creating it

 I'm out of ideas.


>>> --
>>> Thanks,
>>> -John
>>>
>>>   --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/heroku/-/6cgUpzPDpYwJ.
>
> 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.
>



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



Re: Assets Precompile: Works Locally, Heroku Skips Some Files

2012-03-12 Thread John McCaffrey
To rule out a heroku specific issue, try running locally in production
mode. This usually reveals an issue.

if not, then try
RAILS_ENV=production bundle exec rake assets:precompile

On Mon, Mar 12, 2012 at 5:49 PM, Karl  wrote:

> Rails 3.2.2 app, on cedar, using ruby 1.9.3 with asset_sync gem to sync
> assets to S3. When I 'bundle exec rake assets:precompile' on my dev
> machine, asset_sync works just as expected.
>
> However, the same project when pushed to Heroku skips some of the asset
> files. Just so I'm clear, these assets files are specified using
> 'config.assets.precompile += []'. Here is the exact code in production.rb:
>
>
>   config.assets.precompile += [ 'print.css',
>
> 'api_docs.css',
>
> 'not_auto_loaded/tester.js',
>
> 'not_auto_loaded/unauth_web_connect.js',
>
> 'not_auto_loaded/installation.js',
>
> 'not_auto_loaded/token_recovery.js'
>
> ]
>
> Print.css, api_docs.css, installation.js, and token_recover.js compile
> just fine and asset sync sends them on their merry way to S3. But *nothing
> * I have tried over the past two days will get unauth_web_connect.js or
> tester.js to compile on heroku. No errors are reported during slug
> compilation or in the logs.
>
> Token_recovery.js.coffee and installation.js.coffee compile just fine,
> and appear on S3 as expected, digests and all.
>
> Unauth_web_connect.js is a coffeescript file
> (unauth_web_connect.js.coffee) that resides in '
> app/assets/javascript/not_auto_loaded/'.
>
> I have tried, and it did not fix:
>
>- changing the names of the xxx.js.coffee files
>- reducing the javascript in xxx.js.coffee files down to just 'alert
>"home"'
>- changing the order in config.assets.precompile
>- removing the xxx.js.coffee file and re-creating it
>
> I'm out of ideas.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/heroku/-/rMBXKfYthTAJ.
> 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.
>



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



Re: heroku deployment error : bundler version

2012-02-22 Thread John McCaffrey
I don't normally see a Gemfile require another bundler

what if you comment out the bundler line in your Gemfile?

Also you may have to run bundle update locally, to update your Gemfile.lock
file

On Tue, Feb 21, 2012 at 4:34 PM, hariis  wrote:

> I have ruby 1.9.2 and rails 3.0.0 with bundler 1.0.22
>
> when I push to heroku, I get
>
>-> Installing dependencies using Bundler version 1.1.rc.7
>
>  Running: bundle install --without development:test --path vendor/
> bundle --binstubs bin/
>
>  Fetching gem metadata from http://rubygems.org/.
>
>  Bundler could not find compatible versions for gem "bundler":
>
>  In Gemfile:
>  rails (= 3.0.0) ruby depends on
>  bundler (~> 1.0.0) ruby
>  Current Bundler version:
>  bundler (1.1.rc.7)
>  This Gemfile requires a different version of Bundler.
>  Perhaps you need to update Bundler by running `gem install
> bundler`?
>
> why does it use bundler version 1.1.rc.7 to install the dependencies
> and why does it think the current bundler version is 1.1.rc.7?
>
> No references in the .Gemfile or the Gemfile.lock to any version.
>
> Any input appreciated.
>
> -Thanks
>
> --
> 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.
>
>


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



Re: Keeping your Heroku app awake

2012-02-17 Thread John McCaffrey
I think this is a good discussion to have, in terms of appropriate use of
'free resources' to keep the plan sustainable, and "reasonable pricing for
the 'little guy'" with tons of small apps that don't get daily usage.

Those topics are important, but not something that will be resolved any
time soon, the more tractable computing problem is how to best optimize a
site on the free plan, so as to minimize the impact of spinning up a dyno.

A few strategies:
1. use browser and http caching for as much as you can
2. use a cdn like cloudflare.com or others
3. reduce dependencies for your app?
4. figure out what is slow, and how to improve it

I'm not really sure what is happening in the spin up of a dyno, and what I
could do to make it better. I just hit an idle app of mine and looked in
the logs to see what it was doing.
2012-02-17T18:22:35+00:00 heroku[web.1]: Unidling
2012-02-17T18:22:35+00:00 heroku[web.1]: State changed from down to created
2012-02-17T18:22:35+00:00 heroku[web.1]: State changed from created to
starting
2012-02-17T18:22:39+00:00 heroku[web.1]: Starting process with command
`bundle exec unicorn -p 56060 -c ./config/unicorn.rb`
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.412560 #1]
 INFO -- : listening on addr=0.0.0.0:56060 fd=3
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.413000 #1]
 INFO -- : worker=0 spawning...
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.416644 #1]
 INFO -- : worker=1 spawning...
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.417177 #9]
 INFO -- : worker=0 spawned pid=9
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.417390 #9]
 INFO -- : Refreshing Gem list
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.418434 #1]
 INFO -- : worker=2 spawning...
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.420059 #1]
 INFO -- : worker=3 spawning...
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.420874 #12]
 INFO -- : worker=1 spawned pid=12
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.421081 #12]
 INFO -- : Refreshing Gem list
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.425084 #1]
 INFO -- : master process ready
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.426771 #14]
 INFO -- : worker=2 spawned pid=14
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.426987 #14]
 INFO -- : Refreshing Gem list
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.446178 #18]
 INFO -- : worker=3 spawned pid=18
2012-02-17T18:22:41+00:00 app[web.1]: I, [2012-02-17T18:22:41.446496 #18]
 INFO -- : Refreshing Gem list
2012-02-17T18:22:42+00:00 heroku[web.1]: State changed from starting to up
2012-02-17T18:22:48+00:00 app[web.1]: Cannot find or read
/app/config/newrelic.yml
2012-02-17T18:22:55+00:00 app[web.1]: Cannot find or read
/app/config/newrelic.yml
2012-02-17T18:22:56+00:00 app[web.1]: Cannot find or read
/app/config/newrelic.yml
2012-02-17T18:22:56+00:00 app[web.1]: worker=1 ready
2012-02-17T18:22:56+00:00 app[web.1]:
2012-02-17T18:22:56+00:00 app[web.1]:
2012-02-17T18:22:56+00:00 app[web.1]: Started GET "/" for 67.162.61.119 at
2012-02-17 18:22:56 +
2012-02-17T18:22:57+00:00 app[web.1]: Cannot find or read
/app/config/newrelic.yml

So if I'm reading this right, a request came in at 18:22:35, and woke up
the dyno, and that request passed through to the app at 18:22:56, meaning
there was about a 21 second delay.

There seems to be some time in between each
" Cannot find or read /app/config/newrelic.yml"
I wonder if putting that config in there would make the spin up faster?

I'm also spinning up 4 unicorn workers, would it be faster to start with
only 1 or 2, and then add the others later (is that something that
could/should be done programmatically?)

I'm curious what other people are seeing for dyno spin up times, and any
strategies for making things go faster. (Wonder if I'm including any gems
that are not needed in prod, and if that has an impact)

Run heroku logs for one of your idled dynos, then hit the url and see how
long it takes, is there a lot of variation? (bamboo vs cedar, thin vs.
unicorn, rails vs. sinatra, etc)



On Fri, Feb 17, 2012 at 12:27 PM, Daniel Huckstep <
darkhel...@darkhelmetlive.com> wrote:

> I thought the Cedar dynos didn't turn off when idle. Can't remember where
> I got that idea from though, so I'm probably entirely wrong.
>
> But there's also http://devcenter.heroku.com/articles/dyno-idling which
> suggest that you could scale your web dynos to zero (on Cedar) and use a
> different process name to run the webserver (I'm assuming this would work,
> haven't tried it). This is because the other processes (non web) could be
> used for other fun things, like running redis (there was an example in a
> presentation that showed some TCP routing) which you don't want to turn off.
>
> Also, in your post you say 450 hours, which is incorrect. It's 750.
>
> --
> You received th

Re: Keeping your Heroku app awake

2012-02-16 Thread John McCaffrey
Once you pay for a dyno, its up all the time, so this strategy is only
necessary when you are not yet paying to host your site on heroku.

So I think it makes sense to take the idea of "ping the server every X
min", and add a bit more to the logic of asserting that the response is
correct and timely. Implementing even a basic strategy for monitoring your
application's uptime, performance, and consistent functionality is an
important component in how you manage your site, and there are a variety of
tools out there that can help.

New relic can ping your app and alert you when it is not responding and
passing your assertion test. (specific words on a page)

You can have a simple ping and report from http://www.internetvista.com

BrowserMob.com and others can do multistep flows like logging in and
navigating to a page.

StillAlive.com and the heroku add on is great for defining a full
cucumber-like test suite to ensure that not only is your site up, but it is
still functional.

But I hope that people use some restraint when deciding which of their apps
they want to 'artificially keep awake', and find a nice balance that uses
resources wisely.

Using the free plan on cloudflare.com CDN might be useful, particularly if
your main pages and most of the assets can be cached. (the page will load
quickly in the browser, from the cdn, then fire an uncacheable request to
wake up the server, without the user feeling like its slow).

Actually using cloudflare is a win-win even after you're off the free
heroku plan, because it allows you to handle more concurrent users and load
things faster.




On Tue, Feb 14, 2012 at 11:34 AM, Nick  wrote:

> I've written a short blog post on how to keep your heroku dyno from
> 'timing out' which can lead to a slow loading site for those with a
> low amount of traffic.
>
> For those interested:
>
> http://beouk.blogspot.com/
>
> --
> 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.
>
>


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



Re: Heroku Labs git_submodules private repos

2012-02-14 Thread John McCaffrey
can you move your config variables out of the submodule, and load them via
heroku config?

Getting important authentication params out of a repo is usually one of the
first things you have to do after a security analysis, so you may as well
just do it now.

On Fri, Feb 3, 2012 at 5:15 PM, Abe  wrote:

> I also have this issue, did you work out a solution?
>
> On Jan 3, 12:25 am, "David D."  wrote:
> > I got this to work:
> http://devcenter.heroku.com/articles/labs-git-submodules
> >
> > But there is an issue in that my submodule is private. The particular
> > submodule I'd like to include contains global variables and
> authentication
> > parameters that I want to share across several different apps that
> together
> > form our service. There's no way I can make this public.
> >
> > So how can I allow heroku to access my private repo, or rather provide my
> > credentials during dependency installation to allow this to work?
>
> --
> 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.
>
>


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



Re: retrieve an old slug..?

2012-01-23 Thread John McCaffrey
If you committed your sqlite db locally, it might be in your git repo.
If you have db backups on, you might be able to restore from a previous
deployment


On Tue, Jan 17, 2012 at 12:18 PM, VinnyReynolds wrote:

> Hi,
>
> Quick question. Is it possible to retrieve an old slug, and thus a
> sqlite db that I had inside it. I have subsequently deployed a new
> version.
> I only installed the releases add:on after I went looking for a
> solution to this problem but I need to roll back 4/5 versions, not 1
> which is all that is allowed with the basic package.
>
> Thanks in advance.
> Vinny
>
>
> Back story is..
> I'm a new user to heroku and ruby on rails and am putting together a
> beta site, through a combination of michael hartls tutorials,
> pragmatic programmers books and magic awesome heroku infrastructure..
> however, as I'm a newbie, I have inevitably screwed up :)
>
> I wasn't using postgres from the beginning, and was storing some local
> info in a sqlite db, and now I have overwritten it without backing up.
> Lesson learned quickly but not quickly enough.
> Cheers, v
>
> --
> 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.
>
>


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



Re: Pure cloud publishing workflow GitHub/BitBucket <-> Heroku?

2012-01-23 Thread John McCaffrey
I tried cloud9 IDE and was able to make changes and push directly to
heroku. I found it very cool as an emergency "I'm not at my machine, but
need to make a quick fix" tool, but not something I'd want to do as part of
my regular dev cycle. (yes, even with the concept of pushing to a staging
server first. I'd still prefer to run and test things locally, but that's
just me)

On Mon, Jan 23, 2012 at 2:17 PM, Ikester  wrote:

> I'm daydreaming but has anybody figured out a way of pushing a branch
> directly from an online git repository (e.g. GitHub, BigBucket) to Heroku?
> I found a SO question saying that it's not possible but I wonder if anybody
> has figured out a way since then.
>
> Would it even make sense to "pull" from the Heroku side? Any security
> considerations that couldn't be overcome?
>
> Ultimately, I'm trying to find a way of publishing to Heroku with nothing
> more than a web browser. Cloud9 IDE seems to have a beta integration but I
> couldn't get it to work.
>
> Any ideas are greatly appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/heroku/-/NLq0azq3OBAJ.
> 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.
>



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



Re: When pushing to Heroku it crashes on Installing do_sqlite3 (0.10.7)

2012-01-23 Thread John McCaffrey
You may want to just skip ahead and set up postgres locally, so that your
dev environment is as close to heroku as possible.

34% of problems that people have when starting with Heroku are due entirely
to not running postgres locally**
And when the problems do come up, its usually in a non-obvious, total pain
in the ass way

**This statistic is totally made up, but feels about right, given this
mailing list, StackOverflow, and other people I've helped get set up on
Heroku. Maybe a more accurate number would be 34% of the issues I've dealt
with when helping people get set up...

On Mon, Jan 23, 2012 at 4:15 PM, Mark Pundsack  wrote:

> The sqlite library is not available on Heroku. You might want to look at:
> http://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development
>
> Basically, set the production environment to not load the sqlite adapter.
> Something like:
>
>
> group :production do
>   gem 'dm-postgres-adapter'end
> group :development, :test do
>   gem 'dm-sqlite-adapter'end
>
> Mark
>
> On Jan 13, 2012, at 9:39 PM, tripdragon wrote:
>
> I have a bare bones Sinatra app that is using
> gem 'dm-postgres-adapter'
> gem 'dm-sqlite-adapter'
>
> while running git push heroku master, I get http://pastebin.com/kcu6MAtt
> Installing do_sqlite3 (0.10.7) with native extensions Unfortunately, a
> fatal error has occurred. Please report this error to the Bundler
> issue tracker at https://github.com/carlhuda/bundler/issues so that we
> can fix it. Thanks!
>
> So I walked to that url to report this but it reported me to post
> here.
> https://github.com/carlhuda/bundler/issues/1488
>
> On inspection of my Gemfile.lock I see that it's pointing to
> 0.10.6 and not the installed 0.10.7 as the log is writing. However
> chaging the Gemfile.lock to .0.10.7 and updating the git and push
> gives the same error
>
> Snipit of Gemfile.lock
> ___
>dm-sqlite-adapter (1.2.0)
>  dm-do-adapter (~> 1.2.0)
>  do_sqlite3 (~> 0.10.6)
>
>
>
> I would just use Postgres in development but I have not conqured that
> hurdle yet in getting that to work without some simple enough
> example.
>
> Thank you
>
> --
> 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.
>



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



Re: Very simple line is not working on heroku but is fine locally

2012-01-23 Thread John McCaffrey
Is there anything special about the hierarchy for that class? is it related
to any plugins?

Are there other classes that you can't instantiate? Is there a commonality
among them? (if its just this one, is there something special about it? can
you strip out that difference and try again?)

I saw a similar issue someone complained of, when loading a plugin that had
submodules. If this class is related to some other plugins or libraries,
see what is going on there. (and post back)

On Sun, Jan 22, 2012 at 4:20 PM, Michael Baldock wrote:

> Just to go back to the original question though, is there any reason
> why making an instance of a class with
>
> @class_instance = Class.new
>
> might not work on heroku in production mode, but work locally in
> development mode.
>
> Or are there too many reasons?!
>
>
> On Jan 22, 9:54 pm, Michael Baldock  wrote:
> > David,
> >
> > Thanks for that tip, could be useful, I've tried it, and sadly nothing
> > works in production mode locally, not even the root page, all I get is
> >
> > Errno::ECONNREFUSED (Connection refused - connect(2)):
> >
> > I have no idea where that is coming, from! Think I'm going to have to
> > speak to the guy who actually built the site, before trying to
> > continue to maintain something I don't understand!
> >
> > On Jan 22, 9:38 pm, David Dollar  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > You may be able to reproduce this locally by starting your app with
> RAILS_ENV=production
> >
> > > $ env RAILS_ENV=production rails server
> >
> > > On Sunday, January 22, 2012 at 4:24 PM, Michael Baldock wrote:
> > > > Hi,
> >
> > > > I'm trying to do something I think should be simple, and works fine
> on
> > > > my local machine, but crashes on heroku, I was hoping someone could
> > > > shed some light, as I'm totally baffled.
> >
> > > > I have a class called ScrapersController, with a standard set of
> views
> > > > and a model. In the same folder I have another class called
> > > > ScraperManager, that I use with delayed_job to go off and scrape
> > > > websites in the background.
> >
> > > > I create an instance of ScraperManager with
> >
> > > > @scraper_manager = ScraperManager.new
> >
> > > > I didn't think twice about writing this line, it works fine on my
> > > > local server, but on heroku it crashes.
> >
> > > > The error message I get sent is:
> >
> > > > ///
> > > > Admin::Events is not missing constant ScraperManager!
> > > > .bundle/gems/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/
> > > > dependencies.rb:479:in `load_missing_constant'
> > > > ///
> >
> > > > The folder is within Admin::Events. if it's NOT missing constant, why
> > > > is it breaking??
> >
> > > > I've tried various ways of including the ScraperManager in the
> > > > ScraperController class, but cant work out how to do this
> >
> > > > require 'ScraperManager' - doesn't work
> > > > include Admin::Events::ScraperManager - doesn't work
> >
> > > > In most other languages it's easy to include a header file, but
> > > > apparently not in ruby!
> >
> > > > I've made an effort recently to try and emulate the heroku platform
> as
> > > > much as possible locally, precisely to avoid these inconsistencies,
> so
> > > > I'm using rvm to run ree-1.8.7 locally, which is the same as the
> stack
> > > > my app's on.
> >
> > > > I'm helping with this rails app up on heroku as a part-time / favour,
> > > > and every time I come back to the app after a couple of months ,
> > > > things have started to fall apart! I don't know what it is about
> > > > ruby / rails, but nothing ever stays working for long!!
> > > > (sorry, frustrated rant over)
> >
> > > > Any help would be appreciated :-)
> >
> > > > --
> > > > 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(mailto:
> heroku@googlegroups.com).
> > > > To unsubscribe from this group, send email to
> heroku+unsubscr...@googlegroups.com (mailto:
> 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 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.
>
>


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



Re: heroku rake db:migrate - Internal Server Error

2011-12-22 Thread John McCaffrey
I used to just get 'internal server error' in the console when I had
various syntax issues, until i updated to the latest heroku gem, now I see
more useful info.

See if that helps your migration.

Does your migration work locally? Is it complex? (eg. doing something more
than just changing table def)

On Thu, Dec 22, 2011 at 4:25 PM, Scott LaBounty  wrote:

> I'm seeing this ...
>
> <<
> $heroku rake db:migrate --trace
>  ! !Internal server error.
>  ! !Run 'heroku status' to check for known platform issues.
> $ heroku status
>
> All Systems Go: No known issues at this time.
> >>
>
> Should I just try later or is something else wrong that I should look at?
>
> --
> Scott
> http://steamcode.blogspot.com/
>
> --
> 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.
>



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



Re: Anyone else have a problem with status.heroku lack of information?`

2011-12-05 Thread John McCaffrey
Along those lines, is there a way to get alerts from heroku when there is
an issue? This last issue had my site down for a bit, but thankfully the
NewRelic alert let me know quickly, so I could get to work on routing to a
backup server.

Is there some heroku notification checkbox I missed somewhere?

On Sun, Dec 4, 2011 at 11:19 PM, daudi  wrote:

> There seems to be almost zero information content at
> status.heroku.com. Does anyone have a better parser than mine? The
> general posting format seems to be:
>
> posting @ t[0]:
> ISSUE: We are observing increased [ server | HTTP | network | database
> | routine] error [ rates (and | or) latencies ] to [ applications |
> the Heroku API ]. We are investigating and will post additional
> updates as we learn more.
>
> n-2 postings @ t[i]:
> ISSUE: We are continuing to work on resolving the [ server | HTTP |
> network | database | routing]  issues.
> [
>  Applications are largely up |
>  the problems are largely isolated to our  |
>  except for an extremely small number of requests |
>  problems seem to be isolated to intermittent problems with
>  |
>  it's really not such a big deal at all and we can't understand why
> so many of you are even looking at status.heroku.com right now but
> we'll write something reassuring here anyway
> ], but we are still experiencing some performance degradation.  We are
> working to resolve this problem as quickly as possible.
>
> nth (and final) posting hours/days later @ t[n]:
> We believe the incident is now entirely resolved. Error rates have
> returned to nominal levels. We will continue to monitor the platform
> and HTTP stack very closely, but at this time are discontinuing
> tracking of this incident.
>
> Missing are the specifics:
> what really happened? how bad was it? what broke? why? what fixed it?
>
> -- from a fan/customer/supporter of heroku
>
> --
> 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.
>
>


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



Re: i can't able to deploy my database backup b004.dump file to my heroku app

2011-11-23 Thread John McCaffrey
Yeah I do a similar thing to back up my data from a production site to my
staging/test site.

on prod account
  # grab temp URL of the recent backup
  heroku pgbackups:url b016

on staging account
  # use that URL from above as source to restore from
  heroku pgbackups:restore DATABASE 'https://s3.amazonaws.com/'

but I also keep a sep copy of the backup, just in case.

On Wed, Nov 23, 2011 at 7:26 AM, Bilal Basharat
wrote:

> im restoring from a b004.dump file. the file has been recieved from
> another application instance on another heroku account. well my problem is
> resolved when i verified my account.
> in this way , i was able to add pgbackups. i use this command to restore
> database
> first i install this addon:
>
>
> $ heroku addons:add pgbackups
>
> than restore my database to the current heroku application by using
>
> $ heroku pgbackups:restore DATABASE '
> http://s3.amazonaws.com/.mydb.dump?authparameters'
>
> instead of s3. i put backup file to the public folder of dropbox and got
> the public url and paste it in the above line.
>
>
> --
> Regards,
> Bilal Basharat
> Software Developer | Developers Inc.
>  
> 
> skype: bilal.devsinc | web: http://www.devsinc.com
>
>  --
> 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.
>



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



Re: i can't able to deploy my database backup b004.dump file to my heroku app

2011-11-21 Thread John McCaffrey
Are you restoring a dump from the same app, or trying to move data from one
heroku app to another, or from a non-heroku app up to heroku?

did you try adding it from the heroku website?
wouldn't the command be heroku addons:add pgbackups:basic

if you've tried that, and still get account issues, is this the case when
adding other addons?

if b004 is the most recent, then heroku pgbackups:restore will default to it

On Wed, Nov 16, 2011 at 9:46 AM, Bilal Basharat
wrote:

> i got this pgbackup file named b004.dump . i want it to be uploaded to
> my heroku app. im using this command
>
> $ heroku pgbackups:restore DATABASE b004
>
> the error is that:
>
> !   Please add the pgbackups addon first via:
>
> $ heroku addons:add pgbackups
>
> when i run this command than error arises:
>
>  ! Please verify your account to install this add-on
>  ! For more information, see
> http://devcenter.heroku.com/categories/billing
>  ! Confirm now at https://heroku.com/confirm
>
> when i confirm and try to verify my account. than this error keeps
> coming :
>
> Please check the highlighted fields
>
> its a credit card number field. how can i restore my database. is
> there an other way to restore .dump file to pgsql of heroku ???
>
> --
> 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.
>
>


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



Re: How to make app only accessible through HTTPS?

2011-11-21 Thread John McCaffrey
Not sure what the official answer would be, but can you app detect the non
ssl connection and redirect or refuse?

On Tue, Nov 15, 2011 at 11:51 PM, Benny Tsai  wrote:

> Hi all,
>
> I have a web service (written using Clojure & Noir) that I want to make
> accessible over SSL.  I've enabled the Piggyback SSL add-on (gratifyingly
> easy to use!), but noticed that my service is still accessible through the
> old plain HTTP URL.  Is there a way to make the service *only* accessible
> over SSL?  Many thanks in advance.
>
> -Benny
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/heroku/-/0gbI-yOJbZgJ.
> 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.
>



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



Re: Can I issue a "heroku restart" from within my app that's running on Heroku?

2011-11-16 Thread John McCaffrey
Some of the 
posts<http://stackoverflow.com/questions/6510203/eoferror-when-issueing-http-requests-with-ruby>
mention
https, content-length, and redirects, so If you could track the urls that
cause the problem, that might be helpful. (you may have to track the url
BEFORE the one that gets the EOF)

If you could then fire the same request from the heroku console, or write a
little bit of code that you can invoke on heroku or locally to fire against
known 'bad' or 'good' urls, as a test case, it might help you get to a
solution faster.

Have you looked into faraday or httparty?

I'm not saying you should completely bail on the idea of doing an app
restart, I'm just wondering if you could also explore a more direct fix at
the same time.

Good luck!

On Wed, Nov 16, 2011 at 11:45 AM, Corey Trager  wrote:

> John -  I have been trying to find the real heart of the issue, which
> again, is that the app gets into a state.  That an individual request
> for a URL fails, no problem.  That requests continue to fail, that
> means there's some sort of state change somewhere.   But there is no
> state in MY logic.  The failure of one request shouldn't affect the
> next one.  So where is that state?  Deep in the Ruby libs that do the
> URL fetching?  Some setting I'm not setting?  (I've tried switching
> between two different Ruby ways of fetching urls, but both ways seem
> to have the same problem.)  Somewhere in Heroku infrastructure - some
> sort of caching/proxy thing?  I have no means of debugging those
> things, and no means of fixing them and deploying that fix on Heroku.
> I'm focusing on a solution where I have power and control: My code.
>
> A google related to the heart of the issue:
> http://www.google.com/search?q=http%3A%3Anet+EOFError
> Do you have some suggestions for me?
>
> Restarting the app at heroku is totally not elegant, a total hack, but
> for my circumstances, your comments about scaling don't apply.
>
> I will follow up on your suggestion to create a Heroku support ticket.
>
> On Nov 16, 8:58 am, John McCaffrey  wrote:
> > Again, I would suggest that you try to find the real heart of the issue
> and
> > find ways to debug/instrument the code to figure out what is happening
> that
> > gets it stuck.
> >
> > Maybe opening a ticket with the heroku team may help (maybe its something
> > they've seen, or they have a good suggestion for how to dig in to it).
> They
> > read the mailing list, but an actual support ticket may be the way to go
> > for you.
> >
> > A solution where you restart your app just doesn't seem like it will
> scale
> > to me, unless you are firing it off like a cron/delayed job, that has a
> > natural restart flow. (would it make sense for the scraping part of the
> app
> > to be a background job?)
> >
> > just throwing in my 2c
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Nov 16, 2011 at 8:09 AM, Corey Trager  wrote:
> > > Not working yet.
> >
> > > Testing on my dev box, heroku.restart resulted in a 404 but
> > > heroku.ps_restart DID restart my app running at Heroku, so that was
> > > promising.  That is, my local app A could restart my Heroku app B.
> > > But, when deployed to Heroku and tried to have B restart itself,
> > > ps_restart resulted in "NoMethodError" for Heroku::Client and restart
> > > resulted in RestClient::ResourceNotFound.
> > > The NoMethodError, does that mean I'm using an older stack with an
> > > older Heroku gem?
> > > The RestClient, I guess heroku needs to know a host?   So, I'm looking
> > > for docs for the gem.
> > > Do you think I'm on the right track?
> >
> > > On Nov 15, 5:04 pm, Neil Middleton  wrote:
> > > > You can always use the Heroku gem to talk to the heroku
> infrastructure
> > > as the CLI does.
> >
> > > > For instance:
> >
> > > > @heroku = Heroku::Client.new(ENV["HEROKU_EMAIL"],
> ENV["HEROKU_PASSWORD"])
> >
> > > > You can then issue commands such as:
> >
> > > > @heroku.restart('app_name')
> >
> > > > Neil
> >
> > > --
> > > 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://gr

Re: Can I issue a "heroku restart" from within my app that's running on Heroku?

2011-11-16 Thread John McCaffrey
Again, I would suggest that you try to find the real heart of the issue and
find ways to debug/instrument the code to figure out what is happening that
gets it stuck.

Maybe opening a ticket with the heroku team may help (maybe its something
they've seen, or they have a good suggestion for how to dig in to it). They
read the mailing list, but an actual support ticket may be the way to go
for you.

A solution where you restart your app just doesn't seem like it will scale
to me, unless you are firing it off like a cron/delayed job, that has a
natural restart flow. (would it make sense for the scraping part of the app
to be a background job?)

just throwing in my 2c

On Wed, Nov 16, 2011 at 8:09 AM, Corey Trager  wrote:

> Not working yet.
>
> Testing on my dev box, heroku.restart resulted in a 404 but
> heroku.ps_restart DID restart my app running at Heroku, so that was
> promising.  That is, my local app A could restart my Heroku app B.
> But, when deployed to Heroku and tried to have B restart itself,
> ps_restart resulted in "NoMethodError" for Heroku::Client and restart
> resulted in RestClient::ResourceNotFound.
> The NoMethodError, does that mean I'm using an older stack with an
> older Heroku gem?
> The RestClient, I guess heroku needs to know a host?   So, I'm looking
> for docs for the gem.
> Do you think I'm on the right track?
>
>
> On Nov 15, 5:04 pm, Neil Middleton  wrote:
> > You can always use the Heroku gem to talk to the heroku infrastructure
> as the CLI does.
> >
> > For instance:
> >
> > @heroku = Heroku::Client.new(ENV["HEROKU_EMAIL"], ENV["HEROKU_PASSWORD"])
> >
> > You can then issue commands such as:
> >
> > @heroku.restart('app_name')
> >
> > Neil
> >
>
> --
> 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.
>
>


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



Re: Can I issue a "heroku restart" from within my app that's running on Heroku?

2011-11-15 Thread John McCaffrey
I'm interested in that as well, but if the answer ends up being 'no',
perhaps your app could just capture the current state (eg. what caused it)
and send out an alert.

when I've had problems in the past, I've been helped by
logging (logs --tail and the loggly add on)
new relic
exception notification
google analytics (see traffic patterns and urls)


If you see the pattern and can fix it, you won't need to do the restart
business.



On Mon, Nov 14, 2011 at 11:06 PM, Corey Trager  wrote:

> My app gets into a bad state for reasons I haven't figured out yet.
> So far, the only solution I've found is to issue a "heroku restart"
> command.  The app itself can detect the bad state and so I'd like the
> app itself to issue the restart.  Is that possible?   It's a Sinatra
> app.
>
> --
> 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.
>
>


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



Re: Need rake task code and cron set up for heroku db:pull

2011-11-15 Thread John McCaffrey
Maybe rephrase that to "what is the best way to backup my data on heroku?"

That might get you more answers. (I've been using a local rake task to
capture a pg backup every hour, but I don't know about the mysql setup)

On Thu, Nov 10, 2011 at 1:42 AM, Ravi  wrote:

> Hi I am new to rake. Please help me out..
> Is there anybody who can solve my purpose.
> I need to create a rake task and call it from cron job. The task
> should perform these steps:
> 1) heroku db:pull mysql://root:@localhost/db_name (suppress any
> confirmation)
> 2) mysqldump of db_name
> 3) zip the dump.
>
> Thanks in advance..
>
> --
> 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.
>
>


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



Re: How do you tell which of your Heroku apps are which?

2011-11-15 Thread John McCaffrey
if you open up the git info for the locally cloned app, you can see when it
was updated.

When I met with some of the Heroku people at RailsConf, I asked if they
could add just a little notes field, and the date that the app was created
or updated last...but apparently they have bigger fish to fry.

I make it a habit now to keep track of what the apps are or change their
name as soon as I create them. (and deleting old projects that don't have
meaningful names or aren't loading anymore)

Clean up your old, unused heroku apps, it'll be easier to find what you're
looking for.

On Mon, Oct 31, 2011 at 6:08 PM, Nhoj  wrote:

> My dev machine went down, and I don't have a record of what heroku app
> is web site A, vs. web site B. I'm just learning heroku, so am using
> their auto-generated app names, which mean nothing to me. Can I see
> the date last modified somewhere?
>
> I downloaded my current project from github, but don't know what
> project to use for:
>
> git remote add heroku g...@heroku.com:{my-project-name}.git
>
>
> thanks,
> Nhoj
>
> --
> 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.
>
>


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



Re: What exactly is a dyno?

2011-10-13 Thread John McCaffrey
I don't know the specific type of process it is, but maybe we could figure
out what you are looking for a different way.

What will you do differently if you found out it was a daemon vs. a short
process?
Is there a concern you have about how one vs. the other would perform?

Bonus Points: Is there a test you could create to expose the underlying
issue you are trying to mitigate?

People on this list are very helpful, but if a question is looking for exact
answers, no one will step up and answer because they don't know for sure.

Give us some more details and I bet you'll find someone else that has the
info, or pursued the same idea.

On Mon, Oct 3, 2011 at 8:35 PM, AWS Inc  wrote:

> Is dyno's single process a unix process? Is it a lived unix daemon
> like httpd? Or, it could be a short lived computing process like
> 'make'?
>
> --
> 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.
>
>


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



Re: Permission Denied (publickey) Error

2011-09-15 Thread John McCaffrey
This just means that your ssh info is not set up correctly.

try:
heroku keys --help
and
heroku keys

to see if your ssh keys are setup properly. You may just have to go back
through the instructions on getting you ssh keys created and available to
heroku. (if the heroku docs don't help, try stackoverflow.com)

On Thu, Sep 15, 2011 at 6:57 AM, Krishna wrote:

> Hi All,
>
>  I am new to Heroku platform, Now I am working with Java -Spring
> application, Today I am testing with sample given in heroku java
> workbook but i am facing Permission Denied (publickey) Error. Could
> you please anyone give quick response 4 this error.
>
> Command I used:
>
> git push heroku master
>  Permission denied (publickey).
> fatal: The remote end hung up unexpectedly
>
>
> info:
> destination address: heroku.com
> Port 22 is opened for Firewall.
>
>
> Thanks & Regards,
> Krishna.
>
> --
> 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.
>
>


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



Re: Java apps

2011-09-07 Thread John McCaffrey
Also, isn't that how things are deployed on google app engine? (just push up
a war file)

 It would be nice if the deployment process was similar, so that users of
other hosting systems could easily give heroku a try, and see how awesome it
is.

You may also want to checkout CloudFoundry  and
keep an eye on how they do things. (I just pushed out a rails app to their
beta product, and ran some performance tests. They are still adding
features, but my app is running fine, so I'll definitely keep them on my
radar)

-John

On Wed, Sep 7, 2011 at 12:21 AM, Carson Gross  wrote:

> Guys,
>
> Just saw your announcement on supporting Java applications, and I'm
> very excited about it.  I've been working on a rails app deployed on
> heroku and always wondered if someone would make a heroku for java
> and, well, here we are.  I also work on Gosu (a JVM language) and
> Ronin (a Gosu-based web app framework) and I would love to get them
> deployed on Heroku
>
> I'd like to ask you to consider a change to your deployment model,
> however.  I realize that ruby apps deploy with their code in place and
> so it makes a lot of sense to manage things as a git push as there
> isn't really a compilation phase.  However, java has a much more
> diverse set of build tools since it is a compiled language: you've got
> ant, gant, maven, buildr, aardvark (the one I use, Gosu based) and so
> on.  As such, forcing us to use Maven (which has a mixed reputation in
> the java world) is a tough pill to swallow.
>
> So what I'd like to ask you to consider is accepting simple war files,
> built locally and pushed out to heroku.  This takes the build and
> verification phase out of a deployment and provides a simple,
> standardized way for us java devs to deploy to heroku.  It also opens
> up the platform to other languages and frameworks: almost all of them
> provide some way to bundle up a war for deployment.
>
> Thanks again for all your great work,
> Carson
>
> --
> 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.
>
>


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



Re: rack 1.3.2 conflict on bamboo

2011-09-04 Thread John McCaffrey
ok, so after reading through everything I could find on this, I determined
the following:

   1. While I have all my gems specified by bundler, I had a .gems file,
   which until today wasn't causing any issues, but once I removed it, and
   ensured that heroku was loading my gem properly, it was all good.

This article got me on  the right track
http://devcenter.heroku.com/articles/gem-dependency

On Sun, Sep 4, 2011 at 6:05 PM, John McCaffrey wrote:

> I redeployed an app today, and started getting a "You have already
> activated rack 1.3.2, but your Gemfile requires rack 1.2.3. Consider using
> bundle exec. (Gem::LoadError)"
>
> I have a rails 3.0.3 app, and according to my Gemfile
>  rails (= 3.0.3) depends on
>   rack (~> 1.2.1)
>
> I looked back at my Gemfile.lock, between these deployments, and rack has
> been set to 1.2.1 the whole time.
>
>  Did something change?  is there a way to execute a bundle exec command on
> the bamboo stack (I know you can on cedar, but I'm in the middle of pushing
> out a release and don't want to start messing with Cedar yet)
>
> --
> Thanks,
> -John
>
>


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



rack 1.3.2 conflict on bamboo

2011-09-04 Thread John McCaffrey
I redeployed an app today, and started getting a "You have already activated
rack 1.3.2, but your Gemfile requires rack 1.2.3. Consider using bundle
exec. (Gem::LoadError)"

I have a rails 3.0.3 app, and according to my Gemfile
 rails (= 3.0.3) depends on
  rack (~> 1.2.1)

I looked back at my Gemfile.lock, between these deployments, and rack has
been set to 1.2.1 the whole time.

Did something change?  is there a way to execute a bundle exec command on
the bamboo stack (I know you can on cedar, but I'm in the middle of pushing
out a release and don't want to start messing with Cedar yet)

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



Re: Cedar / Rails 3.1 / BCrypt 3.0.0 (no such file to load -- bcrypt_ext)

2011-09-02 Thread John McCaffrey
Thanks for sending out the update, that's definitely something that could
trip anyone up.

On Fri, Sep 2, 2011 at 7:45 AM, Matthew Bennink <
matt%soomopublishing@gtempaccount.com> wrote:

> This was resolved by Heroku's support team.  I had accidentally included my
> vendor/bundle directory in the repo.  Removing it and re-creating the app
> allowed the gems to install with their native extensions.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/heroku/-/v-yqZIamp2QJ.
>
> 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.
>



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



Re: Deploying an app on behalf of a third party

2011-07-27 Thread John McCaffrey
Alex,

Awesome idea, sign me up!

I'd be curious if you can run the http://tryruby.org/ app on heroku, or
follow the structure that they are using for codeschool.com, which allows
you to interactively write and run code.

usually you can find a way to get things to work on heroku

On Wed, Jul 27, 2011 at 12:06 PM, Alex Chaffee  wrote:

> Dear Heroku -
>
> I've developed a set of test-first ruby training exercises at
> http://testfirst.org and I've been brainstorming about how to take it to
> the next level. I've been imagining an interactive web site, where users can
> edit code and run RSpec tests from inside their web browser.
>
> Unfortunately (for me and for the whole world) the SCRIPT tag only supports
> JavaScript on most browsers. So I'd have to send the students' code to a web
> server and execute it there.
>
> The problem with that is security. The code is all open source and I won't
> be storing any sensitive information, so I'm not worried about malicious
> crackers[1], but there's still a risk that a student could, accidentally or
> on purpose, break or otherwise compromise the functionality of the app if
> I'm evaling arbitrary code on their behalf.
>
> I know about $SAFE but I don't think it's actually safe enough for this
> purpose. I've also heard of Why's Freaky Sandbox but I couldn't find the
> code anywhere (R.I.P.)
>
> So I had a thought: what if I have a master app, and a student could
> connect to it, temporarily give me his Heroku credentials, and then I could
> spin up a lab app under his Heroku account that only he knows the URL to.
> Anything he breaks would just affect his own instance, and I could have a
> big "reset" button that could clean up ("heroku restart") after that. I'd
> still use $SAFE to stop access to the filesystem, but even that wouldn't be
> very risky.
>
> Is there a way to do this cleanly? Say, with a Heroku OAuth API?
>
> Oh, wait, I think I just figured it out!
>
> I can't create an app with the user's credentials. But I can create an app
> with *my* credentials (SSH keys) and then transfer ownership to the user
> (after appropriate email validation, of course).
>
> So I guess now my question becomes, can I use the heroku gem or CLI from
> inside a running heroku app?
>
>  - A
>
> [1] not nearly as tasty as Animal Crackers.
>
> (cc'ing the test-first-teaching google group in case someone there has any
> bright ideas or wants to contribute)
>
> --
> Alex Chaffee - a...@stinky.com - http://alexch.github.com
> Stalk me: http://friendfeed.com/alexch | http://twitter.com/alexch |
> http://alexch.tumblr.com
>
> --
> 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.
>



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



Re: Latency of writing in the DB

2011-06-24 Thread John McCaffrey
I would pull your prod data down locally and play with the queries to
optimize them in your local postgres. (rule out any difference in behavior
on the heroku stack)

grab your explain output and throw it in http://explain.depesz.com/

if your conditions are easy, you can add a uniqueness constraint at the db
level, which would be faster than doing it at the ORM/application level.

On Fri, Jun 24, 2011 at 6:08 AM, Michel Pigassou  wrote:

> Actually the query itself contains some restrictions, like the date and the
> owner of the objet, so it does not take so long to run.
> But I'll keep searching :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/heroku/-/3WN0_grxrz4J.
>
> 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.
>



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



Re: How to get New Relic 'Real User Monitoring' to work on Heroku?

2011-06-15 Thread John McCaffrey
ok, I guess all I needed to do was add this to my Gemfile, and pust it out
(along with Gemfile.lock)

gem 'newrelic_rpm'

push it up and kick the app around for awhile, and now I see the data.

On Wed, Jun 15, 2011 at 10:21 AM, Steve Smith  wrote:

> Hi John,
>
> We use the newrelic_rpm gem via bundler and also the rpm_contrib gem. In
> order to use them we didn't have to do anything special in development.
> Since we never run the app in production locally the code isn't loaded as
> far as I can tell. I did think that we had them in a production group but
> that doesn't seem to be the case.
>
> If that doesn't work for you then shout and I can dig around to see if we
> had to do anything different.
>
> Steve
>
> --
> 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.
>



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



How to get New Relic 'Real User Monitoring' to work on Heroku?

2011-06-15 Thread John McCaffrey
I installed the new relic add on through the heroku site (not as a plugin or
via bundler), and its been working fine, but now I'd like to see the end
user monitoring feature they have, but it says I have to update the gem.

What is the best approach for this?

Technically I didn't setup the new_relic config file, heroku did that for
me. I realize I could uninstall the heroku add-on, install the gem via
bundler, and have it point to a new relic account outside of heroku, but
that seems odd to have to do that just to get the latest version of the gem.

I'm hoping there is just something I'm missing.

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



Re: Gzip not available on Cedar?

2011-06-03 Thread John McCaffrey
Thanks for the play by play!

 I didn't get a chance to try out any of my apps on it yet, but I appreciate
the heads up on some of the things I might run into.

At first the lack of varnish seemed like a big loss, and that it would now
mean that your app server is requests that used to be served by varnish.

I read through this post on rack
cache,
which might not be the most up to date, but it eased my concern somewhat.

Getting the official word on the gzip thing would be nice.

thanks
-John

On Thu, Jun 2, 2011 at 8:50 PM, Chris Hanks
wrote:

> Nevermind, I found Rack::Deflater, and it seems to be Gzipping most
> things alright (it takes care of the assets, but not HTML, and i'm not
> sure why).
>
>
>
> On Jun 2, 6:30 pm, Chris Hanks  wrote:
> > I tried moving an app over to Cedar, and now that I'm looking at it in
> > Firebug it appears that Heroku isn't gzipping responses anymore. I
> > knew that I'd have to handle my own http caching since this stack
> > doesn't use Varnish, but I thought that Gzip was handled by Nginx and
> > would still be available. Is this another thing we have to handle at
> > the app level now?
>
> --
> 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.
>
>


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



Re: Download CSV from AWS as file, not text

2011-05-09 Thread John McCaffrey
Thanks for posting the conclusion!

Posting the resolution only takes a few minutes, but its so helpful for
future readers, and those of us just keeping tabs on the thread.

Thanks

On Fri, May 6, 2011 at 8:31 AM, batate  wrote:

> Here's the solution for posterity. There were two problems to solve:
>
> Recall that I'm using CarrierWave.
> 1) Heroku allows permissions only to the tmp directory. I needed to
> specify the cache dir on the attachment uploader.
> 2) I needed to set content headers for s3. You can specify them when
> you upload a file, and Amazon will provide them in the content headers
> when you download a file.
>
> So in my model (Mongoid), I have
>
> class Report
>  include Mongoid::Document
>
> ...
>
>  mount_uploader :attachment, AttachmentUploader
>
>
>
>
>
> And in my uploader, I have:
>
> class AttachmentUploader < CarrierWave::Uploader::Base
>
>
>  def store_dir
>"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
>  end
>
>  def s3_headers
>   { "Content-Disposition" => "attachment; filename=export.csv;" }
>  end
>
>  # Use Heroku's temp folder for uploads
>  def cache_dir
> "#{Rails.root}/tmp/uploads"
>  end
>
> end
>
>
>
> The s3 headers above set the content disposition type to attachment,
> so it will download as a file instead of a page. The filename will set
> the filename upon download.
>
> The cache_dir sets the temp holding area for Heroku, since the
> uploads/ directory is not public.
>
>
> To upload an attachment, I say report.attach. That does this:
>
>  def attach(filename)
>self.attachment = File.open(filename)
>self.save
>  end
>
>
>
> Hope this helps.
>
> -bt
>
> On May 5, 10:51 am, batate  wrote:
> > I am uploading reports, via Carrierwave, to Amazon s3, but with
> > protected urls. I'm able to process the upload fine, and I can see the
> > file on Amazon, but it renders as text. I want it to trigger a browser
> > download instead of just render the text.
> >
> > When I was generating the file via a template, I could control the
> > headers and force the right download like this:
> >
> >  helper_method :render_csv
> >   def render_csv(file, view=nil)
> > filename = "export"
> > filename = "user_export" if params[:action] == "process_users"
> > filename ||= params[:action]
> > filename += '.csv'
> >
> > (request.env['HTTP_USER_AGENT'] =~ /msie/i) ?
> > set_ie_headers( filename ) : set_headers( filename )
> > render :layout => false, :action => view
> >   end
> >
> > But now, I'm downloading from s3.
> >
> > Any suggestions?
>
> --
> 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.
>
>


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



Re: Block - storage is not a cloud-friendly technology

2011-04-27 Thread John McCaffrey
That's a good review of EBS issues, thanks for the link.

On Tue, Apr 26, 2011 at 10:41 PM, kowsik  wrote:

> On Tue, Apr 26, 2011 at 8:31 PM, Wes Gamble  wrote:
> > On 4/26/11 10:07 PM, kowsik wrote:
> >>
> >> On Tue, Apr 26, 2011 at 8:01 PM, Wes Gamble  wrote:
> >>>
> >>> I would like to understand this statement from the Heroku post-mortem
> >>> better:
> >>>
> >>> "2) Block storage is not a cloud-friendly technology. EC2, S3, and
> other
> >>> AWS
> >>> services have grown much more stable, reliable, and performant over the
> >>> four
> >>> years we've been using them. EBS, unfortunately, has not improved much,
> >>> and
> >>> in fact has possibly gotten worse. Amazon employs some of the best
> >>> infrastructure engineers in the world: if they can't make it work, then
> >>> probably no one can. Block storage has physical locality that can't
> >>> easily
> >>> be transferred. That makes it not a cloud-friendly technology. With
> this
> >>> information in hand, we'll be taking a hard look on how to reduce our
> >>> dependence on EBS."
> >>
> >> One of the comments that I've heard is that EBS is like a NAS drive,
> >> except its generating traffic on the same interface as the
> >> application. The more the app load that triggers more DB/file system
> >> load, the higher the chances of network congestion.
> >>
> >> You can't access a disk drive that's sitting across a different region
> >> because of the geo latency. You might be able to get away with the
> >> throughput, but the latency will be very visible. This is partly why
> >> an EBS in a particular AZ has to be used by an instance in that AZ.
> >>
> >> These are all guesses into a black box that we don't necessarily know
> >> how things operate. People are guessing based on the constraints
> >> presented by Amazon and the variability in performance.
> >
> > That makes sense.
> >
> > So, an entire region of AWS was down, correct?
>
> Again, basing on "hearsay" about the outage, when one of the AZ went
> down, apparently the EBS controller/thingamagic started mirroring the
> volumes to the other AZs which essentially brought down the whole
> region. Or something like that. Until Amazon comes out with the
> post-mortem, its anybody's guess as to what happened.
>
> Just read this blog:
> http://stu.mp/2011/04/the-cloud-is-not-a-silver-bullet.html
>
> Which seemed to resonate with me. Cloud is the ultimate embodiment of
> Murphy's Law. Everything bad that can happen, will happen. As long as
> you are prepared for the worst, the cloud a beautiful warm place with
> pixie dust and sunny skies. :)
>
> K.
> ---
> http://blitz.io
> http://twitter.com/pcapr
> http://labs.mudynamics.com
>
> --
> 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.
>
>


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



Most of my apps are back up...2 of them are having issues

2011-04-22 Thread John McCaffrey
I have a lot of single dyno free apps on heroku, and they are all reachable
except for 2.

http://simple-captcha-demo.heroku.com/  is a live demo of the different
captcha tools available in Rails.

   1. The app is running, (not getting the generic heroku  'Application
   Error') page, but is failing on db access
   2. tailing the logs shows the error is 'PGError: FATAL:  sorry, too many
   clients already'
   3. I can get into heroku console, but if I try to access the db I also
   get 'PGError: FATAL:  sorry, too many clients already'

I have another app that is a beta site for a client (so its pretty important
that it functions)

   1. I get generic 'Application Error' when hitting home page
   2. heroku logs --tail shows 'heroku[router]: Error H10 (App crashed) ->
   GET / dyno=none queue=0 wait=0ms service=0ms bytes=0
   3. attempting to increase the number of dynos did not help
   4. I can't get in to the console, I get the error

 Your application is too busy to open a console session.
 Console sessions require an open dyno to use for execution.

I'm not freaking out about this, and I haven't opened a ticket. I'm not
paying for this dyno yet, so I don't expect too much, and I realize the
Heroku team has been working like crazy to resolve this. (last year at
RailsConf they had a big outage, and had to explain it there at the
conference, and I bet its going to be a big topic this year as well.
Hopefully they'll be in a good position to give some pointers on how we
could architect our apps to be ready for this)

I just wanted to report that almost all of my free dynos are working, which
is great, and I'm sure these last 2 will come back soon.

As a side note, I learned that you can configure new relic to ping your app
at a specified interval, and notify you if the app is not up. Thanks New
Relic! (wish I would have had this installed 2 days ago!)

-John McCaffrey

-- 
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: Varnish and conditional GET

2011-03-23 Thread John McCaffrey
taking a look at that page using redbot.org

http://redbot.org/?uri=http%3A%2F%2Fhigh-night-436.heroku.com%2Fthingies%2F1

I
see that the cache is set to private, so varnish can't cache it and the max
age and age are both 0, so the browser thinks its stale, and has to
revalidate it.

For more info on this, check out the super-awesome 'Scaling
Rails'
series by Gregg Pollack and New Relic.

Leveraging client side caching, and varnish is the best strategy to get the
single free dyno to take you as far as possible. (heroku is great in that
they encourage your 'inner cheapskate' because you really can run a full
site on a single dyno pretty well if you tune things well)



On Wed, Mar 23, 2011 at 5:28 AM, Toproper  wrote:

> I'm trying to learn more about caching strategies and I'm trying to
> wrap my head around conditional GET in Rails. I think I get the basic
> idea but I can't get it to work properly, or maybe I'm understanding
> it wrong. Either way, some help would be appreciated.
>
> I have made a simple test app with the following action:
>
> def show
>  @thing = Thing.find(params[:id])
>  fresh_when(:etag => @thing, :last_modified => @thing.updated_at.utc)
> end
>
> The url of this representation is:
> http://high-night-436.heroku.com/thingies/1
>
> As I understand it this url should return a 304 not modified header
> after the first visit, but it doesn't. My first thought was that maybe
> I'm understanding this wrong and Varnish receives this header and
> servers the cached page, but I don't think this is happening either.
> To test this I included some code in the view that shows a random item
> from an array, if the page was server from the cache this item should
> always be the same.
>
> I think I'm misunderstanding some basic concepts here, but I can't
> figure out what those are exactly.
>
> --
> 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.
>
>


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



Re: Guidelines for Javascript and CSS Assets

2011-03-22 Thread John McCaffrey
Here is a recent write-up that is worth taking a look at.

http://jimmycuadra.com/posts/the-challenge-of-asset-packaging-on-heroku

On Tue, Mar 22, 2011 at 8:57 AM, cmar  wrote:

> Is there a section on Dev Center on the recommended solution for
> handling Javascript and CSS Assets? I haven't found one definitive
> solution for making the best use of the /tmp directory. I'm currently
> using SASS and was thinking of using jammit. But the solutions on
> github for using these gems with heroku seem older and I wonder if
> there is a more modern solution that is recommended by the Heroku
> Team.
>
> Thanks,
> Chris
>
> --
> 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.
>
>


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



Heroku demo: Captcha tools for rails

2011-03-21 Thread John McCaffrey
I've been doing a lot of security work lately, making sure a rails app meets
the security standards of a major financial institution.

In addition to input scrubbing, output escaping, and making sure exceptions
don't reveal too much data, I've had to implement basic captcha, to make it
harder for a bot to post forms.

Here's a post on 3 captcha plugins that I tested out and deployed to heroku
http://bit.ly/rails-captcha

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



Re: Monitoring Server Load

2011-03-21 Thread John McCaffrey
Tom,

You can start with the new relic add on, and watch response times, and queue
depth.

What I've done in the past is run some load tests through a local deployment
to get a sense of how many requests the app can handle on a 'similar' stack
(postgres, thin, etc).

Then I run the same load tests against the app deployed on heroku, while
monitoring with new relic, to see if the times are close, and where the time
is being spent.

Based on that you get a rough idea of how many requests a single dyno can
handle for your app, and what you might need to do if you are expecting a
significant uptick in requests.

Before you look to purchase more dynos, see if you can leverage the browser
cache more effectively, and then look for what can be put in the varnish
cache.

You want to make sure that you aren't wasting your dyno by having it serve
up requests for static assets like css, js, images, etc. Then you want to
use page caching if you have places where that will work.

Good luck!
-John


On Fri, Mar 18, 2011 at 7:56 PM, Tom O'Neill  wrote:

> Hey guys -
>
> What's the best way to monitor my site's serving capacity/performance?
> E.g. how can I tell when it's time to buy more dynos?
>
> Thanks!
> Tom
>
> --
> 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.
>
>


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



Re: New Relic Bronze - how to install

2011-03-07 Thread John McCaffrey
try the ui.

If it seems like its not working for your app, create a vanilla rails app,
throw it up to heroku, add new relic to it from the UI, and see if that
works.  (attempting to rule out any conflict in gems from your other app.
Though I've never heard of any conflicts with new Relic before)

On Fri, Mar 4, 2011 at 9:21 AM, Rupert Fisher  wrote:

> Thanks John,
>
> In the meantime I've removed the addon.
>
> Safe to add it again, if so shall I go via the command line or the web UI?
>
> Best,
>
> Rupert
>
> On 4 Mar 2011, at 15:10, John McCaffrey  wrote:
>
> you should start seeing data relatively soon.
>
> I've only added it using the UI interface though, so maybe there is a step
> I'm unaware of when you do it from the command line.
>
>
>
> On Thu, Mar 3, 2011 at 10:19 AM, bingobob < 
> rupe...@gmail.com> wrote:
>
>> Bit confused on the the docs re new relic bronze..
>>
>> I start with...
>>
>> heroku addons:add newrelic:bronze
>>
>> in my case ( i have two remotes )
>>
>> heroku addons:add newrelic:bronze --app appname
>>
>> that worked fine, I get a New Relic screen via heroku control panel I
>> even see the new relic config variables have been added.
>>
>> But no data!
>>
>> So do I need to install the New Relic Gem myself, the docs implied
>> that the config/newrelic.yml would be setup for me, file's not there
>> on my local machine? Do I just put the newrelic gem into my gemfile
>> and bundle install ?
>>
>> Please advise,
>>
>> Thanks
>>
>> bb
>>
>>
>>
>> --
>> 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>
>> http://groups.google.com/group/heroku?hl=en.
>>
>>
>
>
> --
> -John
>
>


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



Re: New Relic Bronze - how to install

2011-03-04 Thread John McCaffrey
you should start seeing data relatively soon.

I've only added it using the UI interface though, so maybe there is a step
I'm unaware of when you do it from the command line.



On Thu, Mar 3, 2011 at 10:19 AM, bingobob  wrote:

> Bit confused on the the docs re new relic bronze..
>
> I start with...
>
> heroku addons:add newrelic:bronze
>
> in my case ( i have two remotes )
>
> heroku addons:add newrelic:bronze --app appname
>
> that worked fine, I get a New Relic screen via heroku control panel I
> even see the new relic config variables have been added.
>
> But no data!
>
> So do I need to install the New Relic Gem myself, the docs implied
> that the config/newrelic.yml would be setup for me, file's not there
> on my local machine? Do I just put the newrelic gem into my gemfile
> and bundle install ?
>
> Please advise,
>
> Thanks
>
> bb
>
>
>
> --
> 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.
>
>


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



Re: App creation failing

2011-03-03 Thread John McCaffrey
basic questions that must be asked:

   1. Does the app work fine for you locally?
   2. Are there any gems that you think might not be registered or loading
   correctly?
   3. did you check the logs? (heroku restart)
   4. try restarting it? (heroku logs)
   5. remove parts of the app, or deploy another app with less stuff in it
   (to narrow down which thing its getting stuck on)

Maybe just an odd timing issue, give it another shot.


On Wed, Mar 2, 2011 at 9:35 PM, Kevin Patel  wrote:

> Just tried to create a new app and its stuck on "Create Status:
> creating" for the last 20 minutes.
>
> --
> 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.
>
>


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



Re: Running build on heroku using Integrity

2011-02-04 Thread John McCaffrey
ll 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"
>>>> "ddddd"
>>>> "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"
>>>> "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/29/.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"
>>>>
>>>> Please suggest where i am going wrong
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Jan 25, 2011 at 3:09 AM, John McCaffrey <
>>>> john.mccaff...@gmail.com> wrote:
>>>>
>>>>> So I gave it a try, and I don't see anything actually building (I adde

Re: Running build on heroku using Integrity

2011-02-02 Thread John McCaffrey
x27; 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"
>> "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/29/.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"
>>
>> Please suggest where i am going wrong
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Jan 25, 2011 at 3:09 AM, John McCaffrey <
>> john.mccaff...@gmail.com> wrote:
>>
>>> So I gave it a try, and I don't see anything actually building (I added
>>> the actual integrity project as a build target)
>>>
>>> In the logs I see
>>> Could not create directory '/home/slugs//.ssh'.
>>> Failed to add the host to the list of known hosts
>>> (/home/slugs/.ssh/known_hosts).
>>> Permission denied (publickey).
>>> fatal: The remote end hung up unexpectedly
>>>
>>>
>>> I'm guessing this is because I copied the git:.. url which is gonna go
>>> out over ssh
>>> duh, that's not gonna work!
>>>
>>> I then grabbed the https: version of the integrity repo, and tried that
>>> I was able to build, but got an error that 'rr' was not found. I guess
>>> I'd have to add any of the gems for any sub project into the main Gemfile,
>>> so they are present when everything is executed.
>>>
>>> I played around with a few variations and felt that:
>>>
>>>1. it would be nice to get some better feedback on the page, or in
>>>the logs. Most of the time I felt like it wasn't doing anything, but I 
>>> would
>>>wait just to see.
>>>2. It would be nice to 'disable' a project so it wouldn't attempt to
>>>run. (I was testing public and private projects, and assuming that only 
>>> one
>>>process would run on heroku, I wasn't sure if my other projects were even
>>>running, or if just the first one, which may have been misconfigured, was
>>>hanging the rest). If I could disable some projects then I'd know whats
>>>actually running. (Instead of having to delete them)
>>>
>>>
>>> I then tried a private project of mine to see how that works.
>>>
>>> On the  <http://integrityapp.com/>http://integrityapp.com/ page, it
>>> shows how to set your github token, so that you can access your private
>>> stuff. I tried this and it doesn't se

Re: How to get Ruby 1.9.2, Rails3, and PostgreSQL going?

2011-01-26 Thread John McCaffrey
Jay,

I'm in the process of going through the railstutorial.org chapters and
providing some coaching for some clients of mine that want to get up to
speed on rails. (and the railstutorial is a great way to do that!)

I would start with the most basic steps you can, and make sure that you use
rvm to keep your gems from conflicting.

(I assume you are talking about just getting the basic app he is describing
to work, not upgrading some other app you already had...with various
dependencies and issues not yet revealed to us)

It looks like you are not having a problem with heroku, but rather your
local setup. (so you might not get much response from this mailing list)

Here are the steps that I recommend

  rvm install 1.9.2  # if you hadn't already
  mkdir rails_tutorial
  cd rails_tutorial
  rvm use 1.9.2

#create a gemset that will hold all the gems for the rails_tutorial chapters

   rvm gemset create rails3tutorial

# write out a .rvmrc file that will ensure that whenever you are in this
directory, you use this gemset

   echo 'rvm use 1.9.2-p0@rails3tutorial' > .rvmrc

# cd out, and then back in again to have rvm ask you if you want to use this
gemset
cd ../
cd rails_tutorial
  # answer yes

# now we can install gems, and they will go into that gemset
  gem install bundler heroku
  gem install rails --version 3.0.3

# now let's build an app
  rails new first_app
  cd first_app
# start it up
  rails server
#just check that you have the index page
  open http://localhost:3000

# if we have something that works, lets create a local repo to keep track of
our changes
  git init
  git add .
  git commit -am 'initial commit'

# push it to heroku and see it live
  heroku create
  git push heroku master
 heroku open

#from there I'd do the scaffold step, check it locally and then push to
heroku and heroku rake db:migrate

Now I'm not on ubuntu, so maybe you are running into an issue I haven't
seen. At this point you may get better help from other people that are doing
the tutorial, and just follow what they do step by step.

Also, if you ever do 'sudo' gem install while using rvm you may cause issues
that can be hard to untangle. (gems not in the right place, wrong gems
loading, conflicts, etc)

good luck

On Thu, Dec 16, 2010 at 6:42 PM, Jay Godse  wrote:

> I have been fighting the Rails installation. Ruby1.8.7 on  Rails 2.3.x
> and heroku were working fine. Then I decided to upgrade to Ruby 1.9.2
> and Rails 3..0.3, using the instructions in Michael Hartl's tutorial
> at http://railstutorial.org/chapters/beginning. I got to the point of
> using autotest, but it didn't install, so I kept debugging and
> backtracking and adding librarries and backtracking...until I took all
> Ruby, Rails, RVM off my system (Ubuntu 10.4) and started with a fresh
> install of Ruby 1.9.2. I then installed Rails, but a few things went
> wrong.
>
> rails -v and "rails new doodad" worked to create a new app, but "rails
> server" did not work. It said,
>
> jgodse@ubuntu1:~/rapps/hartl/doodad$ rails server
> rails server
> /home/jgodse/rapps/hartl/doodad/config/boot.rb:9:in `rescue in  (required)>': uninitialized constant Object::Bundler (NameError)
>from /home/jgodse/rapps/hartl/doodad/config/boot.rb:5:in ` (required)>'
>from script/rails:5:in `require'
>from script/rails:5:in `'
> jgodse@ubuntu1:~/rapps/hartl/doodad$
> gem list --local
>
> *** LOCAL GEMS ***
>
> abstract (1.0.0)
> actionmailer (3.0.3)
> actionpack (3.0.3)
> activemodel (3.0.3)
> activerecord (3.0.3)
> activeresource (3.0.3)
> activesupport (3.0.3)
> arel (2.0.6)
> builder (2.1.2)
> bundler (1.0.7)
> configuration (1.2.0)
> diff-lcs (1.1.2)
> erubis (2.6.6)
> heroku (1.14.10)
> i18n (0.5.0)
> json_pure (1.4.6)
> launchy (0.3.7)
> mail (2.2.12)
> mime-types (1.16)
> nokogiri (1.4.4)
> polyglot (0.3.1)
> rack (1.2.1)
> rack-mount (0.6.13)
> rack-test (0.5.6)
> rails (3.0.3)
> railties (3.0.3)
> rake (0.8.7)
> rest-client (1.6.1)
> rspec (2.3.0, 2.1.0)
> rspec-core (2.3.0, 2.1.0)
> rspec-expectations (2.3.0, 2.1.0)
> rspec-mocks (2.3.0, 2.1.0)
> rspec-rails (2.1.0)
> sqlite3-ruby (1.3.2)
> thor (0.14.6)
> treetop (1.4.9)
> tzinfo (0.3.23)
> webrat (0.7.1)
> jgodse@ubuntu1:~/rapps/hartl/doodad$
>
>
> It seems that bundler is missing even though it is installed. Another
> time, I fired up rails, and it was looking for /usr/bin/ruby1.8 even
> though it is not installed on my system.
>
> I have fought this battle along a few differrent paths. My question,
> Is there a recipe that can get me a Ruby1.9.2/Rails3.0/postgresql
> Rails stack up and running.
>
> Or alternatively, if you have a Ubuntu 10.4 or Debian system up and
> running, could you give me a list of gems, libraries, programs, and
> environment variables that make your system happen?
>
>
> Thanks,   Jay
>
> --
> 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 unsubscrib

Re: rake db:migrate appeared to start migrating from the very beginning on two different apps.

2011-01-26 Thread John McCaffrey
Are you the same guy that is having one app point to the DATABASE_URL of
another heroku app?

these wouldn't be the same apps, right? (cuz, well that would be the first
thing I would suspect)

Prior to running your migrations you can check the migration version with:
heroku rake db:version


On Tue, Jan 25, 2011 at 11:07 PM, Wes Gamble  wrote:

>  This happened again to me.  I verified that:
>
> - the schema_migrations table was full of data
> - that a Gemfile change didn't prompt this.
>
> For whatever it's worth, here is the relevant portion of my Ruby script for
> pushing my app to heroku:
>
> #Push to Heroku
> system 'git push heroku'
>
> #Migrate the DB for the main application
> system 'heroku rake db:migrate'
>
> I have the DB backups in place to recover from this, but it is very
> disconcerting.
>
> I'm trying to think of a reason why the schema_migrations table might not
> be available after the 'git push heroku' call.   Should I make the script
> sleep for a couple of seconds?
>
> Wes
>
> On 1/25/11 6:27 PM, Wes Gamble wrote:
>
> Today, I ran my standard task to push changes to two different Heroku apps.
>
> As part of this task, I issue a:
>
> heroku rake db:migrate
>
>  In both cases, the database started migrating from the very first
> migration.  This, of course, doesn't make sense unless the schema_migrations
> table were empty or something, which shouldn't have been the case.
>
> Has anyone else complained about this today?
>
> After restoring the DBs in question up from my local installation using
> taps, I didn't see this behavior again.
>
> Wes
>  --
> 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.
>



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



Re: Running build on heroku using Integrity

2011-01-24 Thread John McCaffrey
So I gave it a try, and I don't see anything actually building (I added the
actual integrity project as a build target)

In the logs I see
Could not create directory '/home/slugs//.ssh'.
Failed to add the host to the list of known hosts
(/home/slugs/.ssh/known_hosts).
Permission denied (publickey).
fatal: The remote end hung up unexpectedly


I'm guessing this is because I copied the git:.. url which is gonna go out
over ssh
duh, that's not gonna work!

I then grabbed the https: version of the integrity repo, and tried that
I was able to build, but got an error that 'rr' was not found. I guess I'd
have to add any of the gems for any sub project into the main Gemfile, so
they are present when everything is executed.

I played around with a few variations and felt that:

   1. it would be nice to get some better feedback on the page, or in the
   logs. Most of the time I felt like it wasn't doing anything, but I would
   wait just to see.
   2. It would be nice to 'disable' a project so it wouldn't attempt to run.
   (I was testing public and private projects, and assuming that only one
   process would run on heroku, I wasn't sure if my other projects were even
   running, or if just the first one, which may have been misconfigured, was
   hanging the rest). If I could disable some projects then I'd know whats
   actually running. (Instead of having to delete them)


I then tried a private project of mine to see how that works.

On the http://integrityapp.com/ page, it shows how to set your github token,
so that you can access your private stuff. I tried this and it doesn't seem
to be fetching properly

I added the expanded logging addon
heroku addons:add logging:expanded

and was able to see more info when tailing the log
heroku logs --tail

at this point I still haven't gotten a private project to build, and it
doesn't seem like the integrity tests are running, even after adding 'rr' to
a Gemfile.

I tried to build the prawn project, and I at least got a 'success' message,
though I'm not sure it really built.
https://github.com/sandal/prawn.git

will play around with it more at a later time. I am interested in all of the
apps you can run on heroku, integrity, refinery, redmine, etc., and would be
interested in hearing any experiences people have had with it.

-John


On Mon, Jan 24, 2011 at 1:57 PM, John McCaffrey wrote:

> I tried getting integrity running on heroku a few weeks ago and ran into
> various issues with gem dependencies, and bailed after various trial and
> error attempts.
>
>
> the error I got was
>  Bundler could not find compatible versions for gem "json":
>  In Gemfile:
>broach depends on
>  json (~> 1.4)
>
>json (1.1.9)
>
> I don't think I was pulling from the same github project you were, so I'll
> give this one a quick try and see what happens.
>
> As this may be an issue with that project, and not heroku, you may find
> more success in pining that author through github.
>
>
> On Tue, Jan 11, 2011 at 10:38 AM, Amit Kulkarni <
> amitkkulkarni...@gmail.com> wrote:
>
>> Hi,
>> I have successful installed heroku gem and integrity-heroku plugin (
>> https://github.com/myronmarston/integrity-heroku) .
>> I have successfully added a project in the Integrity.But by clicking on
>> the manual build the app shows status as 'building' .It does not show failed
>> or success.
>> I tried to look into the log by typing the command 'heroku logs' but it
>> does not show anything.It only shows that the application starting port..
>> I also tried going heroku console ->log but didnt find anything.
>> Please sugest.
>>
>> --
>> 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.
>>
>
>
>
> --
> -John
>



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



Re: tailing heroku logs does not work

2011-01-24 Thread John McCaffrey
I just ran into an issue with this. I had an older version of the heroku
gem, and when I tried to use the expanded logging, it would say 'not
supported for your client version'

gem update heroku

now heroku logs --tail works

and its pretty



On Wed, Jan 19, 2011 at 12:45 PM, Adam Wiggins  wrote:

> Make sure you have the latest Heroku gem:
>
> $ gem install heroku
>
> Adam
>
>  --
> 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.
>



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



Re: Running build on heroku using Integrity

2011-01-24 Thread John McCaffrey
I tried getting integrity running on heroku a few weeks ago and ran into
various issues with gem dependencies, and bailed after various trial and
error attempts.


the error I got was
Bundler could not find compatible versions for gem "json":
 In Gemfile:
   broach depends on
 json (~> 1.4)

   json (1.1.9)

I don't think I was pulling from the same github project you were, so I'll
give this one a quick try and see what happens.

As this may be an issue with that project, and not heroku, you may find more
success in pining that author through github.


On Tue, Jan 11, 2011 at 10:38 AM, Amit Kulkarni
wrote:

> Hi,
> I have successful installed heroku gem and integrity-heroku plugin (
> https://github.com/myronmarston/integrity-heroku) .
> I have successfully added a project in the Integrity.But by clicking on the
> manual build the app shows status as 'building' .It does not show failed or
> success.
> I tried to look into the log by typing the command 'heroku logs' but it
> does not show anything.It only shows that the application starting port..
> I also tried going heroku console ->log but didnt find anything.
> Please sugest.
>
> --
> 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.
>



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



Re: postgres tuning

2011-01-13 Thread John McCaffrey
I've been working on postgres tuning for an app recently, and I was
wondering if you were able to change these configs locally and see a
meaningful improvement.

I've seen improvements of large queries with sorts, by increasing work_mem
(which can be done within your session), but other settings always seem to
take a good deal of fiddling with, in order to get them to make a
difference, so I'm wondering if you've already proven that this change will
help or not.

(it might be bold of me to assume that you'd pull down your prod data from
heroku, and fire up a local postgres to tune your queries against)

Here's a good list of postgres tuning options that you can do now
http://robots.thoughtbot.com/post/2638538135/postgresql-performance-considerations

I'd be interested in any of the things you've already done to improve your
performance on heroku, The more we share the better things are for all of
us.

-John

On Tue, Jan 11, 2011 at 11:48 AM, Carson Gross wrote:

> Hey Guys,
>
> Any further thoughts on this?
>
> Thanks,
> Carson
>
> On Jan 7, 1:35 pm, Carson  Gross  wrote:
> > Sure.  We've got a big, ugly database that we are constantly slamming
> > data into (nearly constant appends on one table, with occasionally
> > purges.)  We'd like to increase the checkpoint segments to see if that
> > boosts write performance.
> >
> > On the cache side, according to this website:
> >
> >  http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
> >
> > "Setting effective_cache_size to 1/2 of total memory would be a normal
> > conservative setting, and 3/4 of memory is a more aggressive but still
> > reasonable amount."
> >
> > Again, as near as I can tell, the default in Heroku is to set it to
> > 200MB.  We are running a ronin database, which should have 1.7 Gigs of
> > RAM, giving 850MB to 1.3 GB of cache as the ideal, at least according
> > to that wiki entry.
> >
> > Our goal is to extract maximum performance with minimum effort and bug
> > creation and, therefore, tweaking some postgres parameters would be an
> > ideal way to do so.  Let me know if you need any more details on our
> > use case.
> >
> > Thanks!
> > Carson
> >
> > On Jan 7, 12:40 pm, Matthew Soldo  wrote:
> >
> >
> >
> > > Hi Carson,
> >
> > > We don't support tuning the dedicated database.
> >
> > > I'd love to hear more about your requirements and needs around this.
> It's
> > > possible that this could be supported in the future.
> >
> > > Matt
> >
> > > On Fri, Jan 7, 2011 at 10:50 AM, Carson Gross 
> wrote:
> > > > Is it possible to tune a dedicated postgres database?  In particular,
> > > > we'd like to change the effective cache size and checkpoint segments
> > > > setting from the defaults (appear to be ~200MB and 40, respectively.)
> >
> > > > Cheers,
> > > > Carson
> >
> > > > --
> > > > 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.
>
>


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



Re: free vs. paid heroku app performance

2010-08-30 Thread John McCaffrey
If you think that its dying when the slug is being compiled, or you just
want to improve your slug loading time, you might want to tell it which
parts of your repo are not needed during runtime.

some common things to add to your .slugignore file
  *.psd
  *.pdf
  test
  spec
  doc

you might also check if any of your vendored gems/plugins are not needed
during runtime (testing related stuff most likely)

The point is not that having these components is slowing down runtime
(though they might, slightly), but rather that including them in the slug
will slow down the spin-up time for no good reason.

you can find out more at:
http://docs.heroku.com/slug-compiler

On Sat, Aug 28, 2010 at 3:42 PM, Dennis  wrote:

> I think I have to agree with Stefan - *particularly* when it comes to
> staging. Why not take the cheapest entry level package for staging for
> a month  - any outfit that advertises "rock solid ruby platform"
> should give good to excellent service for even the cheapest "paid-for"
> package.
>
> I totally agree with your previous post and its sentiments - the need
> to be aware of, and working on, the problem when the client calls at
> 2:00 a.m. is critical - it has to be one of the worst feelings ever to
> have your client inform you the site is down and not be aware of it.
>
> However the discussion started on the topic the free account's
> (staging) performance ... doesn't surprise me it's poor to fair ...
>
>
> On Aug 28, 1:43 pm, David  wrote:
> > It's in the best interest of any web site operator to know when their
> > web site is down external from your hosting company regardless of
> > platform, language, or baseline hosting provider's functionality.
> > When I get a phone call at 2am that the web site is down, I should
> > already be on it.
> >
> > It just happens that it has the same benefits for spun down processes.
> >
> > I understand where you're coming from in regards to all the free sites
> > but most likely the operators of those sites are leveraging Varnish
> > and site monitoring is simply going to hit the same cached route.  We
> > can only work with what we have, if they want it done differently -
> > give us the option.  Besides, I pay plenty a month for it to work in
> > my situation.
> >
> > /david.
> >
> > On Aug 27, 10:52 am, Stefan Wintermeyer 
> > wrote:
> >
> >
> >
> > > Am 27.08.2010 um 15:27 schrieb David:
> >
> > > > That's what we do, setting up site monitoring is part of my normal
> > > > routine so I have something checking the site every 5 mins including
> > > > staging.
> >
> > > I think that might not be in the best interest of the Heroku guys. If
> they wanted it that way they'd have built it in.
> >
> > >   Stefan
> >
> > > --
> > > AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  -->  http://www.amooma.de
> > > Geschäftsführer: Stefan Wintermeyer, Handelsregister Montabaur B14998
> >
> > > Asterisk 1.6:http://das-asterisk-buch.de
> > > Ruby on Rails 3:http://ruby-auf-schienen.de
> > > Videos and slides of AMOOCON:http://amoocon.de
>
> --
> 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.
>
>


-- 
-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: Crazy slow AJAX performance

2010-08-23 Thread John McCaffrey
Sounds like an interesting problem.

To recap:
1. You do not see this behavior locally in Firefox or Safari, but only when
deployed to Heroku (and that's why you posted to this group)
2. Its always been this way, and nothing changed recently (new version of
jquery, etc)

Is this something that we can test ourselves on a public URL?

I could take a look at it using some of the low level tools that work in IE
(VRTA, fiddler, httpwatch, etc), as well as google speed tracer, which will
show you a breakdown of the events from dns lookup, request, download,
parse, render.

Is the payload large? Is it possible that it takes forever for it to be
parsed?

Not sure how easy it would be to take a completed response and then mock the
xhr call to see if taking the network out of the equation displays the same
problem (mocking the xhr states might be something that's already covered in
any of the javascript testing frameworks)

I've been evaluating a few of the browser tools, and would welcome a good
use case to test them against, and see which one helps identify the problem,
so go ahead and give us the url so we can try it out and give you a hand
with this.  (I know how frustrating a problem like this can be)

-John

On Fri, Aug 20, 2010 at 7:14 PM, Donald Ball  wrote:

> For what it's worth, I've now tried logging the AJAX with both firebug
> and firebug-lite. Firebug reports the AJAX HTTP response as received
> within tens of milliseconds, while firebug-lite reports it as received
> after 4-5 seconds. This suggests to me that the lag is occurring in
> the browser; maybe the HTTP connection isn't being closed promptly on
> heroku's side of things?
>
> - donald
>
> --
> 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.
>
>


-- 
-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: Scaling limits and biggest app examples?

2010-06-14 Thread John McCaffrey
Its a good question, and one that you would want to ask of any platform you
plan to host on.

I just saw the heroku team at RailsConf, and they laid out some info that
was pretty interesting.

Here are my raw notes on their largest sites:

some of their bigger apps

   http://www.scvngr.com
explosive growth
featured on major sites
 millions of users

   http://www.syphir.com
   rules and smart push for gmail to your phone
anti-social, delay emails from facebook/twitter until the end of the
day, so I can get work done
they got huge spike in traffic
 spun up more dynos from the command line
brought them down ofter spike

   http://getcloudapp.com
   mac based, file sharing
shift cmd / enter takes screenshot
 pushes to cloudapp, heroku -> s3, short url, copies to clipboard
>4k req/min
 20% week over week growth
dedicated db

When you start to think about the performance of your application, there are
a few points I woud want to make:

   1. Scalability does not equal performance. While they are related, its
   possible to have a scalable app that is actually pretty slow (facebook
   doesn't feel all that fast to me, but it scales to handle its users). Heroku
   gives you a scalable platform, you tune your app to be as performant as
   possible, and spin up more dynos as needed. This lets you handle growth over
   time, or in bursts, in a balanced progressive way.
   2. What kind of performance issues do you expect? Heavy writes, mostly
   reads, lots of background processing, CPU intense activities, consistent
   usage or month-end spikes? Facebook and google are very different apps, with
   very different architectures, once an app gets to that size, I think the
   hosting solution becomes very custom.
   3. Heroku speeds up the development and deployment process, making it
   easier to get an app out and get critical feedback before the 'cement'
   dries. Its more important to launch a functional, but slow, application than
   to delay the launch or prematurely tune an app in the name of performance.
   (tune it once your users tell you which features they actually care about)

There is an overhead that is added by the heroku system, and it would be
interesting to see what impact it has. It might be as simple as having an
app deployed on two hosts, run some performance tests and see what the
differences are.

Has anyone done anything like this yet?



On Fri, Jun 11, 2010 at 10:10 AM, Mike  wrote:

> I remember seeing discussions in the past where it was said that
> Heroku can scale to handle any site, and that there haven't been any
> sites yet that have left due to inability to scale.
>
> Is this to say that it is plausible that Heroku's platform could
> handle running the biggest applications on the Internet, such as a
> massive search engine (say, Google) or a massive social network (say,
> Facebook)?
>
> I can see why with the dyno system the scaling is effectively
> unlimited, but I'm a little concerned because with only one database
> server, it seems like it would be extremely difficult to handle
> database-heavy use cases.
>
> Are there any examples out there of really large and popular sites
> (especially those that are heavy on the database load) that are run on
> the Heroku platform?
>
> --
> 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.
>
>


-- 
-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: sass_on_heroku / hassle

2010-03-26 Thread John McCaffrey
I threw a quick app together to show how haml and sass can work on heroku,
along with formtastic and a nice jquery dynamic styles changer here:
http://mccaffrey-formtastic.heroku.com/

The project is on github here
http://github.com/jmccaffrey/formtastic_sass_on_heroku

Let me know if you have any questions, I did this a few months ago...

I hadn't heard of hassle, I'll have to check it out.

-John

On Fri, Mar 26, 2010 at 8:30 AM, Marcel Overdijk
wrote:

> As I understand sass_on_heroku or better hassle can be used to compile
> sass stylesheets to the /tmp folder on Heroku. I'm wondering what the
> findings are about using this approach.
>
> I'm asking because of this mention in the Heroku docs. Especially the
> last sentence.
>
> There are two directories that are writeable: ./tmp and ./log (under
> your application root). If you wish to drop a file temporarily for the
> duration of the request, you can write to a filename like
> #{RAILS_ROOT}/tmp/myfile_#{Process.pid}. There is no guarantee that
> this file will be there on subsequent requests (although it might be),
> so this should not be used for any kind of permanent storage.
>
>
> Cheers,
> Marcel
>
> --
> 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.
>
>


-- 
-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: App Monitoring

2010-03-25 Thread John McCaffrey
Also, the new relic add-on will give you alerts for failures and changes in
response times.

While this isn't the same as url monitoring, it does provide some very
critical diagnostic info, including your heroku queue depth (which is very
cool), and its free!

I wonder if anyone has had success with any of the free url monitoring sites
out there?
I found this one
(intervista)which
will ping your site every 60mins from different locations, for free.
(though it looks like they want you to put an image banner on the page you
want them to monitor, which could just be some other unimportant page you
have)

I was also wondering if anyone has used a url monitoring site like this to
trigger a 'cron-like' server process? (Have the site monitor hit a specific
url that will trigger some task or process that you need.)

It seems a little convoluted, but depending on the nature of the task, it
might not be that bad. (update an rss feed, publish some results, do some
cleanup of old session data or something)

-John


On Thu, Mar 25, 2010 at 9:54 AM, Jesse  wrote:

> that would be a nice add-on
>
> here is a rather naive monitoring script (rake task) replace the
> 'TODO's as needed
> http://gist.github.com/343625
>
> I call this every 5 minutes via cron from my workstation, later I will
> probably install it on other machines that are outside of the Heroku
> and Amazon infrastructure so I can turn my workstation off at night :)
>
>
> On Mar 24, 8:02 pm, Jared Brown  wrote:
> > I know that this topic has been discussed before.  As far as I can
> > tell the official response has been that apps are monitored internally
> > and that Heroku will know before anyone if apps are having issues
> > responding.  But not having a URL monitoring service offered as an add-
> > on seems like an oversight or at the least an easy way to appease some
> > users and cross an item off the list of reasons to choose
> > engineyard.com.
> >
> > Are there any plans to offer URL monitoring from external servers in
> > the future or to have this offered through a partner under add-ons?
> >
> > Thanks in advance
> >
> > Jared
>
> --
> 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.
>
>


-- 
-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: Sass_on_heroku compiled css shows line number

2010-02-08 Thread John McCaffrey
so I went back to my project and tried to push it out to heroku again

Here's what I did, (not sure which step made it work exactly)
1. made sure my .gems file had these
haml --version '>= 2.2.0'
chriseppstein-compass --version '>= 0.8.7' --source gems.github.com
2. removed .gitignore entries for tmp/ and public/stylesheets/compiled
3. made sure all stylesheets were compiled and in the right dir
4. added this to config/initializers/compass.rb
Sass::Plugin.options[:never_update] = true

So  I figured this should take care of it all, and I should be ready to
rock. I  mean I did everything I found on every blog, right?

Wrong, still not working.  Why?  Cuz I'm an idiot, that's why.
At some point I must have decided to get all fancy and tell rails to cache
multiple css files together, and i added this (in haml syntax)
   = stylesheet_link_tag 'formtastic', 'formtastic_changes.css' ,  :cache =>
'formtastic_base'

well heroku doesn't like that, so I took off the cache part (plus I'm not
sure that it really makes sense to combine those two files as they are
intended to be loaded separately, and in a particular order)

now I have a version of my app deployed and working. Under this current
plan, I'd have to make sure that I am pushing all of the compiled css files,
which I'm not keen on, but we'll try it out and see.

but it was worth the 20 mins to give it another try

On Wed, Jan 13, 2010 at 3:50 PM, John McCaffrey wrote:

> I tried to deploy an app with compass, and wasn't able to get it to work. I
> didn't dig into it enough, (well I tried a lot of stuff, but wasn't able to
> get it to work), so I took a step back to make sure I could get the basic
> sass stuff to work.
>
> Once you get your issue taken care of, I'd like to know what steps you took
> to get compass to work, as it seems your issues are more related to compass
> than sass on heroku.
>
> The css files for my http://mccaffrey-formtastic.heroku.com/  site do not
> have line numbers, even in development.
>
> My other project for work, which is using compass, does have line numbers
> in development, but not in production.
>
>
>
> On Tue, Jan 12, 2010 at 9:11 PM, Karl  wrote:
>
>>
>> On Jan 12, 12:53 pm, John McCaffrey  wrote:
>> > I don't know if you are referring to a different plugin, but I'm using
>> the
>> > one mentioned on the heroku bloghttp://
>> blog.heroku.com/archives/2009/8/18/heroku_sass/
>>
>> Yup, that's the one I'm using.
>>
>> > <http://blog.heroku.com/archives/2009/8/18/heroku_sass/>I put together
>> a
>> > quick demo to show how awesome sass, haml, and formtastic are, so some
>> > people on my team could start 'drinking the koolaid' with me!
>> >
>> > http://mccaffrey-formtastic.heroku.com/
>> >
>> > <http://mccaffrey-formtastic.heroku.com/>my application.sass includes
>> these
>> >
>> > @import scaffold.sass
>> > @import formtastic_base.sass
>> > @import skintastic.sass
>> >
>> > but the final compiled css doesn't have any line numbers or unexpected
>> > artifacts
>>
>> I have to agree with you, it doesn't have any line numbers.
>>
>> I am using compass... wonder if that is having an effect on the
>> generated css.
>>
>> John, are you seeing the line numbers when running under development
>> environment? You should.
>>
>> --
>> 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.
>>
>>
>>
>>
>
>
> --
> -John
>



-- 
-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: Missing table error with db:push

2010-02-08 Thread John McCaffrey
I don't have a specific answer for you, but in general I would suggest using
postgres locally, to make it easier to debug issues like this.

That way you can rule out 'postgres'  issues vs 'heroku postgres'. You'll
see in other threads some various tips when migrating from mysql to
postgresql, and you'll find it a lot easier to go through that stuff and
being able to verify it locally.


On Sun, Feb 7, 2010 at 7:16 AM, Andy Waite  wrote:

> I'm having trouble pushing a local MySQL database to Heroku:
>
> $ heroku db:push
> Auto-detected local database: mysql://
> root:he...@127.0.0.1/wscript?encoding=utf8
> Sending schema
> Sending data
> 22 tables, 184 records
> !!! Caught Server Exception| ETA:
> --:--:--
> Taps Server Error: PGError ERROR:  relation "added_permissions" does
> not exist
>
> I have the following gems installed:
>
> rails (2.3.5, 2.3.3, 2.2.2, 2.1.0, 2.0.2, 1.2.6)
> heroku (1.7.0, 1.4, 1.3.0)
> taps (0.2.24, 0.2.23)
>
> The beginning of my schema.db looks like this:
>
> ActiveRecord::Schema.define(:version => 20100120135931) do
>
>  create_table "added_permissions", :id => false, :force => true do |
> t|
>t.integer "ID", :null => false
>t.integer "item_id",:null => false
>t.string  "item_type", :default => "", :null => false
>t.integer "area",   :null => false
>  end
>
> (the schema is from a non-Rails app, hence the upper case ID)
>
> Note that 'rake db:schema:load' runs fine without an errors, so it
> seems the table is being created correctly.
>
> Any suggestions for what the problem is, or how to diagnose it?
>
> Andy
>
> --
> 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.
>
>


-- 
-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: Postgres tools?

2010-02-05 Thread John McCaffrey
The standard setup described on postgresql.org should work for linux or
windows  (mac is a
different story)

I'm currently in the process of trying to keep a rails app working with
mysql and postgres, in an effort to stay db agnostic, 'heroku ready', and
because I like postgres more for lots of other reasons..

If you are converting an existing app, here are some things I've run into::

   1. Case sensitivity (mysql is case insensitive, postgres is not)
   2. convert to sql standard functions: use coalesce instead of IFNULL,
   case instead of if
   3. Mysql lets you do 'limit 10,10' in postgres you have to do 'limit 10
   offset 10'
   4. string escape syntax is different

there are similar client/gui tools for postgres. (though, I've recently gone
back to using Netbeans built in query tool, as it saves all my recent
queries and just makes life easier)

Google for: rails ~move mysql to postgres   to see what others have said
about general differences (also, keep searching through this heroku list, as
many people have gone through this)

One of the better write ups comes from the guys over at the very awesome
real estate site www.redfin.com
 http://blog.redfin.com/devblog/2008/02/mysql_to_postgres.html

Best of luck,
and welcome to Heroku!

-John

On Fri, Feb 5, 2010 at 4:56 AM, Jamie Lawrence  wrote:

> I need to move my development from mysql to postgres so I can better
> match the heroku environment.
>
> Does anyone have a good tutorial/stack to start with postgres on
> ubuntu and windows? I only ask because sometimes the official packages
> are not the easiest way to get a database setup and postgres is
> frequently described as harder than mysql to setup.
>
> I also use the MySQL Query Browser for testing/introspection. Is there
> a similar tool available for postgres?
>
> Thanks!
>
>  Jamie
>
> --
> 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.
>
>


-- 
-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: Why is it mandatory to submit Credit Card Information for Add Ons ?

2010-01-13 Thread John McCaffrey
mandatory I can understand, but only supporting 3 credit card types?

What's up with that?



On Mon, Jan 11, 2010 at 12:05 PM, Morten Bagai  wrote:

> Hi Amir,
>
> It's mandatory because some services (smtp, for example) carry a
> potential for abuse. In case of a problem or dispute we need to be
> able to reliably contact our customers. As we serve customers from all
> over the world, we have found no other reliable means of
> identification than payment details. Of course, we're always looking
> at new ways of providing those details to us so that people can use
> the methods they feel most comfortable with.
>
> Best,
>
> Morten
>
> On Jan 11, 9:40 am, Amiruddin Nagri  wrote:
> > I have been using heroku for sometime, and want to try the free add ons
> that
> > heroku offers.
> >
> > But I am not comfortable with submitting my credit card information
> unless I
> > am purchasing any paid services.
> >
> > Can the verification process be relaxed and the free add-ons be
> accessible
> > without submitting any sort of credit card information.
> >
> > Regards,
> > Amir
>
> --
> 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.
>
>
>
>


-- 
-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: Sass_on_heroku compiled css shows line number

2010-01-13 Thread John McCaffrey
I tried to deploy an app with compass, and wasn't able to get it to work. I
didn't dig into it enough, (well I tried a lot of stuff, but wasn't able to
get it to work), so I took a step back to make sure I could get the basic
sass stuff to work.

Once you get your issue taken care of, I'd like to know what steps you took
to get compass to work, as it seems your issues are more related to compass
than sass on heroku.

The css files for my http://mccaffrey-formtastic.heroku.com/  site do not
have line numbers, even in development.

My other project for work, which is using compass, does have line numbers in
development, but not in production.



On Tue, Jan 12, 2010 at 9:11 PM, Karl  wrote:

>
> On Jan 12, 12:53 pm, John McCaffrey  wrote:
> > I don't know if you are referring to a different plugin, but I'm using
> the
> > one mentioned on the heroku bloghttp://
> blog.heroku.com/archives/2009/8/18/heroku_sass/
>
> Yup, that's the one I'm using.
>
> > <http://blog.heroku.com/archives/2009/8/18/heroku_sass/>I put together a
> > quick demo to show how awesome sass, haml, and formtastic are, so some
> > people on my team could start 'drinking the koolaid' with me!
> >
> > http://mccaffrey-formtastic.heroku.com/
> >
> > <http://mccaffrey-formtastic.heroku.com/>my application.sass includes
> these
> >
> > @import scaffold.sass
> > @import formtastic_base.sass
> > @import skintastic.sass
> >
> > but the final compiled css doesn't have any line numbers or unexpected
> > artifacts
>
> I have to agree with you, it doesn't have any line numbers.
>
> I am using compass... wonder if that is having an effect on the
> generated css.
>
> John, are you seeing the line numbers when running under development
> environment? You should.
>
> --
> 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.
>
>
>
>


-- 
-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: Sass_on_heroku compiled css shows line number

2010-01-12 Thread John McCaffrey
I don't know if you are referring to a different plugin, but I'm using the
one mentioned on the heroku blog
http://blog.heroku.com/archives/2009/8/18/heroku_sass/

I put together a
quick demo to show how awesome sass, haml, and formtastic are, so some
people on my team could start 'drinking the koolaid' with me!

http://mccaffrey-formtastic.heroku.com/

my application.sass includes these

@import scaffold.sass
@import formtastic_base.sass
@import skintastic.sass

but the final compiled css doesn't have any line numbers or unexpected
artifacts



On Mon, Jan 11, 2010 at 11:10 AM, Karl  wrote:

> Just noticed this today, using sass_on_heroku when I look at the
> generated css, it still contains line numbers.
>
>  /* line 16, ../../app/stylesheets/partials/_base.sass */
>  .spacer-40 { height: 40px; }
>
> I tried the following with no effect:
>Sass::Plugin.options[:style] = :compact
>Sass::Plugin.options[:line_numbers] = false
>
>
> --
> 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.
>
>
>
>


-- 
-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: HTTP Caching / Rails / etag / last modifed / varnish

2009-09-18 Thread John McCaffrey
Thanks for pointing out redbot.org, its very handy. I used it against my own
heroku site prawn.heroku.com  (examples of how to generate pdfs in rails
with the Prawn, prawn-to libraries), and I noticed that the server times
would vary as I refreshed the page.

http://redbot.org/?uri=http://prawn.heroku.com

the first time I hit it, the server time was considered to be correct, but
subsequent refreshes returned anywhere from 5mins ahead to 6hrs ahead. I
assume this is just at the nginx server, and doesn't mean that the server
time on my rails server is out of sync.

Am I reading this right?

thanks,
-John



> Hi Thomas,
>
> Thanks for the detailed example. It looks like Varnish is assuming a
> default max-age of ~500 seconds since the Cache-Control header is set
> to public but no explicit max-age is specified and the must-revalidate
> directive isn't provided. redbot.org is an invaluable resource in
> debugging these types of issues:
>
> http://redbot.org/?uri=http%3A%2F%2Ftest-caching.heroku.com%2F
>
> Most HTTP caches support "heuristic expiration" (details here:
> http://tools.ietf.org/html/rfc2616#page-80). The basic idea is that,
> if no explicit expiration time/age is provided, the cache uses a
> heuristic to determine expiration, typically based on the
> Last-Modified header.
>
> You have a few options here. If you'd like to force the cache to
> always validate the response with the backend, you can set the
> "must-revalidate" cache-control directive. Somewhere before the call
> to stale?:
>
>response.headers['Cache-Control'] = "public, must-revalidate"
>
> That tells the cache that it's not allowed to serve a stale response
> and that it must validate its version with the backend.
>
> Alternatively, you can set the max-age directive to zero. This has
> pretty much the same effect but looks a lot nicer because Rails has a
> controller method for it:
>
>expires_in 0, :public => true
>
> Give those a shot and let me know what happens. I'm also not sure I
> like that Varnish does heuristic expiration by default, even though
> it's to spec.
>
> Thanks,
> Ryan
>
> >
>


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



Re: herokugarden is down again

2009-08-17 Thread John McCaffrey
ok, you've convinced me that its worth moving over. (I hope you're not like
my older brother telling me 'the water's fine', only to find out that its
freezing, or 'this pepper isn't hot at all')
I was really excited about herokugarden, but when I was trying to convince
some other people on the team about how awesome it was, the site wouldn't
load.

So did someone say the online editor isn't available on heroku? what about
being able to get to the rails console? (I guess I'll need to set aside some
time and dive in)



On Fri, Aug 14, 2009 at 10:50 PM, Norman Close wrote:

>
> I have just moved by app to Heroku and it is excellent.  The
> combination of Git and the Heroku client gem makes it so easy.
>
> It really is the most amazing service.  Small thing like being able to
> type "heroku keys" to set up you public keys rather plod through
> lengthy configuration setups.
>
> Wondering why I didn't move soon.
>
> On Aug 10, 10:17 am, Norman Close  wrote:
> > I think it is a good suggestion to upgrade to Heroku and I am
> > certainly planning to do this.
> >
> > However I need HerokuGarden to be available to extract my data.
> >
> > So looking forward to HerokuGarden being up again thanks.
> >
> > On Aug 8, 1:10 am, Keenan Brock  wrote:
> >
> >
> >
> > > I used this as an opportunity to finally move my app to Heroku
> >
> > > Took < 5 minutes
> >
> > > On Aug 7, 2009, at 7:48 AM, nacho  wrote:
> >
> > > > my application in herokugarden doesn't work
> >
> > > > --
> > > > // nacho- Hide quoted text -
> >
> > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
> >
>


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



Re: Spam

2009-06-23 Thread John McCaffrey
I triple vote for that. I want to keep up to date on heroku, but the spam
really sucks.

On Tue, Jun 23, 2009 at 11:12 AM, Trevor Turk  wrote:

>
> I've read elsewhere that setting the "first post by a user must be
> approved by a moderator" thingy in Google Groups can really help with
> spam...
> >
>


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