Skip to content

Commit

Permalink
removed automatic builds from server.coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
ngn committed Feb 13, 2015
1 parent e63b00b commit e91ef90
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
fs = require 'fs'
t0 = +new Date; log = (s) -> process.stdout.write "#{new Date - t0}: #{s}\n"

if fs.existsSync 'build.sh'
# we are running on a developer box, invoke the build script first
require 'coffee-script/register'
execSync = require 'exec-sync'
throttle = (f) -> tid = null; -> if !tid? then tid = setTimeout (-> f(); tid = null), 200
do build = throttle -> log 'building...'; execSync './build.sh'; log 'build done'
'client style index.html proxy.coffee'.split(' ').forEach (f) -> fs.watch f, build

opts = require('nomnom').options(
cert: metavar: 'FILE', help: 'PEM-encoded certificate for https', default: 'ssl/cert.pem'
key: metavar: 'FILE', help: 'PEM-encoded private key for https', default: 'ssl/key.pem'
Expand Down

0 comments on commit e91ef90

Please sign in to comment.