Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 349
The Finest Artist Avatar asked Aug 17 '13 19:08

The Finest Artist


1 Answers

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><%- title %></title>

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

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

like image 190
ataman Avatar answered Sep 19 '22 22:09

ataman