Environment variables were not working. Printed into bash the process.env and some variables have this \r at the end.
MAIN_DB_ADAPTER: 'sails-mongo\r',
REDIS_PORT: '6379\r',
Do you have any idea what's going on? .env.local file looks like
export MAIN_DB_ADAPTER= 'sails-mongo'
export REDIS_PORT: 6379