// Generated by CoffeeScript 1.3.3
var DocPad;

DocPad = require(__dirname + '/../lib/docpad');

DocPad.createInstance(function(err, docpad) {
  var serverAction;
  if (err) {
    return console.log(err.stack);
  }
  serverAction = process.env.DOCPAD_SERVER_ACTION || 'generate server';
  return docpad.action(serverAction, function(err) {
    if (err) {
      return console.log(err.stack);
    }
    return console.log('OK');
  });
});
