Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/jitsu/package.js
@@ -636,7 +636,11 @@ package.runScript = function (pkg, action, callback) {
};

function searchStartScript(dir) {
var scripts = ['server.js', 'bin/server', 'app.js', 'index.js'];
var scripts = ['bin/server'];
['server', 'app', 'index'].forEach(function(i) {
scripts.push(i + '.js', i + '.coffee');
});

for (i in scripts) {
if (existsSync(path.join(dir, scripts[i]))) {
return scripts[i];