Can Heroku receive mail?

2009-11-02 Thread Shpigford

The app I'd like to run on Heroku will need to eventually be able to
receive email.

As an example, a user would send an email to a unique email address
and then our app would parse the email and do various things with it.

Is that possible with Heroku?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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: Installing Radiant extension

2009-11-02 Thread Hunter Nield - syndeolabs/g2ix

I'm actually getting the exact same problem.

Radiant extensions installed locally work. They are installed via a
git clone not a submodule.

When it is deployed to heroku, all extensions directories are empty.

Anyone know what's going on?

On Oct 6, 8:02 am, lgs luca.so...@gmail.com wrote:
 Something similar happen to me too ... but I'm not running a submodule
 extension.
 Instead I got share-layouts-extension like that:

 git clonehttp://github.com/radiant/radiant-share-layouts-extension.git
 vendor/extensions/share_layouts

 locally runs ok, but after deploy, when I link the extension
 controller heroku logs say :
 NoMethodError (undefined method `radiant_layout' for
 BooklistController:Class):
   vendor/extensions/booklist/app/controllers/booklist_controller.rb:4
   /home/heroku_rack/lib/static_assets.rb:9:in `call'
   /home/heroku_rack/lib/last_access.rb:25:in `call'
   /home/heroku_rack/lib/date_header.rb:14:in `call'
   thin (1.0.1) lib/thin/connection.rb:80:in `pre_process'
   thin (1.0.1) lib/thin/connection.rb:78:in `catch'
   thin (1.0.1) lib/thin/connection.rb:78:in `pre_process'
   thin (1.0.1) lib/thin/connection.rb:57:in `process'
   thin (1.0.1) lib/thin/connection.rb:42:in `receive_data'
   eventmachine (0.12.6) lib/eventmachine.rb:240:in `run_machine'
   eventmachine (0.12.6) lib/eventmachine.rb:240:in `run'
   thin (1.0.1) lib/thin/backends/base.rb:57:in `start'
   thin (1.0.1) lib/thin/server.rb:150:in `start'
   thin (1.0.1) lib/thin/controllers/controller.rb:80:in `start'
   thin (1.0.1) lib/thin/runner.rb:173:in `send'
   thin (1.0.1) lib/thin/runner.rb:173:in `run_command'
   thin (1.0.1) lib/thin/runner.rb:139:in `run!'
   thin (1.0.1) bin/thin:6
   /usr/local/bin/thin:20:in `load'
   /usr/local/bin/thin:20

 Rendering /disk1/home/slugs/61413_4306f0f_4f3b/mnt/public/500.html
 (500 Internal Server Error)

 == dyno-456790.log ==
 Could not load extension from file: share_layouts_extension.
 #NameError: uninitialized constant ShareLayoutsExtension

 Please consider   vendor/extensions/booklist/app/controllers/
 booklist_controller.rb:4 is actually like that:
    radiant_layout 'Normal'

 and config.extensions is like the following:
   config.extensions = [:share_layouts, :all]

 Any suggestion will be greatly appreciated
 bye luca

 On Sep 26, 4:55 pm, Thomas Balthazar gro...@suitmymind.com wrote:



  Hello Keenan,

  Thanks a lot for your answer.
  Stupid me.

  The problem was that theextensionwas installed as a submodule.
  I thought that I had verified that, but I was wrong.

  Sorry for this mistake, and thanks for your help.
  Everything is working fine.

  Thomas.

  And I don't see any error locally. Everything works just fine

  On Sep 25, 3:46 pm, Keenan Brock kee...@thebrocks.net wrote:

   Hi Thomas,

   for testing, sometimes I:
   chmod -R 555 rails_app
   chmod 755 rails_app/tmp

   and I run from there

   That usually allows me to recreate the problem locally and I go from  
   there.

   Keep the questions coming,
   --K

   On Sep 25, 2009, at 6:02 AM, Thomas Balthazar wrote:

Hello John,

Thanks a lot for your answer.
That's exactly what I did, but theextensionisn't activated on
Heroku... :-/

Any idea?
Best,
Thomas.

On Sep 25, 5:24 am, john johnm...@gmail.com wrote:
the update command for most extensions modifies the file system (adds
files to public/javascripts and/or public/stylesheets) so i think
you're hitting the read-only filesystem restriction.

if it's working locally you can commit all of the changes the
   extensionmade and then run:

git push heroku master
heroku db:push

which will copy all the new files (the ones from the update command)
and copy up your database (from the migrate command).

On Sep 23, 3:52 pm, Thomas Balthazar gro...@suitmymind.com wrote:

Hello,

I've successfully installedRadiant0.8.1 on Heroku.
Now, I'm trying to install anextension(http://github.com/tricycle/
   radiant-page-preview-extension) but I cannot manage to do it. It  
works
perfectly locally, just by running 'rake
   radiant:extensions:page_preview:update', but when I try to run this
command on Heroku 'heroku rake  
   radiant:extensions:page_preview:update'
I get the following error :
--
rake aborted!
Don't know how to build task  
'radiant:extensions:page_preview:update'
--

I've double-checked, and the 'page_preview' is present in my vendor/
extensions folder.

Any idea?

Thanks,
Thomas.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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
-~--~~~~--~~--~--~---



Image Magick not properly installed?

2009-11-02 Thread Stacia

I am using Paperclip to crop an image. It seems to be working
partially but I am getting error messages in my log that look like
this:

convert: unable to open module file `/usr/lib/ImageMagick-6.2.4/
modules-Q16/coders/5926.la': No such file or directory.

The Rails app works fine on my local machine, which is also running a
way more recent version of ImageMagick (6.5.7)

Do I have to enable something for ImageMagick to work? Is a path
somewhere pointing to an outdated binary? I have found tutorials
online which use Paperclip with Heroku so apparently some of the
functionality is working.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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
-~--~~~~--~~--~--~---



Sinatra and '//' in GET request

2009-11-02 Thread Steven Wilkin

I have a strange problem with a Sinatra app.

When I request http://MYAPP.heroku.com/http://google.com

This is in the log:

$ heroku logs
82.24.100.136, 10.250.31.111 - - [27/Oct/2009 13:18:41] GET /http:/
google.com HTTP/1.1 200 17 0.0005

The '//' in my GET request is being converted to '/'

Any ideas?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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: Nightly Backups or Don't Learn the Hard Way

2009-11-02 Thread D. Scott Brown

Is there really still no way to schedule automated nightly backups? I
sprung for the unlimited bundles addon, but it's sitting mostly idle
right now because there's no way (that I can see) to have Heroku
automatically capture a bundle. I tried adding `heroku
bundles:capture` to my nightly cron, and it just returns an empty
string. Any thoughts?

Scott

On Oct 14, 12:15 pm, SimianLogic learnyoura...@gmail.com wrote:
 I'll also throw out that the current bundles system is kind of one-
 size-fits-all. I have a separate git repo, so it's not worth paying
 for you guys to back that up everything when I would really only need
 my database backed up (assuming my production app was more critical,
 anyway). My database size is so small right now (Blossom) that I could
 just set a cron task to do the 'heroku db:import' every night to my
 dev machine.

 If there was a weekly dbbackup(i.e. every night, but keeps the most
 current 7) option that was priced alongside each database size option
 (i.e. free or a couple of bucks for the cheapest one and scaling up
 based on the size), I'd be much more likely to use it. As my database
 grows and I upgrade to the next level, so too would my db backups
 increase.

 In general, that applies to all of the add-ons. For a tiny app just
 getting started, Heroku is the best deal going (free). Doing something
 as simple as Delayed Jobs, though, and for the monthly $15 I feel like
 I should just suck it up and put it on the $20 SliceHost where I can
 also get all the other things (though I have to manage them). If I
 were up to Crane and 4 dynos, $15 extra for DJ or $3 for the hourly
 Crons would be more of a no-brainer. You could make the argument that
 small apps don't really need those services, but it seems like sound
 business sense to get us paying early so that when we scale up we're
 already depending on the add-ons that will cost more as we grow (and
 I'm willing to pay more later so that my startup costs are as close to
 $0 as possible).

 On Oct 13, 6:59 pm, Carl Fyffe carl.fy...@gmail.com wrote:



  Nice change to the docs! Thanks! Much clearer now.

  On Mon, Oct 12, 2009 at 3:58 PM, Jim Gilliam j...@gilliam.com wrote:
   It never occurred to me that the unlimited bundles were abackupstrategy.
   It's probably because the resources form says nightlybackupsoon - which
   indicates that bundles aren'tbackup, and thatbackupisn't available yet.

   People tend to keep a rolling 7 days of dbbackup, at least I do.  Having
   that as like a $5/mo option, separate from single bundle or unlimited
   bundles, would probably be used a lot.  If the heroku costs are pretty 
   much
   just S3, having it super cheap (or even free) if you supply your own S3,
   would be awesome.

   Jim

   On Mon, Oct 12, 2009 at 10:36 AM, Oren Teich o...@heroku.com wrote:

   Coincidentally, we've been working on documenting our security
   policies (both how we treat your data as well as how we protect it).
   This Danger/MS kerfufle shows me I can't get it out soon enough.

   In brief, there's two different aspects to this.

   1) protection we provide.  We provide disaster recovery of all data.
   All database data is stored in a Raid 10 configuration.  This provides
   us a huge amount of resiliancy in case of individual hardware failure
   on Amazon's side.  In addition, all data in the database is backed up
   once every 24 hours to Amazon S3.  These backups are stored in
   different availability zones to ensure no SPOF (single point of
   failure).  The backups are provided for disaster recovery only at this
   time - they are not there to help individual application developers
   recover.  This is mostly due to process, not capability.  We're
   backing up the data in aggregate, so it's a few minutes of work to
   restore an entire DB, but a few hours of work to restore an individual
   app.

   2) Protection we enable.  Bundles are the best way for an individual
   app owner tobackuptheir entire app - git, database, etc.  These
   enable you to either store the data on our S3 account (with unlimited
   bundles), or download them to your local machine.  One common pattern
   is to have cron on your mac automatically capture them for you and
   download the next day.  We've had surprisingly little adoption of the
   unlimited_bundles add-on, and also not too much feedback on how we can
   specifically improve the experiece.  One obvious way would be to auto-
   capture at a regular time, perhaps as part of the cron addon.

   Oren

   On Oct 12, 2009, at 6:11 AM, Chap wrote:

I'm sure we've all heard the news of Danger/MS loosing all their
sidekicker's data.

Which gets me thinking, what are you guys doing forbackup? The
bundles seem cool, but it would be nice if there was some automated
way of creating them and downloading them on a regular basis. Not that
I don't trust the cloud...

--~--~-~--~~~---~--~~
You received this message 

issue loading PNG content from MySQL dump into SQLite3 via yamldb

2009-11-02 Thread Nathan Beyer

I'm storing some PNG content (and other image types) via an
ActiveRecord binary field and I'm having trouble loading the content
from a dump file created from a MySQL database into a SQLite2
database. The dump and load works fine between MySQL instances on
different machines and OSes. The dump file looks perfectly fine, the
content is base64 encoded, as expected. However, when the load gets to
loading the records, it errors out with the following message.

SQLite3::SQLException: unrecognized token: 'ëPNG
→


Any suggestions on what might be the issue? Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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: installing gems from gemcutter not as it should be

2009-11-02 Thread Nick Quaranto
It's working for me...

% gem fetch RedCloth -Vv 4.2.0
GET 200 OK: http://gemcutter.org/specs.4.8.gz
Downloading gem RedCloth-4.2.0.gem
GET 302 Moved Temporarily: http://gemcutter.org/gems/RedCloth-4.2.0.gem
GET 200 OK:
http://s3.amazonaws.com/gemcutter_production/gems/RedCloth-4.2.0.gem
Downloaded RedCloth-4.2.0

Perhaps it was a temporary fluke? Does it work now?
-Nick

On Thu, Oct 29, 2009 at 9:55 AM, markdevilliers markdevilli...@gmail.comwrote:


 Hey Guys - not too sure if I should post this here but I keep getting
 the following type errors


 - Heroku receiving push

 - Installing gem right_aws 1.10.0 from http://gemcutter.org,
 http://gems.rubyforge.org
   Successfully installed right_http_connection-1.2.4
   Successfully installed right_aws-1.10.0
   2 gems installed

 - Installing gem right_http_connection 1.2.4 from
 http://gemcutter.org,
 http://gems.rubyforge.org
   Successfully installed right_http_connection-1.2.4
   1 gem installed

 - Installing gem populator 0.2.5 from http://gemcutter.org,
 http://gems.rubyforge.org
   Successfully installed populator-0.2.5
   1 gem installed

 - Installing gem faker 0.3.1 from http://gemcutter.org,
 http://gems.rubyforge.org
   Successfully installed faker-0.3.1
   1 gem installed

 - Installing gem RedCloth 4.2.0 from http://gemcutter.org,
 http://gems.rubyforge.org
   ERROR:  http://gemcutter.org/ does not appear to be a
 repository
   ERROR:  could not find gem RedCloth locally or in a repository


 error: hooks/pre-receive exited with error code 1

 To me it looks like maybe more from the gemcutter side than the heroku
 side but it is stopping me from deploying as is.
 Annoyingly it did work earlier on in the day

 By the way is this the best way to contact you guys if we are having
 service problems?

 Thanks,

 Mark

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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: ERROR: could not find gem chronic locally or in a repository

2009-11-02 Thread Nick Quaranto
All of gems from gems.github.com are prefixed with a username, so that won't
work. If you leave off the source it'll pick chronic up from gemcutter:
http://gemcutter.org/gems/chronic

-Nick

On Wed, Oct 21, 2009 at 2:10 PM, Shpigford j...@joshpigford.com wrote:


 I'm trying to install the chronic gem with my app and keep getting
 ERROR:  could not find gem chronic locally or in a repository when I
 try to deploy to heroku.

 I've got this in my .gems file:
 chronic --source http://gems.github.com;

 And during deploy it spits this out:
 Installing gem chronic from http://gems.github.com, http://gemcutter.org,
 http://gems.rubyforge.org
 ERROR:  could not find gem chronic locally or in a repository

 Not sure what else to try.

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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: Can Heroku receive mail?

2009-11-02 Thread Carl Fyffe

The first thing you need is the ability to reach out to the mail
server and the emails. There are several plugins that will help with
this. A little Googling and you should find a couple of examples.

The second piece is repeated queries to the mail server. The best way
to do this is use Background Job and have it check your email and then
schedule a new Background Job (simply genius, I wish I had thought of
it). Recursion wins again.

On Mon, Oct 26, 2009 at 3:43 PM, Shpigford j...@joshpigford.com wrote:

 The app I'd like to run on Heroku will need to eventually be able to
 receive email.

 As an example, a user would send an email to a unique email address
 and then our app would parse the email and do various things with it.

 Is that possible with Heroku?

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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: installing gems from gemcutter not as it should be

2009-11-02 Thread markdevilliers

It did work for me a couple of hours later. It had also failed several
times before I posted.

I think the issue is consistency - random gems (not always redcloth)
were failing to install with the error message  - http://
gemcutter.org/ does not appear to be a repository - which in the
example above doesn't make sense as it was a repository moments
before.

I'll probably accept that maybe gemcutter is a bit overloaded a
certain times and timing out delivering the initial 302 but maybe on
the heroku side there needs to be a try a few times on push as
failing at random stages is a bit annoying.

Anyway I've just pushed again and all is good again,

Thanks for looking into it for me - Mark

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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: installing gems from gemcutter not as it should be

2009-11-02 Thread Keenan Brock

Just a thought.

Are the requests to gemcutter using HTTP?
Is the system using ETags / If-Mod-since?

Seems there could be a way to use a forward proxy to gemcutter.

It would help out:
1) less bandwidth for both gemcutter and heroku
2) faster image build times on heroku
3) less load on the gemcutter servers
4) maybe less load on the heroku servers since

Another option would be to have a local repository of gems. I remember  
doing this with rpms/gentoo ports. It was a bit of a pain but as the  
number of machines increased, it really sped things up. (Especially  
when installing the software)

--Keenan

On Nov 2, 2009, at 11:51 AM, Neil Middleton wrote:


 I had this same problem last week - in the end, and on about the tenth
 push it finally managed to make it through which was a real pita.

 Something needs to be there to ensure deployments aren't
 killedwhatever that might be.

 /Neil

 On 2 Nov 2009, at 16:46, markdevilliers wrote:


 It did work for me a couple of hours later. It had also failed  
 several
 times before I posted.

 I think the issue is consistency - random gems (not always redcloth)
 were failing to install with the error message  - http://
 gemcutter.org/ does not appear to be a repository - which in the
 example above doesn't make sense as it was a repository moments
 before.

 I'll probably accept that maybe gemcutter is a bit overloaded a
 certain times and timing out delivering the initial 302 but maybe on
 the heroku side there needs to be a try a few times on push as
 failing at random stages is a bit annoying.

 Anyway I've just pushed again and all is good again,

 Thanks for looking into it for me - Mark




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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: installing gems from gemcutter not as it should be

2009-11-02 Thread Nick Quaranto
Yes, we are.
http://github.com/qrush/gemcutter/blob/master/app/metal/hostess.rb#L13-34

-Nick

On Mon, Nov 2, 2009 at 1:17 PM, Keenan Brock kee...@thebrocks.net wrote:


 Just a thought.

 Are the requests to gemcutter using HTTP?
 Is the system using ETags / If-Mod-since?

 Seems there could be a way to use a forward proxy to gemcutter.

 It would help out:
 1) less bandwidth for both gemcutter and heroku
 2) faster image build times on heroku
 3) less load on the gemcutter servers
 4) maybe less load on the heroku servers since

 Another option would be to have a local repository of gems. I remember
 doing this with rpms/gentoo ports. It was a bit of a pain but as the
 number of machines increased, it really sped things up. (Especially
 when installing the software)

 --Keenan

 On Nov 2, 2009, at 11:51 AM, Neil Middleton wrote:

 
  I had this same problem last week - in the end, and on about the tenth
  push it finally managed to make it through which was a real pita.
 
  Something needs to be there to ensure deployments aren't
  killedwhatever that might be.
 
  /Neil
 
  On 2 Nov 2009, at 16:46, markdevilliers wrote:
 
 
  It did work for me a couple of hours later. It had also failed
  several
  times before I posted.
 
  I think the issue is consistency - random gems (not always redcloth)
  were failing to install with the error message  - http://
  gemcutter.org/ does not appear to be a repository - which in the
  example above doesn't make sense as it was a repository moments
  before.
 
  I'll probably accept that maybe gemcutter is a bit overloaded a
  certain times and timing out delivering the initial 302 but maybe on
  the heroku side there needs to be a try a few times on push as
  failing at random stages is a bit annoying.
 
  Anyway I've just pushed again and all is good again,
 
  Thanks for looking into it for me - Mark
 
 
 
 
  


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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
-~--~~~~--~~--~--~---