Skip to content

Commit

Permalink
Public diretory visible
Browse files Browse the repository at this point in the history
  • Loading branch information
luiseduardobrito committed Sep 5, 2013
1 parent 26b6b43 commit b1b1419
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"mongojs": "~0.7.17",
"async": "~0.2.9",
"express-ejs-layouts": "~0.3.1",
"ejs": "~0.8.4",
"ejs": "~0.8.4"
},
"devDependencies": {
"nodeunit": "~0.8.1"
Expand Down
2 changes: 1 addition & 1 deletion scripts/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var Server = function(cb) {
app.set('port', process.env.PORT || 3000);

app.use("/js", express.static(path.resolve(__dirname, "../client")));
app.use("/assets", express.static(path.resolve(__dirname, "../public")));
app.set('view engine', 'ejs');
app.use(expressLayouts)

Expand All @@ -42,7 +43,6 @@ var Server = function(cb) {
app.use(express.cookieParser('your secret here'));
app.use(express.session());
app.use(app.router);
app.use("/public", express.static(path.join(__dirname, '../public')));

// development only
if ('development' == app.get('env')) {
Expand Down

0 comments on commit b1b1419

Please sign in to comment.