User Tools

Site Tools


build:wiki

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
build:wiki [2017/01/27 20:37]
Admin Disable CSS/JS compression, as it was buggy.
build:wiki [2017/02/26 20:25] (current)
Admin [Upgrading] Upgrade to 2017-02-19a
Line 240: Line 240:
 ===== Upgrading ===== ===== Upgrading =====
  
-With multiple versions of DokuWiki installed into ''/​usr/​local'',​ we can have multiple versions installed at the same time, and we can have different sites running different versions. So upgrading consists primarily of installing a new version, the pointing each site at the new version of the code. The installation portion is the same as above.+With multiple versions of DokuWiki installed into ''/​usr/​local'',​ we can have multiple versions installed at the same time, and we can have different sites running different versions. So upgrading consists primarily of installing a new version, the pointing each site at the new version of the code. The installation portion is as follows (basically ​the same as above, but it's broken up into a couple pieces above): 
 + 
 +<code bash> 
 +# Define the version that we're upgrading to. 
 +DOKUWIKI_VERSION='​2017-02-19a'​ 
 + 
 +# Download and install the new version. 
 +wget http://​download.dokuwiki.org/​src/​dokuwiki/​dokuwiki-$DOKUWIKI_VERSION.tgz 
 +tar xfz dokuwiki-$DOKUWIKI_VERSION.tgz 
 +rm dokuwiki-$DOKUWIKI_VERSION.tgz 
 +sudo mkdir -p /​usr/​local/​share/​dokuwiki 
 +sudo rm -f /​usr/​local/​share/​dokuwiki/​$DOKUWIKI_VERSION 
 +sudo cp -r dokuwiki-$DOKUWIKI_VERSION /​usr/​local/​share/​dokuwiki/​$DOKUWIKI_VERSION 
 + 
 +# Make sure the shared templates are seen by the current version of DokuWiki. 
 +TEMPLATES=$(\cd /​usr/​local/​share/​dokuwiki/​templates/​ && ls --ignore README.md) 
 +for template in $TEMPLATES; do sudo ln -sf /​usr/​local/​share/​dokuwiki/​templates/​$template /​usr/​local/​share/​dokuwiki/​$DOKUWIKI_VERSION/​lib/​tpl/​ ; done 
 +</​code>​
  
 Be sure to read the [[http://​www.dokuwiki.org/​changes | changes made in the new release]]. Make sure you follow any directions specific to the new release. Also read through the ''​dokuwiki/​$DOKUWIKI_VERSION/​conf/​dokuwiki.php''​ file to look for any new config options. Make any necessary changes to ''​conf/​local.php''​ for each site. Be sure to read the [[http://​www.dokuwiki.org/​changes | changes made in the new release]]. Make sure you follow any directions specific to the new release. Also read through the ''​dokuwiki/​$DOKUWIKI_VERSION/​conf/​dokuwiki.php''​ file to look for any new config options. Make any necessary changes to ''​conf/​local.php''​ for each site.
  
-When you're ready to upgrade the site:+When you're ready to upgrade the sites:
  
 <code bash> <code bash>
-# Define the version that we're upgrading to. (Note that this must already be installed into /​usr/​local/​share/​dokuwiki/​.) +# Define the version that we're upgrading to. 
-DOKUWIKI_VERSION='​2016-06-26a'+DOKUWIKI_VERSION='​2017-02-19a'
  
 # Define the site we're updating. # Define the site we're updating.
build/wiki.txt · Last modified: 2017/02/26 20:25 by Admin