Let user download a file from tmp folder

2010-12-13 Thread Petros Amiridis
The documentation says you can temporarily save a file in tmp. Is it possible to let the end user of the app download that file? Thanks Petros -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to

Re: Let user download a file from tmp folder

2010-12-13 Thread Jimmy Thrasher
Most likely not, unless your app has only one dyno, and even then it's not 100% guaranteed. That said.. I do this in one of my apps, where the tmp fs is used to store compiled/cached versions of files. In that case, each dyno would have a copy of the file. That case has worked great for me so

Re: Let user download a file from tmp folder

2010-12-13 Thread Petros Amiridis
Thanks for the feedback. I want to save a yml file generated by the tolk gem. It's only for development purposes, not for production. I mean, the file is going to be downloaded by me, not by the users. Do you think there is a better way to do it? Petros -- You received this message because you

Re: Let user download a file from tmp folder

2010-12-13 Thread Jimmy Thrasher
On Mon, Dec 13, 2010 at 7:03 AM, Petros Amiridis pet...@amiridis.netwrote: I want to save a yml file generated by the tolk gem. It's only for development purposes, not for production. I mean, the file is going to be downloaded by me, not by the users. Do you think there is a better way to do

Re: Let user download a file from tmp folder

2010-12-13 Thread Petros Amiridis
Thanks for all the suggestions!! I save the file to tmp and then upload it to a Rackspace CloudFiles container. So far it works fine. On Dec 13, 3:21 pm, Jimmy Thrasher ji...@jimmythrasher.com wrote: On Mon, Dec 13, 2010 at 7:03 AM, Petros Amiridis pet...@amiridis.netwrote: I want to save a

run Thor tasks instead of Rake on heroku

2010-12-13 Thread JDeville
Can I run thor tasks, instead of rake ones w/in heroku? -- 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.

Re: run Thor tasks instead of Rake on heroku

2010-12-13 Thread Jimmy Thrasher
You could: - create a Rake task to wrap them - write a wrapper script to call 'heroku console command which is like script/runner Just some ideas.. I've never used Thor before. Jimmy On Mon, Dec 13, 2010 at 11:04 AM, JDeville jeffdevi...@gmail.com wrote: Can I run thor tasks, instead of rake

1.9.2 Stack

2010-12-13 Thread Scott LaBounty
All, I was getting the following error: /disk1/home/slugs/377655_fdff8e6_b844-847cc755-b706-4bc4-bc3b-9927cb45f112/mnt/model/init.rb:10: undefined method `require_relative' for main:Object (NoMethodError) from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in

Re: Newbie question: text/html with SendGrid ActionMailer

2010-12-13 Thread Gabriel
That all looks like it should work. If you're checking the mail in Gmail it won't render as html because you have an html and body tag included in the email. This is true for other web email clients as well since if you think about it, if you're viewing the email on the web the page will already

Re: logs:cron shows no output

2010-12-13 Thread Zach Bailey
Any updates on this? I'm now having an error in one of my cron tasks and the inability to view the logs as a first line of debugging is causing me a major headache. It's now been two weeks that this has been broken. What gives? -Zach On Friday, December 10, 2010 at 1:14 PM, Zach Bailey

Re: 1.9.2 Stack

2010-12-13 Thread Scott LaBounty
OK, when I changed something and did a new push, I get ... - Installing gem ruby-pg from http://rubygems.org Building native extensions. This could take a while... ERROR: Error installing ruby-pg: ERROR: Failed to build gem native extension.

Re: run Thor tasks instead of Rake on heroku

2010-12-13 Thread Peter van Hardenberg
heroku invokes rake jobs:work -- just make your thor tasks run when invoked like that. -p On Mon, Dec 13, 2010 at 8:17 AM, Jimmy Thrasher ji...@jimmythrasher.comwrote: You could: - create a Rake task to wrap them - write a wrapper script to call 'heroku console command which is like

Re: 1.9.2 Stack

2010-12-13 Thread Scott LaBounty
OK, continuing on here. I just use sqlite locally for development and don't have postgres installed. I get the same error when I try to install it on my machine. Is the ruby-pg gem incompatible with ruby 1.9.2? If so, then how on earth does the 1.9.2 stack work for anything on Heroku? Scott On

Re: 1.9.2 Stack

2010-12-13 Thread Scott LaBounty
Thanks! That cleared up one problem anyway. It looks like I may have other issues, but I'll try to work them out. Scott On Mon, Dec 13, 2010 at 2:00 PM, Robert Eanes rea...@gmail.com wrote: You want the pg gem, not the ruby-pg gem, which looks like it hasn't been updated since 2008. I've used

Re: Error when using memcached uninitialized constant Memcached (NameError)

2010-12-13 Thread Alex Killough
Hi, I'm still having difficulty with memchaced, this time using dalli as my client. This is a rails 3 app. in config/environments/production.rb: # Use a different cache store in production config.cache_store = :dalli_store config.perform_caching = true