Reputation: 33026
I'm making a Facebook app that runs on Heroku. The app will send data to the Heroku server where it will be stored. Preferably it will store this data in a text file, because that seems to be the easiest way.
Can this be done? I know that Heroku lets you store data in some kind of database but that seems more than necessary.
Upvotes: 2
Views: 6913
Reputation: 31880
Yes, it can be done, but as a db not as a flat file.
Read up on the PostgreSQL here: https://devcenter.heroku.com/articles/heroku-postgresql
Why not a flat file? http://devcenter.heroku.com/articles/read-only-filesystem
Because the file system is read-only. And Heroku recommends you use the PostgreSQL for data storage.
Upvotes: 7