2.0.0 • Published 13 years ago
difio-openshift-nodejs v2.0.0
Registration agent for Difio, preconfigured for OpenShift / Node.js applications.
It compiles a list of installed packages and sends it to http://www.dif.io
Installing on your OpenShift Node.js application
Create an account at http://www.dif.io
Create your Node.js application in OpenShift
Add a dependency to your application:
echo difio-openshift-nodejs >> deplist.txtIf your application has a
package.jsonfile list the dependency there as well:... "dependencies": { ... "difio-openshift-nodejs": "" }, ...Set your userID in the
./data/DIFIO_SETTINGSfileecho "export DIFIO_USER_ID=YourUserID" > ./data/DIFIO_SETTINGSEnable the registration script in
.openshift/action_hooks/post_deploy#!/bin/sh cd $OPENSHIFT_REPO_DIR source data/DIFIO_SETTINGS node_modules/.bin/difio-openshiftCommit and push your application to OpenShift
git add . && git commit -m "enable Difio registration" && git pushIf everything goes well you should see something like:
remote: Running .openshift/action_hooks/post_deploy remote: Difio: Success, registered/updated application with uuid 25d23384-46a8-48ce-83b0-01f4fa4c5987That's it, you can now check your application statistics at http://www.dif.io
2.0.0
13 years ago