Rake v. Delayed Job on heroku

2010-10-24 Thread Daryl
I have a small app which I have been using a Rake task for to execute
a weekly database churn task which then mails out to bunches of users
to update. I'm in the process of rolling this app out to a much wider
audience and assuming that rake running on heroku means that it is
running this on one dyno when the rake task runs and tying up that
process completely (and I'm assuming rake just uses one dyno even if
I'm using, say... 8 in the app.).

I do use this rake to weekly emails technique a lot in apps on normal
machines but just wondering if there is a best practice for handling
this in heroku, particularly where the processing job and email send
out would be quite large.

(I figure the better way to handle this is to rewrite the rake
function so it dumps the processing to a /lib function and then dump
the processing and email to delayed_job in order to make this
inherently more scalable on heroku (and have workers pound it so it
goes quickly without affecting the responsiveness of the application
itself).)

Any help or insight appreciated on what other people are doing with
larger apps.

thanks,
Daryl.

-- 
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: Dalli memcached not hitting the cache

2010-10-24 Thread arailsdemo
I just figured this out today. I wrote it up here (http://
www.arailsdemo.com/posts/17). Basically, you have to configure Dalli
to use the Heroku memcache server. Simply change your config to:

# production.rb
  config.action_controller.perform_caching = true
  config.cache_store = :dalli_store, ENV['MEMCACHE_SERVERS']


(BTW: I was also having problems installing memcached-northscale.  I
think this had to do with using ruby 1.9.2. If you're using RVM just
switch to ruby 1.8.7.)

Good luck.



On Oct 18, 6:40 am, Joost Schuur jsch...@jschuur.com wrote:
 I've been experimenting with memcached and read good things about the
 dalli gem, so I thought I'd try it out on Heroku. I can't seem to get
 it to work and m not getting back any obvious errors either.

 My production.rb defines:

 config.action_controller.perform_caching = true
 config.cache_store = :dalli_store

 ...and in my Gemfile:

 gem 'dalli'

 However, based on the logs, it's not reading from the cache. Upon
 refreshing the page in question twice (to make sure the cache was
 written the first time around), I still get this:

 Exist fragment? views/front_sidebar (506.9ms)
 Write fragment views/front_sidebar (508.3ms)

 Likewise, from the heroku console for the app in question: 
 Rails.cache.write('hello', 'world')
 = false
  Rails.cache.read('hello')

 = nil

 I've restarted the heroku server during my tests too, and have
 confirmed that I have the add-on installed (the app name is
 tvgridthing-stage, if a Heroku rep would like to take a look).

 I don't know what other debug tools there are for dalli. I tried
 checking the stats, but the instructions 
 athttp://docs.heroku.com/memcache#getting-stats-on-usage
 obviously don't apply to dalli, which doesn't seem to have a stats
 command.

 Locally on my Mac, things seem to work just fine, based on the
 presence of 'Read fragment views/front_sidebar (0.0ms)' in the logs.

 I'm running Rails 3.0.1 and dalli 0.10.0 FWIW.

 Then I thought I'd try the standard memcached instead, so I added this
 to my Gemfile

 group :production do
   gem memcache-client
   gem 'memcached-northscale', :require = 'memcached'
 end

 ...and in production.rb:
 config.cache_store = :mem_cache_store, Memcached::Rails.new

 Unfortunately, despite the :production group, when I went to do a
 bundle install locally first, it tries to compile native extensions
 under Mac OS X for memcached-northscale, and I get a compile error
 that's been discussed here too:

 http://osdir.com/ml/ruby-talk/2010-02/msg01693.html

 Should I be able to tell bundle what environment to run under, so that
 it'll ignore that on development and thus bypass any attempt to
 install memcached-norrthscale?

-- 
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: Older versions of Safari and Hostname Based Custom SSL

2010-10-24 Thread Phil Pirozhkov
3.1.1 running on OS X 10.4.11

On Oct 20, 5:43 pm, Chap chapambr...@gmail.com wrote:
 Phil, which version of Safari are you seeing that error in?

 On Oct 16, 2:40 am, Phil Pirozhkov pirjs...@gmail.com wrote:



  Safarican’t open the page.Safarican’t open the page 
  “https://api.heroku.com/login”because it
  couldn’t establish a secure connection to the server “api.heroku.com”.

  non-https works fine

  On Oct 15, 8:30 pm, Chap chapambr...@gmail.com wrote:

   Anyone have problems using the Hostname Based Custom SSL and older
   versions ofSafarithrowing errors such as cannot get a secure
   connection to the server?

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



Asynchronous Solr indexing not working

2010-10-24 Thread Graeme Simpson
Howdy,

I've recently signed up to heroku and I'm having a little trouble with
Solr.

I'm trying to index news articles as I am collecting them, approx 350
per minute. They are checked, processed and then saved. I followed the
instructions on the heroku docs, and I have...

handle_asynchronously :solr_index

...at the bottom of my model, along with a couple of workers running
to handle the indexing along with the import tasks. But it doesn't
seem to be doing any indexing! Looking at the heroku logs, the delayed
job process does seem to be running.

* [Worker(host:railgun64.38351 pid:14550)] acquired lock on
Article#solr_index_without_send_later
* [JOB] host:railgun64.38351 pid:14550 completed after 0.0289

If I leave it running for a while and run a full text search I get no
results. But if I trigger a manual index of the model by running
'Model.index', the search works fine afterwards. At the moment I've
got the index process running every ten minutes, which is probably a
horrible way of doing it.

How do I kick the asynchronous indexing into action?

Many thanks,
Graeme

-- 
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: Older versions of Safari and Hostname Based Custom SSL

2010-10-24 Thread Phil Pirozhkov
Yeah!

Works for me now as well.
Thanks guys!

Phil

On Oct 23, 4:24 am, Kyle Wilkie k...@eventdatasolutions.com wrote:
 Kyle Wilkie k...@... writes:

  Chap chapambr...@... writes:

   Anyone have problems using the Hostname Based Custom SSL and older
   versions of Safari throwing errors such as cannot get a secure
   connection to the server?

  I started having the issue in early October on my workhorse machines
  that are running Safari 1.3.2 and OSX 10.3.9 (they're iBooks, can't go
  any higher OS or Safari revisions and I have 50 of them).  One day they
  worked fine, the next they are unable to make a secure connection.  
  Firefox, Opera both connect securely.  Strangely, I can make an SSL
  connection to Amazon, but not Heroku itself or any of my apps.  I am
  currently both piggyback and hostname ssl option on different sites,
  this behavior is the same.  Found out today that one of my large clients
  is having the same problem with Safari 4.1.2 on OSX 10.4.11.

  Oren at Heroku said nothing had changed there, but something did
  change somewhere.  Any insight into what this is would be great!

 I was able to track down the root problem by getting my cert provider
 (Digicert) to run a diagnostic and sent the results to Heroku.  From
 that, Heroku was able to track down and fix the problem which was that
 default SSL ciphers had changed during server upgrades.  
 Certainly decomplicates my life!

-- 
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: Outbound IP address

2010-10-24 Thread Phil Pirozhkov
Just buy/request a free client certificate for that purposes and do
not rely on IP

Phil


On Oct 23, 12:25 am, Mike Doel m...@mikedoel.com wrote:
 I imagine this is in TFM somewhere, but my google skills are failing me.

 If we have paid for the custom SSL package, will traffic outbound from our 
 app have the IP address assigned to us in that process?

 Alternatively, is there a netmask that can be counted on for outbound traffic?

 Our app needs to access a third party gateway that is using IP address as one 
 of the parameters in controlling access.

 Mike

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



RubyAMF

2010-10-24 Thread paul h
Hi,

I am moving my apps from AptanaCloud to heroku, and so far so good. I
am also switching from Windows to Linux - finally!! :)

The only problem I have come across so far, is connecting to my app
via RubyAMF. I need this because my front end is all Flex.

My question, then, (before I potentially, waste time going round in
circles), is: Are there any issues on heroku that would prevent me
from connecting via RubyAMF?

I am happy to look at solving my problem myself, but I'd rather not
waste time trying if something on heroku prevents me from using the
RubyAMF Plugin. I have searched the group, and the only post I can
find is a couple of years old, so it may not be relevant.

Thanks

Paul

-- 
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: haml on heroku

2010-10-24 Thread Martin
all you need to do is this:

production.rb:
Sass::Plugin.options[:never_update] = true

martin


On Oct 22, 5:48 pm, Josh Coffman joshcoff...@gmail.com wrote:
 I was just finally trying haml and did a quick push up to heroku to make
 sure it worked. I think causing a problem with the read-only file system.
 Can anyone confirm, or know of a way to get haml working on heroku?

 This was the production log from the heroku command line:

 == production.log ==

 Started GET / for 72.208.78.46 at 2010-10-22 15:40:00 -0700

 Errno::EROFS (Read-only file system -
 /disk1/home/slugs/274925_92988c8_75a6-15f7f62e-5365-490a-9a8a-f6b735d4b340/ 
 mnt/public/stylesheets/ie.css
 - Heroku has a read-only filesystem.  
 Seehttp://docs.heroku.com/constraints#read-only-filesystem):

 Thanks,
 Josh

-- 
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: Older versions of Safari and Hostname Based Custom SSL

2010-10-24 Thread Phil Pirozhkov
3.1.2, latest Safari 3, OSX 10.4.11

BR, Phil

On Oct 20, 5:43 pm, Chap chapambr...@gmail.com wrote:
 Phil, which version of Safari are you seeing that error in?

 On Oct 16, 2:40 am, Phil Pirozhkov pirjs...@gmail.com wrote:

  Safarican’t open the page.Safarican’t open the page 
  “https://api.heroku.com/login”because it
  couldn’t establish a secure connection to the server “api.heroku.com”.

  non-https works fine

  On Oct 15, 8:30 pm, Chap chapambr...@gmail.com wrote:

   Anyone have problems using the Hostname Based Custom SSL and older
   versions ofSafarithrowing errors such as cannot get a secure
   connection to the server?

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



Ruby 1.9.2 and Rails 3.0.1 Support

2010-10-24 Thread Bharat
Does anyone know if there are any limitations on deploying apps on
Heroku with MRI 1.9.2 and Rails 3.0.1?
Bharat

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



new addon in alpha: Distributed shelf: you can use File API in read-write mode

2010-10-24 Thread Phil Pirozhkov
Hi

disclaimer: I've posted to Heroku beta users, but only one alpha user
came, so addressing here.
I personally tend to think the addon is very userful.

It allows for the usage of File (Dir/IO/FileUtils) API in read-write
mode.
All data is stored on a remote server.

Basically this will allow for storage of user uploaded files.
Only configured folders are remoted, (e.g. [fileupload, user/
avatars]).

In near future addon will allow to drop-in Redmine and many other
third-party web applications which rely on file storage (Spree e-
commerce, Opal, Refinery CMS, Gullery are my high prio currently).

Come on, write your next Flickr or Youtube already!

Server is written in Erlang, should be fast (as fast as SSL
termination allows).

Quick docs: https://distributedshelf.com/docs.md

Homepage: https://distributedshelf.com
News: http://twitter.com/distributdshelf

To participate in Alpha testing you can contact me directly via
p...@mail.ru or pirjs...@gmail.com

Phil

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



Heroku SQL vs. Amazon RDS?

2010-10-24 Thread Nathan Youngman
I saw a blip on the add-ons page about PostgreSQL 8.4 with PostGIS
support, and became curious as to what's on the roadmap for Heroku SQL
databases?

Lately I've been comparing the PostgreSQL 8.3 option with Amazon RDS
(MySQL):

- PostgreSQL has some nifty features like Arrays, the PostGIS stuff
(but not with Koi), and some recursive stuff (in 8.4):
http://www.davidcramer.net/code/django/6939/scaling-threaded-comments-on-django-at-disqus.html

- Amazon RDS allows remote connections (like with Sequel Pro) where as
Heroku only provides Rails console and TAPS.
- It would be easy to share RDS across multiple apps (on Heroku or
otherwise), where as it isn't clear that this is supported with Koi/
Ronin.
- As you grow, Amazon RDS makes it easy to add read-replicas and other
fancy stuff that Heroku doesn't officially offer

- RDS would take some setup, where as PostgreSQL is automagically
provided by Heroku.
- I'm not sure if there latency is equivalent with RDS. Anyone with
experience?

Then there is the price. Koi is very reasonable $15/month, and
probably would be enough for most anything I would want to do.

But the jump to Ronin is extreme. As another member pointed out, RDS
is ~$80/month for a Small (1 ECU) which sounds equivalent to a Ronin
for $200/month. Add in reserved instances and RDS looks even more
attractive (the annual fee + monthly rate average out to about $50/
month).

Does Heroku have any plans of being competitive with Amazon's
offering? (and I'm not only talking price)

But speaking of price, back in January we heard This is the first in
a series of changes we hope will bring our pricing more inline with
the value our customers get from the platform. And it was good, but
nothing since. Hm.

-- 
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: haml on heroku

2010-10-24 Thread arailsdemo
I'm using Haml/Sass/Compass. For me, I decided the Hassle gem wasn't
worth the hassle.

When you update your Sass files in development, Compass will create
the corresponding CSS files when you visit your site through your
development server. That way you don't need to have Compass trying to
compile things on Heroku. In your production configuration, just set
Compass to not compile. Otherwise, it you'll keep on getting that
Heroku error.

# production.rb
Mysite::Application.configure do
  Sass::Plugin.options[:never_update] = true
  ...
end



On Oct 22, 3:59 pm, Josh Coffman joshcoff...@gmail.com wrote:
 Yes, nice catch on reading that error. I meant to write compass not haml.
 Compass would be my sass compiler, which I assume I'll have to force
 pre-compile before deploying.

 Thanks.

 On Fri, Oct 22, 2010 at 3:52 PM, Wes Gamble we...@att.net wrote:
   That's Sass trying to compile a CSS file.

  You need to pre-process your Sass so that the CSS is emitted before you
  deploy.

  Whether or not you check in that CSS is up to you.

  W

  On 10/22/10 5:48 PM, Josh Coffman wrote:

  I was just finally trying haml and did a quick push up to heroku to make
  sure it worked. I think causing a problem with the read-only file system.
  Can anyone confirm, or know of a way to get haml working on heroku?

   This was the production log from the heroku command line:

   == production.log ==

   Started GET / for 72.208.78.46 at 2010-10-22 15:40:00 -0700

   Errno::EROFS (Read-only file system -
  /disk1/home/slugs/274925_92988c8_75a6-15f7f62e-5365-490a-9a8a-f6b735d4b340/mnt/public/stylesheets/ie.css
  - Heroku has a read-only filesystem.  See
 http://docs.heroku.com/constraints#read-only-filesystem):

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

   --
  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.comheroku%2bunsubscr...@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 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.



heroku_user

2010-10-24 Thread jundai
Hello,

In looking for a dead-simple auth option for my heroku app, I noticed
this page: http://blog.heroku.com/archives/2008/1/14/heroku_user/

I tried accessing heroku, and I wasn't able to get it working.  I
get a:

NameError (undefined local variable or method `heroku_user' for
#FilmViewingsController:0x2b17f842faa0):
  app/controllers/application_controller.rb:6:in `authorized?'
  app/controllers/film_viewings_controller.rb:39:in `edit'


Is heroku_user something that's still available within heroku apps?
Is there anything I have to do to enable it?  Is it called something
else now?  I can't seem to find any indication that it's been removed
as a feature, though I imagine heroku's platform has seen a lot of
change since 2008.

 -Jdbk

-- 
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: Asynchronous Solr indexing not working

2010-10-24 Thread guillaume fradin
I had the exact same issue. so I replaced

handle_asynchronously :solr_index

 with:

after_save :sunspot_commit
def sunspot_commit
send_later :index_and_solr_index
end
def index_and_solr_index
index!
solr_index
end


and I know have what I expect.
not sure why this needs to be done that way and not the doc way, though

2010/10/22 Graeme Simpson gra...@simmo.gs

 Howdy,

 I've recently signed up to heroku and I'm having a little trouble with
 Solr.

 I'm trying to index news articles as I am collecting them, approx 350
 per minute. They are checked, processed and then saved. I followed the
 instructions on the heroku docs, and I have...

 handle_asynchronously :solr_index

 ...at the bottom of my model, along with a couple of workers running
 to handle the indexing along with the import tasks. But it doesn't
 seem to be doing any indexing! Looking at the heroku logs, the delayed
 job process does seem to be running.

 * [Worker(host:railgun64.38351 pid:14550)] acquired lock on
 Article#solr_index_without_send_later
 * [JOB] host:railgun64.38351 pid:14550 completed after 0.0289

 If I leave it running for a while and run a full text search I get no
 results. But if I trigger a manual index of the model by running
 'Model.index', the search works fine afterwards. At the moment I've
 got the index process running every ten minutes, which is probably a
 horrible way of doing it.

 How do I kick the asynchronous indexing into action?

 Many thanks,
 Graeme

 --
 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.comheroku%2bunsubscr...@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 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: Outbound IP address

2010-10-24 Thread Oren Teich
To have outbound traffic come from a single IP you need to setup a 3rd party
proxy, either on your own EC2 instance or using a 3rd party proxy provider.

Oren

On Fri, Oct 22, 2010 at 1:25 PM, Mike Doel m...@mikedoel.com wrote:

 I imagine this is in TFM somewhere, but my google skills are failing me.

 If we have paid for the custom SSL package, will traffic outbound from our
 app have the IP address assigned to us in that process?

 Alternatively, is there a netmask that can be counted on for outbound
 traffic?

 Our app needs to access a third party gateway that is using IP address as
 one of the parameters in controlling access.

 Mike

 --
 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.comheroku%2bunsubscr...@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 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: heroku_user

2010-10-24 Thread Abel Tamayo
It looks like Heroku Users are used to authenticate users who already have
an account with Heroku and are allowed to check out the application's source
(that's the impression I get from skimming through the article).

If you're looking for a commonly used, standard authentication method,
Authlogic and Devise seem to be the most commonly used gems for the task.
You can find tutorials on them both at railscasts.com

On Thu, Oct 21, 2010 at 10:28 AM, jundai bates.kobashig...@gmail.comwrote:

 Hello,

 In looking for a dead-simple auth option for my heroku app, I noticed
 this page: http://blog.heroku.com/archives/2008/1/14/heroku_user/

 I tried accessing heroku, and I wasn't able to get it working.  I
 get a:

 NameError (undefined local variable or method `heroku_user' for
 #FilmViewingsController:0x2b17f842faa0):
  app/controllers/application_controller.rb:6:in `authorized?'
  app/controllers/film_viewings_controller.rb:39:in `edit'


 Is heroku_user something that's still available within heroku apps?
 Is there anything I have to do to enable it?  Is it called something
 else now?  I can't seem to find any indication that it's been removed
 as a feature, though I imagine heroku's platform has seen a lot of
 change since 2008.

  -Jdbk

 --
 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.comheroku%2bunsubscr...@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 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: new addon in alpha: Distributed shelf: you can use File API in read-write mode

2010-10-24 Thread Phil Pirozhkov
Added Rails 3 usage example: 
http://distributedshelfexamplerails.heroku.com/upload
Source code: http://github.com/pirj/distributed-shelf-example-rails

Added Sinatra/Padrino usage example: http://distributedshelfexample.heroku.com/
Source code: http://github.com/pirj/distributed-shelf-example

Phil

-- 
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: heroku_user

2010-10-24 Thread Oren Teich
That article references our old Heroku Garden platform.  The current
platform is based on standards, so your best bet is to use one of the
libraries mentioned like Devise.

Oren

On Sun, Oct 24, 2010 at 1:34 PM, Abel Tamayo abel.tam...@gmail.com wrote:

 It looks like Heroku Users are used to authenticate users who already have
 an account with Heroku and are allowed to check out the application's source
 (that's the impression I get from skimming through the article).

 If you're looking for a commonly used, standard authentication method,
 Authlogic and Devise seem to be the most commonly used gems for the task.
 You can find tutorials on them both at railscasts.com


 On Thu, Oct 21, 2010 at 10:28 AM, jundai bates.kobashig...@gmail.comwrote:

 Hello,

 In looking for a dead-simple auth option for my heroku app, I noticed
 this page: http://blog.heroku.com/archives/2008/1/14/heroku_user/

 I tried accessing heroku, and I wasn't able to get it working.  I
 get a:

 NameError (undefined local variable or method `heroku_user' for
 #FilmViewingsController:0x2b17f842faa0):
  app/controllers/application_controller.rb:6:in `authorized?'
  app/controllers/film_viewings_controller.rb:39:in `edit'


 Is heroku_user something that's still available within heroku apps?
 Is there anything I have to do to enable it?  Is it called something
 else now?  I can't seem to find any indication that it's been removed
 as a feature, though I imagine heroku's platform has seen a lot of
 change since 2008.

  -Jdbk

 --
 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.comheroku%2bunsubscr...@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 her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@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 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: Asynchronous Solr indexing not working

2010-10-24 Thread Nick Zadrozny
Hi Graeme and Guillame,

What versions of Rails and Sunspot are you two using?

-- 
Nick Zadrozny

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