Skip to content
yawetse edited this page Oct 29, 2014 · 2 revisions

####Starting Periodic

$ npm start

Periodic runs with npm, the exact commands are in package.json.

$ npm start -p [port] -e [environment]

The run time environment can be modified with command line arguments for the specific environment and port settings. WARNING: anything in config.json will override these settings

$ npm run nd

For development purposes only, the nd script runs with nodemon

####Stopping Periodic

$ npm stop

Both npm stop will stop the periodicjs PM2 daemon.

####Restarting Periodic

$ npm run reload

npm run reload, reloads the pm2 daemon.

###Upgrades

$ cd path/to/mywebapp # directory should have 'periodicjs' in it 
$ npm install periodicjs@latest 

##Development Make sure you have grunt installed

$ npm install -g grunt-cli

Then run grunt watch

$ grunt watch

##API

###FULL API DOCUMENTATION