Edit Page

sails lift

Run the Sails app in the current dir (if node_modules/sails exists, it will be used instead of the globally installed Sails).

sails lift

By default, Sails lifts your app in development mode. In the development environment, Sails uses Grunt to keep an eye on your files in /assets. If you change something (for example in one of your .css or .less files) and reload your browser, you'll notice that your changes are reflected automatically.

Also note that, in development mode, your view templates won't be cached in memory. So, like assets, you can also change your view files without restarting Sails.

Any changes to back-end logic or configuration (e.g. the files in config/, api/, or node_modules/) will not take effect unless you kill and restart the server (CTRL+C + sails lift).

Usage:

#

sails lift takes the following options:

Example

#
$ sails lift

info: Starting app...

info:
info:
info:    Sails              <|
info:    v1.0.0              |\
info:                       /|.\
info:                      / || \
info:                    ,'  |'  \
info:                 .-'.-==|/_--'
info:                 `--'-------'
info:    __---___--___---___--___---___--___
info:  ____---___--___---___--___---___--___-__
info:
info: Server lifted in `/Users/mikermcneil/code/sandbox/second`
info: To see your app, visit http://localhost:1337
info: To shut down Sails, press <CTRL> + C at any time.

debug: --------------------------------------------------------
debug: :: Sat Apr 05 2014 17:03:39 GMT-0500 (CDT)

debug: Environment : development
debug: Port        : 1337
debug: --------------------------------------------------------

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.

Reference

Reference