https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362016-01-13T17:49:00ZEcoinformatics RedmineMetacatUI - Feature #6935: Create alternate index.html for under maintenance messagehttps://projects.ecoinformatics.org/ecoinfo/issues/6935?journal_id=226432016-01-13T17:49:00ZLauren Walkerwalker@nceas.ucsb.edu
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul><p>I added an index-msg.html to the webapp directory to use when the site is being upgraded. It just has a simple "Site is offline, please check back soon" message.</p>
<p>This message can be activated by running a simple shell script - toggle-index.sh, which I added to a scripts directory in MetacatUI. This script will toggle between the two index.html files. This will make it easier and faster to put the under maintenance msg online and then turning the app back on during an upgrade. Example:</p>
<p><strong>before Metacat upgrade</strong><br />$ bash toggle-index.sh /var/www/www.site.com<br />--> Under maintenance msg is ON</p>
<p><strong>After Metacat upgrade</strong><br />$ bash toggle-index.sh /var/www/www.site.com<br />--> Under maintenance msg is OFF, site is back online</p>