4 ms·
OK, I see how to run a simple web server, like Mochiweb on Heroku Cedar stack. But how do I connect to database? How do I write to log?
by nivertech 15y ago
OK, I see how to run a simple web server, like Mochiweb on Heroku Cedar stack.
But how do I connect to database?
How do I write to log?
- bgentry 15y agoYou can connect to any database you want to just like you would anywhere else. You write to your logs by writing to stdout/stderr: http://devcenter.heroku.com/articles/logging#writing_to_your_log http://devcenter.heroku.com/articles/logging#writing_to_your...
- nivertech 15y agoCan you elaborate about the DB part? You mean people using Cedar stack should use database hosted elsewhere? I.e. something like AWS RDS or MongoHQ? My question was about using Heroku's shared Postgres database, like usual Rails apps using Bamboo stack.