title: Internal Server Error on heroku sails deploy
body: <p>I am trying to deploy my sails.js app to heroku. I have deployed it but whenever I open a page which requires data from DB it says <code>Internal Server Error</code>. I think it might be a problem with my DB connection. I have created a postgresql DB on heroku and have set the connections in connections.js. Connection.js code is </p>
  
  <pre><code>module.exports.connections = {
       'mysql-adapter': {
           module: 'sails-mysql',
           url: "postgres://username:pass@ec2-107-22-249-214.compute-1.amazonaws.com:5432/dcebipdspqn7rn",
           port: 5432,
           schema:true
       }
  };
  </code></pre>
  
  <p>I have been searching on the net for 2 days and have tried many tweaks but none has worked for me. Kindly tell me how to solve this issue.
  Thanks in advance.</p>
  
  <p>UPDATE:</p>
  
  <p>I checked the logs and it says </p>
  
  <pre><code>←[33m2015-02-25T14:20:38.793179+00:00 app[web.1]:←[0m  Could not render view "displayroute/viewRoute".  Tried locating view file @ "/app/views/displayroute/view
  Route". Layout configured as "layout", so tried using layout @ "/app/views/layout")
  </code></pre>
  
  <p>However, the view is rendered correctly on localhost.</p>