Get the repo
$ git clone https://github.com/mattbrun/cows.git
$ cd cows
$ git config user.email "zzz@zzz.zzz"
$ git config user.name yyyInstall all libs and deps:
$ ./install.shhttps://www.openshift.com/blogs/introduction-to-deployments-and-rollbacks-on-openshift
$ rhc app create boom nodejs-0.10 mongodb-2.4 -r boom-openshift
$ cd boom-openshift$ git remote add openshift openshift-repo
$ git push -f openshift feature/derby-0.6:master # Per pushare un branch locale diverso da master sul master remoto
$ git push -f openshift develop:master # Per pushare un branch locale diverso da master sul master remoto- Nell'app NodeJS è necessario fare il bind del server sia sulla porta che sull'IP fornito tramite l'environment
Create public and server libs using source
$ ./start.shCreate public and server libs and minify (publish)
$ ./start.sh bundle$ NODE_ENV=production node-theseus [--theseus-verbose=2] server.js- Forke the module on github, i.e. derby-login
$ cd node_modules
$ git clone https://github.com/mattbrun/derby-login.git
$ cd derby-login
$ git remote add upstream https://github.com/derbyparty/derby-login.git
$ git remote -v
$ git fetch upstream
$ git checkout master
$ git merge upstream/master$ rhc app tidy -a b
$ rhc ssh -a b
$ quota -s
$ npm cache clear
$ find . -type d -name "node_modules" | less
$ rm -rf ./app-root/runtime/repo/node_modules/ ./app-deployments/XXXXXXXXX/repo/node_modules