2. http://docs.strongloop.com/display/SL/OpenShift
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 *
1. curl -sL https://deb.nodesource.com/setup | sudo bash -
2. sudo apt-get install nodejs https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
3. npm install -g strongloop
===========
ALL in LOCAL:
slc loopback:datasource myMongoDB this is local, not on openshift
3. 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
>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:
1. if local file failed, use command: rhc git-clone xxx :: xxx -> app name
2. http://www.codeproject.com/Articles/746155/Deploying-MongoDB-and-Node-js-application-on-OpenS
3. http://docs.mongodb.org/ecosystem/platforms/red-hat-openshift/
-------------
http://strongloop.com/node-js/studio-beta/