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)

Options:
  • --dev - in development environment (the default). In the development environment Sails use grunt-watch to keep a eye on your files in /assets. If you change something (for example in one of our css-files) and reload your browser Sails will automatically show your changes. Also you views won’t be cached so you can change your view-files without restarting Sails like the assets.
  • --prod - in production environment
  • --port <portNum> - on the port specified by portNum instead of the default (1337)
  • --verbose - with verbose logging enabled
  • --silly - with insane logging enabled

Example

  1. $ sails lift
  2. info: Starting app...
  3. info:
  4. info:
  5. info: Sails <|
  6. info: v0.11.3 |\
  7. info: /|.\
  8. info: / || \
  9. info: ,' |' \
  10. info: .-'.-==|/_--'
  11. info: `--'-------'
  12. info: __---___--___---___--___---___--___
  13. info: ____---___--___---___--___---___--___-__
  14. info:
  15. info: Server lifted in `/Users/mikermcneil/code/sandbox/second`
  16. info: To see your app, visit http://localhost:1337
  17. info: To shut down Sails, press <CTRL> + C at any time.
  18. debug: --------------------------------------------------------
  19. debug: :: Sat Apr 05 2014 17:03:39 GMT-0500 (CDT)
  20. debug: Environment : development
  21. debug: Port : 1337
  22. debug: --------------------------------------------------------