Browse Source

Remove term.js (not needed anymore), added glabal command for wetty.

pull/15/head
Boyan Rabchev 10 years ago
parent
commit
36ffc20f9b
  1. 25
      bin/wetty.conf
  2. 3
      bin/wetty.js
  3. 2
      package.json
  4. 1
      public/index.html
  5. 10483
      public/wetty/hterm.js
  6. 1
      public/wetty/index.html

25
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 & )
exec >/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

3
bin/wetty.js

@ -0,0 +1,3 @@
#!/usr/bin/env node
require("../app");

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "wetty", "name": "wetty",
"version": "0.0.8", "version": "0.0.9",
"dependencies": { "dependencies": {
"express": "3.5.1", "express": "3.5.1",
"websocket": "", "websocket": "",

1
public/index.html

@ -5,7 +5,6 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Wetty - The WebTTY Terminal Emulator</title> <title>Wetty - The WebTTY Terminal Emulator</title>
<script src="/wetty/hterm_all.js"></script> <script src="/wetty/hterm_all.js"></script>
<script src="/wetty/hterm.js"></script>
<script src="/wetty/wetty.js"></script> <script src="/wetty/wetty.js"></script>
<style> <style>
html, html,

10483
public/wetty/hterm.js

File diff suppressed because it is too large

1
public/wetty/index.html

@ -5,7 +5,6 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Wetty - The WebTTY Terminal Emulator</title> <title>Wetty - The WebTTY Terminal Emulator</title>
<script src="/wetty/hterm_all.js"></script> <script src="/wetty/hterm_all.js"></script>
<script src="/wetty/hterm.js"></script>
<script src="/wetty/wetty.js"></script> <script src="/wetty/wetty.js"></script>
<style> <style>
html, html,

Loading…
Cancel
Save