Re: request.remote_ip

2011-03-15 Thread marcel
I ran into this same problem playing with Rack::Bug. I couldn't access my site and determined it was because my client IP was not in the whitelist I'd configured. I read the Rails docs and even the source and it seemed like request.remote_ip should just work... but it clearly did not. I logged

Re: blocked in china

2011-03-11 Thread marcel
I wonder if the GFW blocks all Amazon EC2 IPs? It would make sense, to reduce their workload playing whack-a-mole. Everyone I know in China (3 people) use proxies to jump over the firewall, and they make it sound like its a routine matter. On Mar 10, 12:41 pm, mattsly matt...@gmail.com wrote:

can't push today, breaking on Configuring New Relic plugin step

2010-11-10 Thread marcel
I tried to push about 10 times over a period of about 2 hours this morning. It keeps failing on the new relic step. Is this a temporary heroku issue, or do I need to resolve some new relic issue? - Heroku receiving push - Rails app detected - Gemfile detected, running Bundler version

Re: can't push today, breaking on Configuring New Relic plugin step

2010-11-10 Thread marcel
I talked with Heroku staff, and its a known bug with the newrelic plugin. They are working on a fix, but the immediate solution is to just remove the addon. On Nov 10, 11:46 am, marcel mpoi...@gmail.com wrote: I tried to push about 10 times over a period of about 2 hours this morning. It keeps

automatic plugin installation seems counter to the bundler philosophy

2010-11-10 Thread marcel
I've been bitten twice now by addons whose automatic plugin installation broke my app. The ease of installation is compelling, but it seems more appropriate to just install a gem via bundler. If special Heroku magic is needed, then provide a special gem, such as heroku_newrelic or

Re: Bundler upgrade to 1.0.3 to support BUNDLE_WITHOUT?

2010-10-29 Thread marcel
My slug used to be about 85 MB (!), but around the time that Heroku started recognizing BUNDLE_WITHOUT, my slug size dropped to 35 MB. I also noticed that Heroku's bundler reinstalls all the gems on EVERY deploy, whereas is used to only run if my gemlock changed. Thats ~5mins instead of

Re: Bundler upgrade to 1.0.3 to support BUNDLE_WITHOUT?

2010-10-28 Thread marcel
BUNDLE_WITHOUT is currently working for me. It magically started being recognized a few weeks ago. From my heroku config output: BUNDLE_WITHOUT= test development And when I deploy: - Heroku receiving push - Rails app detected - Gemfile detected, running Bundler

Re: Does Heroku support sourcing a gem from within the app using the :path option in Bundler?

2010-10-15 Thread marcel
I think you need to point :path one folder deeper, like: gem 'devise', :path = 'vendor/gems/devise-1.0.8' -- 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,

Re: Compiled Slug size not changing after removing large gems from Gemfile

2010-10-12 Thread marcel
I discovered something similar about a month ago. I dug around the directory structure using heroku console, and noticed that the deleted gems still existed in the slug's .bundle folder. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this

Re: Long running rake tasks freeze or crash

2010-10-07 Thread marcel
I believe I have read several times that cron and rake both time out eventually, and that very long running stuff should always get processed by delayed job workers. This makes sense because you're paying directly for your worker, as opposed to getting a free lunch from Heroku for that 20 hour

Re: Getting a visitors ip address in your web app

2010-10-05 Thread marcel
Or just request.env.ip http://rack.rubyforge.org/doc/classes/Rack/Request.src/M000288.html On Oct 2, 11:55 am, Peter van Hardenberg p...@heroku.com wrote: I use this in my code -- I run my apps at foo.heroku.com with whatever the ghetto SSL option is, so YMMV. def remote_ip       if

Re: upload size limit?

2010-09-24 Thread marcel
I'm using PaperClip to crop and create thumbnails, with everything stored in S3. I'm just curious if there's any kind of hard limit on upload size to be aware of. A Flash-based solution would be superior, but I'm sure there's some pain getting everything working correctly and its not justified at

upload size limit?

2010-09-23 Thread marcel
I'm curious if there is any kind of upload size (or time) limit? I saw some old discussions about a 10MB limit, but those are so old I don't trust them. I only found one place in the Heroku docs that discourages uploading files larger than 4 MB, but its not clear what the real limit is.

Re: Custom error pages, we *really* need them

2010-09-17 Thread marcel
+1 for iframe/javascript solution I feel like the same system could be used to improve the custom maintenance mode page as well. I tested it out on my staging app the other day, and it took 15 minutes before the ugly default page was replaced by my custom page. Thats just too long! My biggest

Re: Bundler 1.0.0 Rollout

2010-09-16 Thread marcel
No. Fortunately this isn't an absolute requirement for me (yet), so I decided to put it off in hopes that Heroku will update their bundler system to respect the :production group. On Sep 15, 10:02 am, Steve Odom steve.o...@gmail.com wrote: Marcel, Did you ever figure out a hack to haver

Re: Best way to handle sitemaps

2010-09-13 Thread marcel
Varnish itself can handle gigabytes of cache, because it uses the hard disk via virtual memory. But the varnish layer is shared by all heroku apps, and who knows what exactly Heroku is doing to tweak how it works. -- You received this message because you are subscribed to the Google Groups

Re: Bundler 1.0.0 Rollout

2010-09-10 Thread marcel
I tried Pasha's suggestion, but it looks like the environment variable is ignored by bundler in heroku. I added autotest-fsevent to the :development group in my gemfile, and added BUNDLE_WITHOUT=test:development to the heroku app config. But when I pushed, heroku still tried to build the native

Re: Best way to handle sitemaps

2010-09-10 Thread marcel
I think the easiest and cheapest solution is to utilize Heroku's caching layer, Varnish. http://docs.heroku.com/http-caching If you set the max-timeout to 1 week then your app only gets hit once a week... assuming the sitemaps get hit often enough to keep them in the cache. -- You received

Re: Heroku push rejected, your slug is currently being compiled. Please try again later.

2010-09-09 Thread marcel
While your slug is compiling you can't push a new update. If you disconnect after you push the code, but during slug compilation, the slug will still get compiled and your app updated. It should only take a few minutes. I've had it take several hours on a few occasions, as discussed in this other

Re: How to deploy app with sensitive config information?

2010-09-03 Thread marcel
heroku config truncates the values by default. If you want to quickly grab your S3 key or mongohq_url, use the secret --long parameter. It should really be in the documentation. heroku config --long -- You received this message because you are subscribed to the Google Groups Heroku group. To

Re: free vs. paid heroku app performance

2010-08-31 Thread marcel
My slug is pretty big, about 50 MB, mostly due to gem dependencies. I figure I could shave about 5 MB if I spent an entire day shaving off unused bits. But I doubt this would make any perceivable difference. I don't really mind the sluggish spin up time. What I do mind is having slug compilation

Re: Best way to handle sitemaps

2010-08-31 Thread marcel
Can you store the results in memcache or mongo? How much space do all the sitemap files consume? -- 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

Re: Backup for MongoHQ Data

2010-08-27 Thread marcel
There is a warning on the mongodb site about using mongoexport/ mongoimport: Neither JSON nor TSV/CSV can represent all data types. Please be careful not to lose or change data (types) when using this. For full fidelity please use mongodump.

Re: free vs. paid heroku app performance

2010-08-27 Thread marcel
Thanks for the helpful tips about keeping the app responsive. Has anyone else encountered ridiculously long slug compilation (several hours), or is it just me? Its happened on at least 4 days in the past month. I checked the heroku status page each time, but only one of the times coincided with

Re: Use Heroku gem from within application?

2010-08-13 Thread marcel
I ran into a similar need yesterday. I wanted to have a Heroku cron task create a bundle of my app, to get a daily DB backup. Here is my task: task :cron = :environment do require 'heroku' heroku_username = ENV['HEROKU_USERNAME'] heroku_password = ENV['HEROKU_PASSWORD'] if

unwarranted Read-only file system errors

2010-08-10 Thread marcel
Hoptoad reported about 20 Read-only file system errors for my app last night. It looks like its just the Rails logger trying to write the standard logging info that triggered the crash. I guess its a just a transient Heroku bug?

Re: custom post_commit hook?

2010-08-09 Thread marcel
Resque machines on EC2. Works like a charm, just requires your team to use cap deploy instead of git push. On Wed, Aug 4, 2010 at 3:18 PM, marcel mpoi...@gmail.com wrote: I'd like to run a few things after I deploy, like clear out memcache and send a deploy message to NewRelic. Is there a way

custom post_commit hook?

2010-08-05 Thread marcel
I'd like to run a few things after I deploy, like clear out memcache and send a deploy message to NewRelic. Is there a way to have heroku call a rake task or something after I push? Sure I can call 'heroku rake XXX' after I deploy, but I'd rather not have the possibility of anyone on the team

Re: NOTICE: Memcached exiting beta

2010-04-20 Thread Marcel Overdijk
on the memcache (presumably using the Heroku control panel?) Cheers, Marcel On Apr 20, 2:48 am, Oren Teich o...@heroku.com wrote: Hi all, We're excited to announce that we'll be taking memcached out of beta this week.  We will have a few plans to meet different needs: 5MB - Free 100MB - $20/month

Re: sass_on_heroku / hassle

2010-03-29 Thread Marcel Overdijk
Thanks morgoth, Will try this later. I guess more people are interested in using haml/sass/compass within their rails app on heroku. Perhaps a FAQ can be written on heroku.com how to implement it. I googled and found this http://blog.heroku.com/archives/2009/8/18/heroku_sass/ but I guess this

Re: sass_on_heroku / hassle

2010-03-27 Thread Marcel Overdijk
. Cheers, Marcel On Mar 26, 6:40 pm, Oren Teich o...@heroku.com wrote: hassle stores the stylesheets in varnish, cached for all dynos. Oren On Fri, Mar 26, 2010 at 6:30 AM, Marcel Overdijk marceloverd...@gmail.comwrote: As I understand sass_on_heroku or better hassle can be used to compile

Re: sass_on_heroku / hassle

2010-03-27 Thread Marcel Overdijk
for all dynos. Oren On Fri, Mar 26, 2010 at 6:30 AM, Marcel Overdijk marceloverd...@gmail.comwrote: 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

Re: sass_on_heroku / hassle

2010-03-27 Thread Marcel Overdijk
appreciated. Cheers, Marcel On Mar 26, 6:40 pm, Oren Teich o...@heroku.com wrote: hassle stores the stylesheets in varnish, cached for all dynos. Oren On Fri, Mar 26, 2010 at 6:30 AM, Marcel Overdijk marceloverd...@gmail.comwrote: As I understand sass_on_heroku or better hassle

Re: sass_on_heroku / hassle

2010-03-27 Thread Marcel Overdijk
I guess I confused myself ;-) For now I also decided to just use compass/sass without hassle and commit the compiled css files to git. On Mar 27, 5:34 pm, Oren Teich o...@heroku.com wrote: Hi Marcel, What's the confusion?  As the github page says, sass_on_heroku is now hassle.  You should

sass_on_heroku / hassle

2010-03-26 Thread Marcel Overdijk
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

Re: European data center?

2010-03-25 Thread Marcel Overdijk
+1 On Mar 23, 6:40 pm, Joost Saanen stalk...@gmail.com wrote: I am Curious too. regards Joost On 22 March 2010 19:30, Josh Huckabee joshhucka...@gmail.com wrote: Bump. Any official word on this?  This would definitely be nice to have. On Mar 19, 8:14 pm, Arto Bendiken

newrelic - apdex score T

2010-01-05 Thread Marcel Goerner
Is it possible to change the apdex score for my heroku app? I found only this, http://support.newrelic.com/faqs/general/how-do-i-set-apdex-t . -- 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.