node.js - Different database for production and development in nodejs -
i know ruby on rails has feature, , in railstutorial encourages it. however, have not found such thing in nodejs. if want run sqlite3 on machine can have easy use database access, postgres in production on heroku, how in nodejs? can't see find tutorials on it.
thank you!
edit: meant include node.js + express.
it's possible of course, aware bad idea: http://12factor.net/dev-prod-parity
if don't want go through hassle of setting postgres locally, instead use free postgres plan on heroku , connect local machine:
database_url=url node server.j
a .env file can make easier:
Comments
Post a Comment