Example of using phantomjs webserver module
phantomjs server.jsThis can be deployed to heroku with the phantomjs buildpack.
# create a new heroku app
heroku create --stack cedar --buildpack http://github.com/stomita/heroku-buildpack-phantomjs.git
# deploy
git push heroku master##crontab
*/5 * * * * sh /watchphantom.sh >> /macken/testph.log