[odrs-web/production] trivial: Remove OpenShift specifics
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web/production] trivial: Remove OpenShift specifics
- Date: Mon, 26 Sep 2016 09:58:37 +0000 (UTC)
commit e13a1c722e3c731feb66361f2a6cf0a7c557bdca
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 26 10:58:11 2016 +0100
trivial: Remove OpenShift specifics
README.md | 37 ++-----------------------------------
1 files changed, 2 insertions(+), 35 deletions(-)
---
diff --git a/README.md b/README.md
index 07f15aa..e0dbebc 100644
--- a/README.md
+++ b/README.md
@@ -17,47 +17,14 @@ To set up the database tables do:
You want to save the variable `ODRS_REVIEWS_SECRET` so that old review data
can be used on the new instance.
- export OPENSHIFT_NAMESPACE=xdgapp
- export OPENSHIFT_APP=apps
- rhc env list --app ${OPENSHIFT_APP} --namespace ${OPENSHIFT_NAMESPACE}
- rhc ssh --app ${OPENSHIFT_APP} --namespace ${OPENSHIFT_NAMESPACE}
- mysqldump -h $OPENSHIFT_MYSQL_DB_HOST \
- -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} \
- -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} \
- --password="$OPENSHIFT_MYSQL_DB_PASSWORD" \
- odrs > app-root/data/backup-`date +%Y%m%d`.sql
- exit
- rhc scp --app ${OPENSHIFT_APP} \
- --namespace ${OPENSHIFT_NAMESPACE} \
- download . app-root/data/backup-`date +%Y%m%d`.sql
+ mysqldump odrs > backup.sql
## How do I restore from a backup ##
-If this is a fresh instance you want to set up using:
-
- export OPENSHIFT_NAMESPACE=xdgapp
- export OPENSHIFT_APP=apps
- rhc delete-app --app ${OPENSHIFT_APP} --namespace ${OPENSHIFT_NAMESPACE}
- rhc create-app --type python-3.3 --scaling \
- --app ${OPENSHIFT_APP} --namespace ${OPENSHIFT_NAMESPACE} \
- --from-code https://github.com/hughsie/odrs-website.git
- rhc cartridge add --app ${OPENSHIFT_APP} \
- --namespace ${OPENSHIFT_NAMESPACE} \
- mysql-5.5
- rhc env set --app ${OPENSHIFT_APP} \
- --namespace ${OPENSHIFT_NAMESPACE} \
- ODRS_REVIEWS_SECRET=foobar
- rhc show-app --app ${OPENSHIFT_APP} --namespace ${OPENSHIFT_NAMESPACE}
- rhc scp --app ${OPENSHIFT_APP} --namespace ${OPENSHIFT_NAMESPACE} \
- upload backup.sql app-root/data
- rhc ssh --app ${OPENSHIFT_APP} --namespace ${OPENSHIFT_NAMESPACE}
-
-Then restore the data with:
-
mysql
CREATE DATABASE odrs;
use odrs;
- source app-root/data/backup.sql;
+ source backup.sql;
## Can I clean up the event log a bit? ##
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]