javascript - Getting application folder path on MeteorJS? -


in meteor i've been looking way home folder of running meteor application in server.

for example, if .meteor folder in c:/users/me/repos/mywebsite/.meteor, there way path c:/users/me/repos/mywebsite/, or ever app running at?

the reason asking because running scripts webapp, , if script (let's call script.rb) in folder called util in meteor home folder, have hardcode entire path c:/users/me/repos/mywebsite/utils/script.rb

is there better way this?

as side note, must made server side.

you here: projectroot/.meteor/local/build/programs/server/shell-server.js

so, reference script lives in sibling folder of project, it'll this: ../../../../../../scriptfolder/script.rb


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -