This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var system = require('system'); | |
var casper = require('casper').create({ | |
clientScripts : [ 'jquery.min.js' ], | |
waitTimeout : 30000, // ms | |
logLevel : 'debug', // info, debug, warning, or error | |
verbose : system.args.indexOf('-v') >= 0 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# USAGE: ./watchrun.sh COMMAND | |
# New credit to: http://exyr.org/2011/inotify-run/ | |
# this script will wait for changes in the current directory tree, and when one occurs, it will run COMMAND, then resume waiting | |
# requires inotify-tools: | |
# sudo apt-get install inotify-tools | |
# or: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After installing meteor, I ran these commands | |
meteor create testapp | |
cd testapp | |
meteor | |
Then I modified the is_server block of testapp.js like so: | |
if (Meteor.is_server) { | |
Meteor.startup(function () { |
NewerOlder