Commit 3e408d77 authored by Leo Iannacone's avatar Leo Iannacone

serve static debomatic files

parent 2e44f299
......@@ -20,6 +20,8 @@ app.configure(function(){
app.use(require('stylus').middleware({ src: __dirname + '/public' }));
app.use(app.router);
app.use(express.static(__dirname + '/public'));
app.use(config.debomatic_webpath, express.directory(config.debomatic_path));
app.use(config.debomatic_webpath, express.static(config.debomatic_path));
});
app.configure('development', function(){
......
var config = {}
config.debomatic_path = '/srv/debomatic-amd64'
config.debomatic_webpath = '/debomatic'
config.host = 'localhost'
config.port = 3000
......
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