User Tools

Site Tools


wiki:qclug_presentations:cloud_hosting_aws_heroku_openshift

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:qclug_presentations:cloud_hosting_aws_heroku_openshift [2015/03/11 06:03]
Root
wiki:qclug_presentations:cloud_hosting_aws_heroku_openshift [2015/03/15 01:35] (current)
Root
Line 1: Line 1:
 +====== Presentation ======
 +
 +{{wiki/​qclug_presentations/​cloud_hosting_aws_heroku_openshift.pdf}}
 +{{wiki/​qclug_presentations/​cloud_hosting_aws_heroku_openshift.odp}}
 +
 ====== OpenShift Demonstration Steps ====== ====== OpenShift Demonstration Steps ======
  
Line 63: Line 68:
 wget https://​github.com/​kettari/​authgoogle/​archive/​master.tar.gz wget https://​github.com/​kettari/​authgoogle/​archive/​master.tar.gz
 tar xf master.tar.gz tar xf master.tar.gz
-rm master.tar.gz+rm -f master.tar.gz
 mv authgoogle-master authgoogle mv authgoogle-master authgoogle
 </​code>​ </​code>​
Line 69: Line 74:
 <​code>​ <​code>​
 cd ~/​dokuwiki/​.openshift/​conf cd ~/​dokuwiki/​.openshift/​conf
-vi local.php +cat ~/​dokuwiki-2014-05-05a/​conf/​local.php > local.php 
-vi acl.auth.php +cat ~/​dokuwiki-2014-05-05a/​conf/​acl.auth.php > acl.auth.php 
-vi users.auth.php+cat ~/​dokuwiki-2014-05-05a/​conf/​users.auth.php > users.auth.php
 cd ~/​dokuwiki/​.openshift cd ~/​dokuwiki/​.openshift
-vi .htaccess+cat ~/​dokuwiki-2014-05-05a/​.htaccess > .htaccess
 </​code>​ </​code>​
 ==== Hook scripts ==== ==== Hook scripts ====
 <​code>​ <​code>​
 cd ~/​dokuwiki/​.openshift/​action_hooks cd ~/​dokuwiki/​.openshift/​action_hooks
-vi build 
 vi deploy vi deploy
 +</​code>​
 +Add the following lines to the bottom of the deploy script:
 +<​code>​
 +cp -rf ${OPENSHIFT_REPO_DIR}.openshift/​conf/​* ${dest_dir}/​conf/​
 +cp -rf ${OPENSHIFT_REPO_DIR}.openshift/​plugins/​* ${dest_dir}/​lib/​plugins/​
 +cp -f ${OPENSHIFT_REPO_DIR}.openshift/​.htaccess ${dest_dir}/​
 +</​code>​
 +Commit and push your changes:
 +<​code>​
 cd ~/dokuwiki cd ~/dokuwiki
 git add . git add .
Line 85: Line 98:
 git push git push
 </​code>​ </​code>​
-==== Persistent Data ====+==== Upload ​Persistent Data ====
 <​code>​ <​code>​
 cd ~/​dokuwiki-2014-05-05a/​data/​ cd ~/​dokuwiki-2014-05-05a/​data/​
Line 101: Line 114:
 cd app-root/​data/​data cd app-root/​data/​data
 tar xf data-3-11-2015.tar.gz tar xf data-3-11-2015.tar.gz
-rm data-3-11-2015.tar.gz+rm -f data-3-11-2015.tar.gz 
 +exit
 </​code>​ </​code>​
 +
 +===== Add a custom domain (alias) =====
 +
 +OpenShift supports custom domain names using its easy to use alias system
 +
 +Step 1: Add a CNAME alias to your externally hosted DNS configuration\\
 +Step 2: Run **rhc alias** on your application instance\\
 +
 +<​code>​rhc alias add dokuwiki wiki.qclug.com</​code>​
  
 ===== Misc Notes ===== ===== Misc Notes =====
Line 109: Line 132:
 <​code>​rhc ssh dokuwiki</​code>​ <​code>​rhc ssh dokuwiki</​code>​
  
-The persistent ​date storage location for your application can be accessed in your deploy scripts by using the following environment variable:+The persistent ​data storage location for your application can be accessed in your deploy scripts by using the following environment variable:
 <​code>​$OPENSHIFT_DATA_DIRs</​code>​ <​code>​$OPENSHIFT_DATA_DIRs</​code>​
  
Line 116: Line 139:
 http://​www.openshift.org/​ http://​www.openshift.org/​
  
 +If you want to start over, simply delete your application and your git repository:
 +<​code>​
 +rhc app-delete dokuwiki
 +rm -rf dokuwiki
 +</​code>​
wiki/qclug_presentations/cloud_hosting_aws_heroku_openshift.1426053802.txt.gz · Last modified: 2015/03/11 06:03 by Root