Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Commit

Permalink
Tighten what's deployed under 'scripted.home' in CF mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdvolder committed Mar 4, 2013
1 parent 69e66b7 commit 26577cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -5,4 +5,5 @@ scripted.log
node_modules
serv.log
/client/components
secret.json
secret.json
sandbox/user.home
7 changes: 4 additions & 3 deletions server/start-cloudfoundry.js
Expand Up @@ -35,9 +35,10 @@ var github = withPrefix('/github', githubFs.configure(
JSON.parse(nodefs.readFileSync(__dirname+'/../secret.json'))
));

var scriptedHome = withPrefix('/scripted.home',
withBaseDir(scriptedHomeLocation)
);
var scriptedHome = withPrefix('/scripted.home', compose(
withPrefix('/plugins', withBaseDir(scriptedHomeLocation + '/plugins')),
withPrefix('/completions', withBaseDir(scriptedHomeLocation + '/completions'))
));

//All of our files, with the 'slim' node-like fs API:
var corefs = compose(
Expand Down

0 comments on commit 26577cd

Please sign in to comment.