Another way to find your project's root directory now is this:
var base = process.env.PWD
Note that this is not the same as process.cwd()
. Instead it is the directory where you ran the meteor
command, which is typically what you are looking for. Note also that this probably won't be very helpful when running your app from a deployed bundle.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…