Handling production/dev/testing configs in sails.js
问题 Does anyone know the best way to handle prod/dev/test config switching in sails? I really like how actionhero.js automatically loads config/environment/{env}.js based on the contents of NODE_ENV but I don't see a built-in way to do something similar in sails. I noticed that sails will load any file in config/ during server bootstrap so my hacky solution for now is to setup the following: config/ |-- local.js |-- environment/ |---- production.js |---- staging.js |---- development.js |----