You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.
I was able to get this module working with Meteor. All it needs to do is to modify the Meteor's execution script:
The script is: /Users/username/.meteor/meteor (if you are on MacOS)
Replace the last line used to start node server at the bottom with these lines:
functionnpm_package_is_installed {
# set to 1 initiallylocal return_=1
# set to 0 if not found
ls node_modules | grep $1>/dev/null 2>&1|| { local return_=0; }
# return valueecho"$return_"
}
NODEJS_DASHBOARD="$(which nodejs-dashboard)"
ARR=("""run""--settings")
if [[ $1=="--dashboard" ]] && [[ "${ARR[*]}"==*"$2"* ]];thenif [[ !-n"${NODEJS_DASHBOARD}" ]];thenecho"nodejs-dashboard is not installed globally"exit 1
fiif [[ "$(npm_package_is_installed nodejs-dashboard)"=="0" ]];thenecho"Please install nodejs-dashboard to you project"exit 1
fishiftexec"$NODEJS_DASHBOARD""--""$DEV_BUNDLE/bin/node""-r""nodejs-dashboard"${TOOL_NODE_FLAGS}"$METEOR""$@"elseexec"$DEV_BUNDLE/bin/node"${TOOL_NODE_FLAGS}"$METEOR""$@"fi
Then you will need to add --dashboard option to meteor command to run with nodejs-dashboard. Without --dashboard, it will works normally.
meteor --dashboard
meteor --dashboard --settings settings.json
meteor --dashboard run
meteor --dashboard run --settings settings.json
Also, your Meteor project should have version 1.4., otherwise the measurement for cpu and memory may not work. This is because Meteor 1.3 and older run with Node 0.10. which seems uncompatible with this module.
This is more of an idea and/or feature request, if at all possible. It would be useful to have this data while developing a Meteor application.
Thanks for the tool!
The text was updated successfully, but these errors were encountered: