StrongLoop OpenShift offine-sync TEST
3.http://xxxx-xxxxx.rhcloud.com/ http://xxxx-xxxxx.rhcloud.com/explorer/
http://strongloop.com/strongblog/node-js-rest-api-openshift-redhat/?utm_source=tuicool
old : loopback :http://loopback.io/ new : http://strongloop.com/
rhc create-app sl https://raw.github.com/strongloop/openshift-cartridge-strongloop/master/metadata/manifest.yml
rhc show-app xxxxx 查相關資訊 rhc show-app xxxxx –gears quota 查空間
update to openshift, need to install local npm and strongloop *ubuntu *
- curl -sL https://deb.nodesource.com/setup | sudo bash -
- sudo apt-get install nodejs https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
- npm install -g strongloop =========== ALL in LOCAL: slc loopback:datasource myMongoDB this is local, not on openshift
if local no file, use rhc git-clone to get file in local. *ps.1
use mongodb : sudo npm install loopback-connector-mongodb –save
** mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/ ……this can’t use, please login openshit, then command line:
echo $OPENSHIFT_MONGODB_DB_HOST echo $OPENSHIFT_MONGODB_DB_PORT
git mothod : in local app directory
git init git add -A git commit -a -m “Initial Commit”
git commit -a -m “msg about commit” git remote add openshift <remote_git_url> git push –force openshift master
ps:
- if local file failed, use command: rhc git-clone xxx :: xxx -> app name
- http://www.codeproject.com/Articles/746155/Deploying-MongoDB-and-Node-js-application-on-OpenS
- http://docs.mongodb.org/ecosystem/platforms/red-hat-openshift/