You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sergeych edited this page Aug 25, 2012
·
3 revisions
npm -g install prego
Global installation is needed to use pmigrate, migration command line tool. If you prefer to use programmatic migrations interface, you can install it locally only.
Configuration
Easiest way is to have configuration file in you project's root directory. Currently, prego looks for ./config(.js|.coffee), imports it and checks exports.dbConnectionString where should be connection string suitable for the pg module, such as
Config module could do whatever logic you need to calculate suitable connection string, say, depending on the
deployment target, debug mode or whatever you like. This is the way pmigrate tool works.