Created
April 8, 2018 09:16
-
-
Save molda/679dd7047b9974f73ed6682fbfd4b2a0 to your computer and use it in GitHub Desktop.
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
#! /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