established by separating the key:value pairs with ','
commas. (www:./www)
e.g. Service a typical frontpage
- -i./html/index.html -b js:./js,html:./html,css:./css
+ -i./html/index.html -bjs:./js,html:./html,css:./css
e.g. Route-based http hosting
- -b user1:/home/user1/www,user2:/home/user2/www
+ -buser1:/home/user1/www,user2:/home/user2/www
-e, --electron=string Specify a route name for the local electron render
window which will be launched on execution (nil)
- enables optional electron dependency
-d, --dedicated=string Route all incoming connections to this route (nil)
- can be used in conjunction with '-e' for single-user
- e.g. Set the electron window to use route 'default',
- Set the dedicated route to 'default'
- $ node strapp.js -e default -d default
- - All routes point to 'default' which is bound to
- the local electron window. No other hosts may
- be established, so no remote hosts may exist
+ e.g. Create a dedicated electron listener
+ - strapp -edefault -ddefault
+ - All routes point to 'default' which is bound to
+ the local electron window. No other hosts may
+ be established, so no remote hosts may exist
COMPATIBILITY
--legacy-socket=bool Use Socket.io compatibility layer to enable