Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update etherpad example w/ typeless gears + mongo changes #1

Merged
merged 1 commit into from

2 participants

@ramr

Update etherpad example

@wshearn wshearn merged commit 3a3567a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 5, 2012
  1. Fix variables for dev/typeless + mongo db version.

    Ram Ranganathan authored
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 13 deletions.
  1. +6 −6 .openshift/action_hooks/deploy
  2. +1 −1  README.md
  3. +6 −6 settings.json
View
12 .openshift/action_hooks/deploy
@@ -7,12 +7,12 @@ cp -v $OPENSHIFT_REPO_DIR/.openshift/mongodb_db.js $OPENSHIFT_REPO_DIR/node_modu
settingsfile=$OPENSHIFT_REPO_DIR/settings.json
-sed -i 's/OPENSHIFT_INTERNAL_IP/'$OPENSHIFT_INTERNAL_IP'/' $settingsfile
-sed -i 's/OPENSHIFT_INTERNAL_PORT/'$OPENSHIFT_INTERNAL_PORT'/' $settingsfile
-sed -i 's/OPENSHIFT_NOSQL_DB_USERNAME/'$OPENSHIFT_NOSQL_DB_USERNAME'/' $settingsfile
-sed -i 's/OPENSHIFT_NOSQL_DB_HOST/'$OPENSHIFT_NOSQL_DB_HOST'/' $settingsfile
-sed -i 's/OPENSHIFT_NOSQL_DB_PORT/'$OPENSHIFT_NOSQL_DB_PORT'/' $settingsfile
-sed -i 's/OPENSHIFT_NOSQL_DB_PASSWORD/'$OPENSHIFT_NOSQL_DB_PASSWORD'/' $settingsfile
+sed -i 's/OPENSHIFT_NODEJS_IP/'$OPENSHIFT_NODEJS_IP'/' $settingsfile
+sed -i 's/OPENSHIFT_NODEJS_PORT/'$OPENSHIFT_NODEJS_PORT'/' $settingsfile
+sed -i 's/OPENSHIFT_MONGODB_DB_USERNAME/'$OPENSHIFT_MONGODB_DB_USERNAME'/' $settingsfile
+sed -i 's/OPENSHIFT_MONGODB_DB_HOST/'$OPENSHIFT_MONGODB_DB_HOST'/' $settingsfile
+sed -i 's/OPENSHIFT_MONGODB_DB_PORT/'$OPENSHIFT_MONGODB_DB_PORT'/' $settingsfile
+sed -i 's/OPENSHIFT_MONGODB_DB_PASSWORD/'$OPENSHIFT_MONGODB_DB_PASSWORD'/' $settingsfile
sed -i 's/OPENSHIFT_APP_NAME/'$OPENSHIFT_APP_NAME'/' $settingsfile
# Set up the symbolic links needed for etherpad to work
View
2  README.md
@@ -21,7 +21,7 @@ you want)
Add MongoDB support to your application
- rhc app cartridge add -a etherpad -c mongodb-2.0
+ rhc app cartridge add -a etherpad -c mongodb-2.2
Add this upstream Etherpad repo
View
12 settings.json
@@ -1,13 +1,13 @@
{
- "ip": "OPENSHIFT_INTERNAL_IP",
- "port" : "OPENSHIFT_INTERNAL_PORT",
+ "ip": "OPENSHIFT_NODEJS_IP",
+ "port" : "OPENSHIFT_NODEJS_PORT",
"dbType" : "mongodb",
"dbSettings" : {
- "user" : "OPENSHIFT_NOSQL_DB_USERNAME",
- "host" : "OPENSHIFT_NOSQL_DB_HOST",
- "port" : OPENSHIFT_NOSQL_DB_PORT,
- "password": "OPENSHIFT_NOSQL_DB_PASSWORD",
+ "user" : "OPENSHIFT_MONGODB_DB_USERNAME",
+ "host" : "OPENSHIFT_MONGODB_DB_HOST",
+ "port" : OPENSHIFT_MONGODB_DB_PORT,
+ "password": "OPENSHIFT_MONGODB_DB_PASSWORD",
"dbname": "OPENSHIFT_APP_NAME"
},
Something went wrong with that request. Please try again.