Skip to content

Instantly share code, notes, and snippets.

@aaronthorp
Created March 11, 2014 00:13
Show Gist options
  • Save aaronthorp/9477122 to your computer and use it in GitHub Desktop.
Save aaronthorp/9477122 to your computer and use it in GitHub Desktop.
Meteor.JS Private and Public Folder Directories. @aaronthorp
// Root of Meteor.js App
meteor_root = Npm.require('fs').realpathSync( process.cwd() + '/../' );
// Private Assets Folder of Meteor.JS App
assets_root = meteor_root + "/server/assets/app/";
@zachariahtimothy
Copy link

This was helpful, but looking at CollectionFS code internally I realized a slightly simpler way:

assets_root = __meteor_bootstrap__.serverDir + '/assets/app/assets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment