Reputation: 345
I have deployed a Sails api to Heroku I had been using the localdiskdb
for quite a while without any issues. I have recently spun up a JawsDB instance to connect with the api.
jawsDB:{
adapter: 'sails-mysql',
url: process.env.JAWSDB_URL,
schema: true
},
I have set the model in production.js to jawsDB.
I have been at this for the better part of a few days. At this point I really think I am missing something rather dumb. If anyone has any experience with setting this up the help would be greatly appreciated.
Upvotes: 2
Views: 456
Reputation: 345
Turns out I am dumb! I didn't have enough error logging to notice my application quickly used more than the 10 available connections that JawsDB offers for their free account.
My solution, use Amazon RDS.
Upvotes: 2