Commit 290fce24 authored by Leo Iannacone's avatar Leo Iannacone

recreate a bin main script to call app.coffee and fix paths in app lib

parent 19160129
#/usr/bin/env coffee
### ###
Module dependencies. Module dependencies.
### ###
...@@ -11,12 +9,12 @@ serve_static = require("serve-static") ...@@ -11,12 +9,12 @@ serve_static = require("serve-static")
serve_index = require("serve-index") serve_index = require("serve-index")
errorhandler = require("errorhandler") errorhandler = require("errorhandler")
routes = require("./routes") routes = require("../routes")
config = require("./lib/config") config = require("./config")
utils = require("./lib/utils") utils = require("./utils")
Client = require("./lib/client") Client = require("./client")
Debomatic = require("./lib/debomatic") Debomatic = require("./debomatic")
# error handler setup # error handler setup
...@@ -27,7 +25,7 @@ else ...@@ -27,7 +25,7 @@ else
app.use(errorhandler()) app.use(errorhandler())
# the views # the views
app.set("views", __dirname + "/views") app.set("views", __dirname + "/../views")
app.set("view engine", "ejs") app.set("view engine", "ejs")
# index page # index page
...@@ -71,7 +69,7 @@ if config.routes.debomatic ...@@ -71,7 +69,7 @@ if config.routes.debomatic
{view: "details", icons: true})) {view: "details", icons: true}))
# serve stylesheet-javascript # serve stylesheet-javascript
app.use(serve_static(__dirname + "/public")) app.use(serve_static(__dirname + "/../public"))
# serve dsc files as octet-stream # serve dsc files as octet-stream
serve_static.mime.define("application/octet-stream": ["dsc"]) serve_static.mime.define("application/octet-stream": ["dsc"])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment