From d72b31e89de0f12ea5259a16dfd7f23ee9db0681 Mon Sep 17 00:00:00 2001 From: Luis Eduardo Brito Date: Wed, 4 Sep 2013 21:05:14 -0300 Subject: [PATCH] added documentation for client dir --- {public => assets}/stylesheets/style.css | 0 client/help.md | 6 ++++++ scripts/server.js | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) rename {public => assets}/stylesheets/style.css (100%) create mode 100644 client/help.md diff --git a/public/stylesheets/style.css b/assets/stylesheets/style.css similarity index 100% rename from public/stylesheets/style.css rename to assets/stylesheets/style.css diff --git a/client/help.md b/client/help.md new file mode 100644 index 0000000..a5b1b77 --- /dev/null +++ b/client/help.md @@ -0,0 +1,6 @@ +Client files are serves in the ROOT/js directory. + +### Example: + + File in project: /client/app.js + File in webserver: /js/app.js \ No newline at end of file diff --git a/scripts/server.js b/scripts/server.js index c538b66..fff0567 100644 --- a/scripts/server.js +++ b/scripts/server.js @@ -21,7 +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.use("/assets", express.static(path.resolve(__dirname, "../assets"))); app.set('view engine', 'ejs'); app.use(expressLayouts)