User Tools

Site Tools


updates

Differences

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

Link to this comparison view

Next revision
Previous revision
updates [2014/01/29 18:05]
127.0.0.1 external edit
updates [2017/04/14 12:05] (current)
Line 1: Line 1:
 +====== Update ======
  
 +Updates help us and you to keep your copy in actual state. Updates contists of some changes to DB and files reflecting new features in script.
 +To appaly an update to your script just click on Home at the top of you admin are and select an update. Make sure you apply updates step by step, do not skip updates. At the same page you can see your current version.
 +
 +====== How to run update ======
 +
 +<code>
 +cd your_path_to/scj/admin/
 +php update.php (опционально номер апдейта)
 +</code>
 +
 +====== TCMS (Smartcj 2.X) Updates ======
 +
 +
 +[[ru:tcms_update_1|Update 1]]
 +
 +
 +====== SmartCJ v 1.X Updates ======
 +
 +
 +[[Update 52]]
 +
 +[[Update 51]]
 +
 +[[Update 50]]
 +
 +[[Update 49]]
 +
 +[[Update 48]]
 +
 +[[Update 47]]
 +
 +[[Update 46]]
 +
 +[[Update 45]]
 +
 +[[Update 44]]
 +
 +[[Update 43]]
 +
 +[[Update 42]]
 +
 +[[Update 41]]
 +
 +[[Update 40]]
 +
 +[[Update 39]]
 +
 +[[Update 38]]
 +
 +[[Update 37]]
 +
 +[[Update 36]]
 +
 +[[Update 35]]
 +
 +[[Update 34]]
 +
 +[[Update 33]]
 +
 +[[Update 32]]
 +
 +[[Update 31]]
 +
 +[[Update 30]]
 +
 +[[Update 29]]
 +
 +[[Update 28]]
 +
 +
 +====== Multidomain Update ======
 +
 +You can create a file with all your domains
 +
 +  cd /path_to_domain/scj/admin; env HTTP_HOST=yourdomain.com php update.php 
 +  cd /path_to_domain2/scj/admin; env HTTP_HOST=yourdomain2.com php update.php 
 +  
 +and so on and run it in SSH
 +  
 +  sh update.sh
 +  
 +
 +This way you can update all domains at once.
 +
 +Note: update script doesn't overwrite index.php or any other files at the root of your domain. So you have to copy index.php (if you use it). If you don't want to do it each time you have 2 options:
 +  - add to update.sh something like "cp ../cgi/index.php  ../../index.php "
 +  - or create a symlink to original scj/cgi/index.php
 +
 +====== Update rollback ======
 +
 +There's no built-in update rollback. The only chance is if you have created backup. Note, if you just restored mysql db - it won't help caz you still have the same files.
updates.txt · Last modified: 2017/04/14 12:05 (external edit)