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
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
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
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
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
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
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
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
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
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
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
&
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@
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
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
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
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
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
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
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"
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
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
: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
.
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
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
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.
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
> 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
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,
> >
> > >
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,
>
> 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
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
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
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
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
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
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
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
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
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,
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
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
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
56 matches
Mail list logo