Where is title or app name for sails.js (using node.js and express.js)?

前端 未结 4 1330
无人共我
无人共我 2020-12-31 20:33

I\'m trying to change my websites name. Can\'t find where I can set title or app name.

4条回答
  •  天命终不由人
    2020-12-31 21:13

    You can create any file in config/ directory, for example config/app.js which contains comething like this:

    module.exports = {
        appName : 'My App'
    };
    

    Any property of exported object become an option of Sails` config.

    appName property is used as application title. For example, in default layout:

    <%- title %>
    

    where title === sails.config.appName === 'My App'

    By default appName config variable is set to 'Sails'.

提交回复
热议问题