Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2524 from ajaxorg/runjs

Added runjs support for Cloud9 OS
  • Loading branch information...
commit 91e55f3cf6e0a7ec45e63638b66cd3c8313b0dcc 2 parents 435f708 + c986047
@mikedeboer mikedeboer authored
Showing with 49 additions and 1 deletion.
  1. +1 −0  bin/run.js
  2. +46 −0 bin/runjs.sh
  3. +2 −1  package.json
View
1  bin/run.js
View
46 bin/runjs.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+CMD="$0"
+CMD_DIR=`dirname "$CMD"`
+cd "$CMD_DIR/.."
+
+sudo bin/run.js panic
+make update
+
+case `uname -a` in
+Linux*x86_64*) echo "Linux 64 bit"
+ bin/run.js start -t:c9 server.js "$@" -a x-www-browser
+ ;;
+
+Linux*i686*) echo "Linux 32 bit"
+ bin/run.js start -t:c9 server.js "$@" -a x-www-browser
+ ;;
+
+Linux*arm*) echo "Linux ARM"
+ bin/run.js start -t:c9 server.js "$@" -a x-www-browser
+ ;;
+
+Darwin*) echo "OSX"
+ bin/run.js start -t:c9 server.js "$@" -a open
+ ;;
+
+FreeBSD*64*) echo "FreeBSD 64 bit"
+ bin/run.js start -t:c9 server.js "$@" -a open
+ ;;
+
+CYGWIN*) echo "Cygwin"
+ bin/run.js start -t:c9 server.js "$@" -a "cmd /c start"
+ ;;
+
+MING*) echo "MingW"
+ bin/run.js start -t:c9 server.js "$@" -a "cmd /c start"
+ ;;
+
+SunOS*) echo "Solaris"
+ bin/run.js start -t:c9 server.js "$@"
+ ;;
+
+
+*) echo "Unknown OS"
+ ;;
+esac
View
3  package.json
@@ -49,7 +49,8 @@
"asyncjs": ["npm", "https://github.com/ajaxorg/async.js/tarball/0b4ed5608a32c280a7690b5f52883d8d1fc0de08"],
"v8debug": ["npm", "https://github.com/ajaxorg/lib-v8debug/tarball/d2fac9b09724cb2e75e2807191eace9bc27d3b52"],
"packager": ["npm", "https://github.com/ajaxorg/packager/tarball/bee2a82c6d5e2875024bfdc83937e98092ccf04f"],
- "treehugger": ["npm", "https://github.com/ajaxorg/treehugger/tarball/b22d7ad712f76a7e7b1070ab339d567dfbf059b1"]
+ "treehugger": ["npm", "https://github.com/ajaxorg/treehugger/tarball/b22d7ad712f76a7e7b1070ab339d567dfbf059b1"],
+ "runjs": ["npm", "https://github.com/c9/runjs/tarball/347ad9627fb4a1d63458bc66ea40f0bf1efbf05c"]
},
"repository" : {
Please sign in to comment.
Something went wrong with that request. Please try again.