This method is deprecated and will likely be removed or changed in Sails v1.0
There is no reliable, cross-platform way to automatically detect the external URL of a running Sails app (or any other Node app). In mission-critical situations, you are advised to pre-determine the URL and save it in a custom environment-dependent configuration value (e.g.
sails.config.appUrl) that you can reference elsewhere in the app.
Return a best guess of the base URL for this app, based on a combination of user-supplied and default configuration values.
getBaseUrl() constructs a URL string by inspecting various configuration values and defaults. For example, if
sails.config.ssl.cert both have values, the URL will start with
https:// instead of
sails.config.explicitHost is not undefined, its value will be used as the domain name; otherwise it will be
sails.config.port is not 80 or 443, its value will be appended to the URL as well.
This function does not accept any arguments.
In an email template...
For more information, visit <a href="<%=sails.getBaseUrl()%>">our web site</a>.