Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Deploy on Openshift

Lorenzo edited this page Mar 14, 2015 · 2 revisions
  1. install Ruby

  2. install rhc tools:

    gem install rhc
  1. set up rhc tools and start port-forwarding:
    rhc setup
    rhc port-forward chronosapi

if port-forwarding doesn't work probably you need to install a non-beta version of the net-ssh gem:

    gem list net-ssh
    gem uninstall net-ssh -v <beta-version>
    gem install net-ssh
  1. once port-forwarding is established, restore backup from local to remote
    mongorestore --host 127.0.0.1 -- port 27017 --username <username> --password <password> <dumpdir>/<dbname>/
  1. connect with mongo shell:
    mongo 127.0.0.1:27017/admin --username <username> --password <password>
  1. In mongo shell, create a user for the new db created with the restore:
     use <dbname>
     db.addUser({user: "username", pwd:"a_password", role: ["readWrite", "dbAdmin"]})
  1. set the mongo URL and the new username and password for the restored db in the repo config/defaults.json
Clone this wiki locally