Heroku gives you a Postgres database that's free for the first 5mb. They automatically replace your database.yml file so you should have to do any configuration if you're writing a basic rails app.
You also can't really use the filesystem for anything. Heroku says that you can put things in /tmp, but there is no guarantee that they are going to be there between requests. So the question is, are you trying to write anything to disk? If so, you'll need to find somewhere else to put it. S3 is probably the best bet. You should pretty much assume that you have no local disk when you use Heroku. Mike On Fri, Sep 24, 2010 at 12:24 PM, Dean <[email protected]> wrote: > I'm new to Heroku and Rails. I've recently deployed a simple project- > management site built on Michael Hartl's RailsTutorial sample app. > When I go to delete a user or a project, I encounter the "Heroku has a > read-only filesystem" error. > > Could I please get enlightenment from the group on how to best deal > with this? Do I simply need to adjust some environment variables and > store stuff in /tmp? Is Heroku designed with the assumption that I'll > put my database on S3 and write/delete there rather than on Heroku? > > Thanks! > > Dean Richardson > Genlighten.com > > A portion of the error text follows: > > Processing ProjectsController#destroy (for 75.205.61.162 at 2010-09-24 > 11:55:00) [DELETE] > Parameters: {"action"=>"destroy", "_method"=>"delete", > "authenticity_token"=>"FTy5blkpYaTrJqpww/DPHk/Gu6XfJ5qdMq9Pfyq/GAM=", > "id"=>"12", "controller"=>"projects"} > [paperclip] Deleting attachments. > [paperclip] deleting /disk1/home/slugs/296626_1795474_1092/mnt/public/ > system/images/37/original/sealed_MT_circular_1.jpg > > Errno::EROFS (Read-only file system - /disk1/home/slugs/ > 296626_1795474_1092/mnt/public/system/images/37/original/ > sealed_MT_circular_1.jpg - Heroku has a read-only filesystem. See > http://docs.heroku.com/constraints#read-only-filesystem): > /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:1298:in `unlink' > /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:1298:in `remove_file' > /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:1303:in `platform_support' > /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:1297:in `remove_file' > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
