Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Latest commit

 

History

History
28 lines (22 loc) · 633 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 633 Bytes

#SETUP

  • brew update
  • brew install npm
  • nvm #must use latest node, 0.11.x
  • npm install
    • npm install -g nvm
    • export PATH=./node_modules/.bin:$PATH
    • source ~/.nvm/nvm.sh - this runs it locally
    • nvm ls
    • npm install unstable

run node --harmony index.js

Run forever

  • npm install -g forever
  • forever start index.js

Better Interval Solution

var minutes = 1, the_interval = minutes * 60 * 1000;
  setInterval(function() {
    // Run code
  })
}, the_interval);