ssh -NR 7070:localhost:7070 hlifeg
参考链接:https://www.ibm.com/developerworks/cn/linux/l-cn-sshforward/index.html
/* | |
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
server, but for some reason omit a client connecting to it. I added an | |
example at the bottom. | |
Save the following server in example.js: | |
*/ | |
var net = require('net'); |
'use strict'; | |
Object.defineProperty(exports, '__esModule', { value: true }); | |
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | |
var deindent = _interopDefault(require('de-indent')); | |
var he = _interopDefault(require('he')); | |
var babel = _interopDefault(require('babel-core')); | |
var prettier = _interopDefault(require('prettier')); |
import WebSocket from './websocket' | |
export default factory() | |
// below copy from https://github.com/hapijs/nes/blob/master/lib/client.js | |
function factory() { | |
// Utilities | |
const version = '2' | |
const ignore = function() {} |
ssh -NR 7070:localhost:7070 hlifeg
参考链接:https://www.ibm.com/developerworks/cn/linux/l-cn-sshforward/index.html
const cache = { | |
resolve: null | |
} | |
let timerId | |
function finish(b) { | |
console.warn('---------finish-------') | |
if (cache.resolve) { | |
console.warn('---------cache.resolve-------', b) |
// 临时修复mpvue-loader 1.0.15复制node_modules目录的bug | |
module.constructor.prototype.require = function (modulePath) { | |
if ( | |
modulePath === './modules/transform-require' && | |
this.id.indexOf('mpvue-loader/lib/template-compiler/index.js') > -1 | |
) { | |
modulePath = path.resolve(__dirname, 'utils', 'fixRequire.js') | |
} | |
return this.constructor._load(modulePath, this) | |
} |
rsync -v -r ../webapp/* ./webapp --exclude-from ../webapp/.gitignore --exclude=".git/*" |