Re: Logging to stdout seemingly ignored

2014-07-17 Thread Jonathan Sterling
Welp, I'm sorry for spamming the board since I've found the solution already. For posterity, here's how to make logging work in a Haskell app without tearing out your hair: hSetBuffering stdout NoBuffering Best, Jon On Thursday, July 17, 2014 5:30:42 PM UTC-7, Jonathan Sterli

Logging to stdout seemingly ignored

2014-07-17 Thread Jonathan Sterling
I hope this is the right place to ask this question. I have a Haskell app running on Cedar, and I am having some trouble with logging. When I print to stdout and run my app locally, I can see the output; but it does not appear in `heroku logs`. In fact, `heroku logs --source app` is quite empty

Re: Impossible to create an application to Eclipse

2014-05-30 Thread Jonathan Jackson
I get the same problem and I believe it is because the Heroku/Eclipse plugin is not persisting my Heroku Account Email and Password. Check your Preferences | Heroku and see if you have same issue. Not sure if this is the plugin or Eclipse. Sometimes it seems Eclipse has issues persisting securi

CacheMigration gem to help migrating to MemCachier

2013-08-26 Thread jonathan
As many of you know, Heroku is deprecating their memcache addon in favor of the Memcachier service. Customers are required to switch to the new servers by Oct 31. For high traffic sites, transitioning to a cold memcache server can be difficult. I threw together a ruby gem that will allow you to

Re: Gem for serving Rail's assets on Cedar

2013-03-01 Thread jonathan
ing. I haven't seen the diff between this and > Rails master, but is there any reason we wouldn't want this in Rails 4 by > default? > > -- > Richard Schneeman > http://heroku.com > @schneems <http://twitter.com/schneems> > > On Wednesday, Februar

Gem for serving Rail's assets on Cedar

2013-02-27 Thread jonathan
Hi all, I've packaged up a new gem for serving the .gz files that are created by the Rail's asset precompiler. https://github.com/jbaudanza/action_dispatch-gz_static Usually these gzipped files are served by something like nginx. Since nginx isn't available on Cedar, you can use this gem inste

Pull Request for ActionDispatch::Static

2012-12-31 Thread Jonathan Baudanza
I put this pull request together to help apps on heroku serve gzipped assets generated by the rails asset pipeline. https://github.com/rails/rails/pull/8669/files Previously, I was using Rack::Deflate to compress my javascript and css files. However, I had to install Rack::Default ahead of Action

Re: How do you track your 503s?

2012-11-12 Thread Jonathan Baudanza
I don't know of a way to track 503s, but the "Request Queuing" measurement in New Relic is helpful. This will tell you if all of your available dynos are being consumed. This may not be related to 503s, but it often is. On Mon, Nov 12, 2012 at 12:36 PM, Daniel Doubrovkine wrote: > We occasionally

Re: Limit request (body) size

2012-11-11 Thread Jonathan Baudanza
I don't know of any way to configure the heroku stack to do this. What problem are you trying to solve? If you're worried about slow clients, using a webserver like thin should be sufficient. On Fri, Nov 9, 2012 at 11:54 PM, Fabiano PS wrote: > Hi, > > Is there a way for me to configure Heroku t

Re: NewRelic not working after upgrade to Cedar from Bamboo

2012-03-17 Thread Jonathan Tushman
I figure it out. Change your proc file's web line to as follows: web: bundle exec thin start -R config.ru -e $RACK_ENV -p $PORT On Sat, Mar 17, 2012 at 9:49 AM, Joe Dzikiewicz wrote: > I've had a similar issue. I'm running an app on Cedar. For me, when > I have the NewRelic gem installed, no

Re: NewRelic not working after upgrade to Cedar from Bamboo

2012-03-16 Thread jonathan
Hi, I am having the same issue. Did you have any luck? Note I am running Thin webserver -- jonathan On Wednesday, December 28, 2011 9:59:43 PM UTC-5, William Flanagan wrote: > > Hi all, > > Looking for some advice, as I'm not getting much help between NewRelic and &

Re: @Heroku: How about some help here?

2012-01-03 Thread Jonathan Owens
https://support.heroku.com is up, maybe you should try there. -- 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/-/HwK1c85EAT0J. To post to this group, send email to heroku@

Re: Background job guidance

2011-12-08 Thread Jonathan Owens
It's because the shutdown semantics in the default build of Resque don't work well in Heroku. This has been a big hassle for us as we process millions of jobs a day and far too many fail when workers get restarted. For small-to-medium projects, I like girl_friday instead, but it has very diffe

Re: Has anyone restored from a RedisToGo backup?

2011-12-02 Thread Jonathan Owens
If you use the service from their site directly, rather than as an add-on, you can use their interface to restore. No easy way to switch over from the add-on without a lot of manual data transfer though. -- You received this message because you are subscribed to the Google Groups "Heroku" gr

Re: database and aws

2011-11-04 Thread Jonathan
I did something like this, running principal component analysis and a set of ~25 million vector distances on a 7000x2000 table. For performance - and access to CLAPACK - I wrote a C program to do this. I just had to run the job weekly, so I downloaded the necessary tables (heroku db:pull), ra

Re: NoMethodError for Class:Class

2011-10-17 Thread Jonathan Owens
We get this happening in Resque sometimes and restarting the worker seems to clear it up. Still annoying though. Have you ever gotten this to run successfully or does it fail immediately? -- You received this message because you are subscribed to the Google Groups "Heroku" group. To view this

Re: NoMemoryError: failed to allocate memory

2011-10-15 Thread Jonathan Owens
NewRelic can monitor average dyno memory usage now, but that'll probably just tell you what you already know - you're using too much. It will tell you how close you are to the ceiling though. Sadly there is no API for it. How big are these Ad objects you're working with? -- You received this

Re: how to implement a ip statistics or ip counter on Heroku

2011-10-15 Thread Jonathan Owens
NewRelic can do some of this with End User Monitoring. Google Analytics is a great solution for public sites. If you're a login-based application you can also hook up the advanced logging addon and collect logs via syslog at an ec2 server you create, then run awstats or something like it against

Re: Error 500 but no log entries

2011-10-15 Thread Jonathan Owens
500s can come about due to timeouts or failure to start, in which case you would have only router logs. Are you filtering your log output at all? Make sure you do a simple logs --tail to see what's going on. -- You received this message because you are subscribed to the Google Groups "Heroku"

Re: Heroku on Java + Caching

2011-10-15 Thread Jonathan Owens
You'll want to use memcached and something like https://github.com/raykrueger/hibernate-memcached. -- 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/-/QVBl0aFE3s8J. To pos

Re: Way to get a listing of all packages installed in the Bamboo environment?

2011-09-30 Thread Jonathan Owens
You can't install more, but there is a TON of stuff on there. Get on the console and run: `ls -l /usr/bin/` and `ls -l /usr/local/bin` to see the installed executables. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To view this discussion on the

Heroku + ubuntu

2011-09-29 Thread Jonathan Scher
:in `gem' from /usr/local/bin/heroku:18 then I tried a lot of complicated command line involving rvm and libreadline. I don't know anything about ruby, and everything I tried failed sooner or later. Is there a simple way to get heroku work on Ubuntu ? thx, Jonathan -- You received t

NoMemoryError: failed to allocate memory

2011-09-29 Thread jonathan
. Any help will be greatly appreciated! -- jonathan Stack Trace 1 = .bundle/gems/ruby/1.9.1/gems/dalli-1.1.2/lib/dalli/server.rb:262:in `dump' .bundle/gems/ruby/1.9.1/gems/dalli-1.1.2/lib/dalli/server.rb:262:in `serialize' .bundle/gems/ruby/1.9.1/gems/dalli-1.1.2/lib/dalli

Re: push without restart

2011-08-30 Thread Jonathan Owens
That only half solves it by forcing downtime you'd be taking anyway because your app is likely to crash if started before the migrations run, as you are forced to do. Having to take downtime just to add a field is pretty lame. We're looking at running our migrations from an EC2 server since we u

rack-asset-compiler gem

2011-04-29 Thread jonathan
Hello, I want to share I gem I've been working on that I've found to be useful on Heroku: https://github.com/jbaudanza/rack-asset-compiler I use this when I want to compile some static asset (such as CoffeeScript or Sass) and put the result into Varnish. It doesn't require any filesystem writes.

Re: Smaller fonts in production?

2011-01-06 Thread Jonathan
> My fonts appear 25% smaller in production on Heroku vs in development Heroku compresses data for improved performance. :-) -- 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 unsubscrib

Re: No joy with Rails 3: no such file to load -- dispatcher (LoadError)

2010-12-20 Thread Jonathan
I had to add config.ru to the repository. Rails 3 has some new components which must be included in your git push. One way to figure out what's missing is to compare your app with a new, empty Rails 3 app. "git ls-files" lists the files in your git repository. A commit with nothing changed prod

No joy with Rails 3: no such file to load -- dispatcher (LoadError)

2010-12-15 Thread Jonathan
I've been trying to move an app from Rails 2.3.8 to 3.0.3. The 2.3.8 version runs fine on Heroku. Modified for Rails 3.0.3, it runs on my Windows/MySQL development machine. But I haven't been able to get it to run at all on Heroku. "bundle install" runs clean, and "git push" runs clean. All I

Re: ... `gem_original_require': no such file to load -- /disk1/home/slugs/.../mnt/config/application (LoadError)

2010-12-15 Thread Jonathan
Thanks very much. This was the clue I needed... "git add config/ application.rb" and commit fixed this problem. On Dec 14, 9:17 am, Pius Uzamere wrote: > Are you sure you've committed all of your files to the repo?  If you just > upgraded to Rails 3, it's possible you added an application.rb

Re: ... `gem_original_require': no such file to load -- /disk1/home/slugs/.../mnt/config/application (LoadError)

2010-12-14 Thread Jonathan
Another one... I can't find dispatcher.rb or dispatcher anywhere in my directory tree, and there's no "dispatch" in any files except some Javascript functions. Any suggestions? Thank you very much! >heroku logs --app myapp ==> production.log <== ==> dyno-3674715.log <== /disk1/home/slugs/.../m

Re: ... `gem_original_require': no such file to load -- /disk1/home/slugs/.../mnt/config/application (LoadError)

2010-12-14 Thread Jonathan
Thanks! That did it! -- 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

... `gem_original_require': no such file to load -- /disk1/home/slugs/.../mnt/config/application (LoadError)

2010-12-14 Thread Jonathan
I'm moving an old and very complicated Rails 2 application to Rails 3 on Heroku... After hundreds of code changes it mostly runs OK with Rails 3.0.3 locally (on Windows). But uploading it to Heroku just produces "App crashed". The Heroku console error message complains that there's no ".../mnt/c

Re: db:push Errors?

2010-08-24 Thread Jonathan
Heroku uses Postgres, and datetime isn't a native type. Try changing the column type to 'timestamp' or 'date' or 'time'. Also, I had lots of problems until I made all my column and table names lowercase, and changed all my application code to respect the new names. Postgres is case-sensitive, unl

Re: Heroku console crashing

2010-08-02 Thread Jonathan
Running database transactions through this remote console setup is iffy... It might work better to do a db:pull (ideally of just the tables you want to change), do the database maintenance locally, and then push the updated tables. You can put the site into maintenance mode while you do this, if

Does Websolr work for you?

2010-06-21 Thread Jonathan
I got solr running with my RoR app using my own solr server... Next I tried moving the system to Heroku. I thought it would be trivial - and the move indeed was - but it doesn't work: I don't get any result records. In mymodel.rb I have acts_as_solr :fields => [:name1, :desc1, :name2, :nam

Re: Suppressing confirmation messages with heroku db:pull & heroku db:push

2010-06-14 Thread Jonathan
Thanks very much... With that hint I was eventually able to get it working. I was confused by the asterisks and the apparent typographical error in "mysq:", but I eventually worked it out. For future seekers, this worked from a Windows batch file: call heroku db:pull mysql://myuser:mypassw...@l

Re: Suppressing confirmation messages with heroku db:pull & heroku db:push

2010-06-08 Thread Jonathan
I get this: 8:45:33 C:\hf1> heroku db:pull --force Loaded Taps v0.3.6 Warning: Data in the database '--force' will be overwritten and will not be recoverable. Are you sure you wish to continue? (y/n)? n If I put the --force first, I get 'Unknown command.' Any suggestions? Thanks. -- You rec

Re: Suppressing confirmation messages with heroku db:pull & heroku db:push

2010-06-07 Thread Jonathan
Thank you thank you! -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group a

Re: Suppressing confirmation messages with heroku db:pull & heroku db:push

2010-06-07 Thread Jonathan
OK, I tried a command line switch "-y" and redirecting stdin with "< y.dat" where y.dat contains 'y' - neither works. -- 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 thi

Re: Suppressing confirmation messages with heroku db:pull & heroku db:push

2010-06-07 Thread Jonathan
I think I have exactly the same question... I want to run call heroku db:pull and call heroku db:push from a Windows [sorry] batch file. Unfortunately, the heroku procedures block these actions with an interactive prompt, "Are you sure you wish to continue? (y/n)?" which I can't readily s

Re: MySQL --> Postgres LIKE find error

2010-05-26 Thread Jonathan Dance
> > Now I will proceed with the quick and dirty CAST(id AS VARCHAR). > There's nothing wrong with doing the cast - I wouldn't consider it "quick and dirty." > Jonathan: I read around implicit casting was default in pg version < 8.3. > I was mostly being

Re: Ensuring ssl?

2010-05-26 Thread Jonathan Dance
roku? > What is the workaround for this problem? > > On May 26, 4:05 am, Jonathan Dance wrote: > > Check outhttp://github.com/rails/ssl_requirement > > > > > > > > On Sat, May 22, 2010 at 4:02 AM, misza222 wrote: > > > Hi guys, > > > > >

Re: Rails 2.3.6

2010-05-25 Thread Jonathan Dance
My recommendation: switch to bamboo-ree-1.8.7 and specify all your gems in your .gems file, including rails (and pg), regardless of which version of Rails you're using. This should solve the Rails dependency issues since bamboo doesn't rely on installed gems. While installed gems seemed convenient,

Re: MySQL --> Postgres LIKE find error

2010-05-25 Thread Jonathan Dance
> > it's possible to enable implicit casting even in heroku's postgres? I don't believe implicit casting is possible in any version of Postgres - Postgres doesn't try to act like MySQL, it tries to be ANSI SQL compliant (it's like Internet Explorer versus Firefox). -- You received this message

Re: Ensuring ssl?

2010-05-25 Thread Jonathan Dance
Check out http://github.com/rails/ssl_requirement On Sat, May 22, 2010 at 4:02 AM, misza222 wrote: > Hi guys, > > I want to ensure that my users connect via https. Unfortunately > request.scheme always returns http, even if connecting with https. Is > this behaviour common for all SSL addons, or

Re: MySQL --> Postgres LIKE find error

2010-05-24 Thread Jonathan Dance
In Postgres, you can only do string searches on string columns. Your options are thusly: 1. Stop doing this. Do you really want to be searching an integer like a string? 2. Convert ID to a string column. You shouldn't do this either, unless "id" was just an example. 3. Tell Postgres to cast it to

Re: hosting app on root domain?

2010-05-19 Thread Jonathan Dance
You can add MX records to the Zerigo DNS or, of course, your own DNS host. I don't believe these disturb the Heroku-Zerigo integration if you're using that. I usually recommend people use Google Apps ( www.google.com/a/ ) for their domains - its free and usually meets people's needs. --wuputah O

Re: Monitoring Memcached

2010-05-12 Thread Jonathan Dance
I haven't used memcached on Heroku (or in a while), but vanilla memcached has a "stats" query you can run, and I think most memcache clients support this. Not sure if it would provide what you're looking for, and obviously any monitoring you do you would have to do yourself. There's some docs for i

Re: development works fine but production on heroku complain about caling count on []

2010-05-12 Thread Jonathan Dance
I'd recommend using Array#size, not Array#count. Only use #count when your intent is to invoke a COUNT() query in SQL. I try to use #size for arrays and reserve #length for strings. If your intent was to invoke a COUNT() query, you'll want to use named_scopes all the way through, as such: def che

Re: sharing app on multiple machines

2010-05-12 Thread Jonathan Dance
You can use other branches on Heroku for development - Heroku only deploys the master branch. A very brief run-down of the commands you'll need are below, but are by no means exhaustive. As you get more familiar with git and branches, you'll find these to be second nature. That said, it's very comm

Re: How does Heroku support custom rails environments (config/environments/...)

2010-05-12 Thread Jonathan Dance
It works just fine - I use staging and production on Heroku (one Heroku app for each), and development locally. I use the herogit plugin to manage the different apps/repositories. I'm not sure if you were implying as much, but I wouldn't recommend running a Heroku app in development - reserve that

Re: Missing table error with db:push

2010-04-07 Thread Jonathan
I had the same problem... I found error messages inside db/schema.rb which I had generated with rake db:schema:dump. The problem was that I used a non-standard data type - BIT(1). I altered the table to change my BIT(1) columns to TINYINT(1) and everything went fine. Maybe this will be somehow

Re: "Permission denied (publickey)." on "git clone -o garden g...@herokugarden.com:my_app_name.git"

2009-08-01 Thread Jonathan Tran
I had this same error message using a different command. I discovered that if you install the heroku gem, you can run "heroku help" and that gives some clues. I then did "heroku keys:add" and everything started working. On Jul 11, 11:03 am, Al Chou wrote: > Please forgive the newbie question,

Re: "Permission denied (publickey)." on "git clone -o garden g...@herokugarden.com:my_app_name.git"

2009-08-01 Thread Jonathan Tran
I got this same error trying to migrate from the garden to heroku.com following instructions here: http://herokugarden.com/transition/move Using the heroku 1.0 gem in my project dir that was cloned from herokugarden... $ heroku create Created http://radiant-frost-42.heroku.com/ | g...@heroku.com

Re: specifying a proxy server

2009-05-25 Thread Jonathan Ness
Git remote heroku added $ git push heroku master ssh: Could not resolve hostname heroku.com: nodename nor servname provided, or not known fatal: The remote end hung up unexpectedly Meh.. On May 25, 6:44 pm, Jonathan Ness wrote: > Heroku looks cool.  I'd like to get started testing it

specifying a proxy server

2009-05-25 Thread Jonathan Ness
ework/Versions/1.8/usr/lib/ruby/ 1.8/net/http.rb:560:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError) ... Thanks for the help. Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google