From 36ffc20f9bdb2b4032c12b7497260a85158755d1 Mon Sep 17 00:00:00 2001 From: Boyan Rabchev Date: Sat, 28 Mar 2015 02:16:00 +0200 Subject: [PATCH] Remove term.js (not needed anymore), added glabal command for wetty. --- bin/wetty.conf | 25 + bin/wetty.js | 3 + package.json | 2 +- public/index.html | 1 - public/wetty/hterm.js | 10483 -------------------------------------- public/wetty/index.html | 1 - 6 files changed, 29 insertions(+), 10486 deletions(-) create mode 100644 bin/wetty.conf create mode 100644 bin/wetty.js delete mode 100644 public/wetty/hterm.js diff --git a/bin/wetty.conf b/bin/wetty.conf new file mode 100644 index 0000000..85a624a --- /dev/null +++ b/bin/wetty.conf @@ -0,0 +1,25 @@ +# cat /etc/init/transloaditapi2.conf +# http://upstart.ubuntu.com/wiki/Stanzas + +description "Transloadit.com node.js API 2" +author "kvz" + +stop on shutdown +respawn +respawn limit 20 5 + +# Max open files are @ 1024 by default. Bit few. +limit nofile 32768 32768 + +script + set -e + mkfifo /tmp/api2-log-fifo + ( logger -t api2 /tmp/api2-log-fifo + rm /tmp/api2-log-fifo + exec sudo -u www-data MASTERKEY=`cat /transloadit/keys/masterkey` /transloadit/bin/server 2>&1 +end script + +post-start script + /transloadit/bin/notify.sh 'API2 Just started' +end script diff --git a/bin/wetty.js b/bin/wetty.js new file mode 100644 index 0000000..16e2dea --- /dev/null +++ b/bin/wetty.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +require("../app"); diff --git a/package.json b/package.json index 7ae305d..36ad19d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wetty", - "version": "0.0.8", + "version": "0.0.9", "dependencies": { "express": "3.5.1", "websocket": "", diff --git a/public/index.html b/public/index.html index 00281a9..72f8d7e 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,6 @@ Wetty - The WebTTY Terminal Emulator -