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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -