Skip to content

Commit

Permalink
Moved node directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarcon committed May 6, 2012
1 parent 2f0e4f4 commit 0bca277
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/node/proxy.js → node/proxy.js
Expand Up @@ -19,6 +19,7 @@ app.get('/proxy', function (request, response) {
request.pipe(proxy_request);
});

app.use(express.static(path.normalize(__dirname + '/..')));
console.log(path.normalize(__dirname + '../app'));
app.use(express.static(path.normalize(__dirname + '/../app/')));

app.listen(8000);
4 changes: 3 additions & 1 deletion app/node/proxy.localcache.js → node/proxy.localcache.js
Expand Up @@ -19,6 +19,7 @@ app.get('/proxy', function (request, response) {
fStream.on('close', function () {
console.log(fileName + ' written.');
response.writeHead(302, {
//Make sure media exists if you attempt to use this proxying strategy
'Location': '/media/' + fileName
});
response.end();
Expand All @@ -27,6 +28,7 @@ app.get('/proxy', function (request, response) {
request.pipe(proxy_request);
});

app.use(express.static(path.normalize(__dirname + '/..')));
console.log(path.normalize(__dirname + '../app'));
app.use(express.static(path.normalize(__dirname + '/../app')));

app.listen(8000);

0 comments on commit 0bca277

Please sign in to comment.