LiveReload Server for AcyOrt
$ npm i acyort-server -S
add acyort-server
to config.yml
# plugins, npm modules
plugins:
- acyort-server
use
# default port 2222
$ acyort server
# custom port
$ acyort server -p 2222
it will listen templates
files change, and reload page or css
get server status
// on AcyOrt workflow
module.exports = (acyort) => {
acyort.workflow.register(function () {
console.log(acyort.store.get('status', 'acyort-server'))
/*
{
path: '...',
event: '...'
}
*/
})
}
# install AcyOrt
$ npm i acyort -g
# install packages
$ npm i
# start
$ npm start