ostrio:meteor-root

v1.0.5Published 7 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Meteor.rootPath

Get current path on your server, where is Meteor application is running

This package supports Windows. Thanks to @Konard.

Install:

meteor add ostrio:meteor-root

Usage:

1var pathToFile = Meteor.rootPath + '/folder/where/is/your/file.json';

Returns absolute path to programs/server folder of your compiled application, without trailing slash

1var pathToFile = Meteor.absolutePath + '/.meteor/local/build/programs/server/folder/where/is/your/file.json';

Returns absolute path to .meteor folder of your compiled application, without trailing slash