Skip to content

Instantly share code, notes, and snippets.

@molda
Created April 8, 2018 09:16
Show Gist options
  • Save molda/679dd7047b9974f73ed6682fbfd4b2a0 to your computer and use it in GitHub Desktop.
Save molda/679dd7047b9974f73ed6682fbfd4b2a0 to your computer and use it in GitHub Desktop.
#! /usr/bin/env node
var Path = require('path');
if (process.argv[2] === '--help' || process.argv[2] === '-h') {
console.log('');
console.log('Runs in release mode on port 8000 by default');
console.log('Add port number to run on different port');
console.log('Example: `$ totalr 3000`');
console.log('');
return;
}
module.paths.unshift(Path.join(process.cwd(), '../', 'node_modules'));
module.paths.unshift(Path.join(process.cwd(), 'node_modules'));
require('total.js').http('release');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment