 
   _computeHash: ->
     sum = crypto.createHash('sha1')
-    sum.update @pile
+    sum.update @rawPile
     @pileHash = sum.digest('hex')
 
 


    @addMiddleware app

    # TODO: 404s!

    app.get @Type::urlRoot + ":filename", (req, res) =>
      pileName = req.params.filename.split(".")[0]
      console.log "need to get ", pileName
      res.send @piles[pileName].pile, 'Content-Type': @contentType

    app.get @Type::urlRoot + "dev/:name/:filename", (req, res) =>
      pile = @piles[req.params.name]
      pile.readDev req.params.filename, (err, code) =>
        res.send code, 'Content-Type': @contentType





  constructor: (@name, @production) ->
    @files = []
    @rawPile = null
    @urls = []
    @devMapping = {}

