All the other answers are great answers, here is another approach.
Set an environment variable called SQL_STRING.
It is assumed that you are on ubuntu ..
#edit /etc/profile or ~/.profile
vim /etc/profile;
#add this line to it.
export SQL_STRING=<insert your sql string>
now in your file config/local.jsadd this forconnectionString:
connectionString: process.env.SQL_STRING
this will load the connection string as an environment variable. This will do two things
local.js , , , , env. , ..
, , , .
sailsjs, sails, ~/.profile MAILGUN, db , . sudo, ssh , .
, , root .