Skip to content

About

openshift-angularjs-nodejs-mongodb-quickstart

Resources

Stars

0 stars

Watchers

2 watching

Forks

 
 

Repository files navigation

openshift-angularjs-nodejs-mongodb-quickstart

AngularJS, NodeJs, MongoDB sample

pre-requisites :

  • check ".openshift/lib/.npmrc" for your proxy configuration (fix for "SSL Error: CERT_UNTRUSTED" error)

how to deploy (quick)

rhc create-app mynodejs nodejs-0.6 mongodb-2.2 --from-code=https://github.com/boly38/openshift-angularjs-nodejs-mongodb-quickstart.git

details :

  • create an application with nodejs 0.6 and mongodb cartridges.
  • action hooks will setup nodejs 0.10.10 and set node/npm path and proxies

how to deploy (custom config)

The way to update your npm configuration : set your own proxies (assume openshift application name is "ttt")

git clone https://github.com/boly38/openshift-angularjs-nodejs-mongodb-quickstart.git
cd openshift-angularjs-nodejs-mongodb-quickstart/

# update this file with your own config
cat .openshift/lib/.npmrc

rhc create-app ttt nodejs-0.6 mongodb-2.2 --no-git
rhc show-app ttt
git remote add ttt ssh_git_url (the ssh git url given by rhc show-app ttt)
git push ttt master --force

faq

error on deploy (quick)

please try (custom config) way : sometimes openshift create-app failed on timeout if nodes and/or npm dep install is too long.

i am behind a proxy

set "http_proxy" and "https_proxy" before using rhc command, and you could update your %HOME%/.ssh/config (example using cygwin nc)

Host *.rhcloud.com
	Port 22 
	ProxyCommand /c/cygwin/bin/nc.exe -x mysocksproxy:1080 %h %p

About

openshift-angularjs-nodejs-mongodb-quickstart

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages