diff --git a/lib/app/Sails.js b/lib/app/Sails.js index e7e28cfee..fb4915b94 100644 --- a/lib/app/Sails.js +++ b/lib/app/Sails.js @@ -77,7 +77,11 @@ Sails.prototype.lift = require('./lift'); Sails.prototype.lower = require('./lower'); -Sails.prototype.getBaseurl = require('./getBaseurl'); +Sails.prototype._getBaseUrl = require('./getBaseurl'); +Sails.prototype.getBaseurl = function() { + this.log.warn("sails.getBaseUrl() is deprecated and will be removed in Sails v1.0. See http://sailsjs.org/documentation/reference/application/sails-getbaseurl for more info."); + return this._getBaseUrl(); +}; Sails.prototype.getBaseURL = Sails.prototype.getBaseurl; Sails.prototype.getBaseUrl = Sails.prototype.getBaseurl; diff --git a/lib/app/lift.js b/lib/app/lift.js index 5533d0874..b0b611203 100644 --- a/lib/app/lift.js +++ b/lib/app/lift.js @@ -65,7 +65,7 @@ function _printSuccessMsg(sails) { sails.log.ship && sails.log.ship(); sails.log.info(('Server lifted in `' + sails.config.appPath + '`')); - sails.log.info(('To see your app, visit ' + (sails.getBaseurl() || '').underline)); + sails.log.info(('To see your app, visit ' + (sails._getBaseUrl() || '').underline)); sails.log.info(('To shut down Sails, press + C at any time.')); sails.log.blank(); sails.log('--------------------------------------------------------'.grey);