This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:qclug_presentations:cloud_hosting_aws_heroku_openshift [2015/03/11 06:23] Root [Config Files] |
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 78: | Line 83: | ||
<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> | ||
Line 118: | 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> | ||