Project-Id-Version: Trac 0.12
Report-Msgid-Bugs-To: trac-dev@googlegroups.com
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Language-Team: en_US <trac-dev@googlegroups.com>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Changes between Version 6 and Version 7 of HowToMigrateToGit


Ignore:
Timestamp:
12/31/11 11:30:57 (8 years ago)
Author:
sebastian
Comment:

Modify for new folder structure of phTagr 2.2

Legend:

Unmodified
Added
Removed
Modified
  • HowToMigrateToGit

    v6 v7  
    99{{{ 
    1010$ cd 
    11 $ git clone git://github.com/cakephp/cakephp.git phtagr 
    12 $ cd phtagr      
    13 $ git checkout 1.3.4 -b 1.3.4 
    1411$ git clone git://github.com/xemle/phtagr.git phtagr 
    1512$ cd phtagr 
     
    1714$ git submodule update 
    1815$ cd /var/www 
    19 $ sudo mv phtagr phtagr-old 
     16$ sudo mv phtagr phtagr.old 
    2017$ sudo mv ~/phtagr . 
    2118$ cd phtagr 
    2219}}} 
    2320 
    24 Now we have the Git version in {{{/var/www/phtagr}}} and the old version in {{{/var/www/phtagr-old}}}.  
     21Now we have the Git version in {{{/var/www/phtagr}}} and the old version in {{{/var/www/phtagr.old}}}.  
    2522 
    2623= Migration = 
     
    3027{{{ 
    3128$ cd /var/www/phtagr 
    32 $ cp ../phtagr-old/app/config/core.php phtagr/config 
    33 $ cp ../phtagr-old/app/config/database.php phtagr/config 
     29$ cp ../phtagr.old/config/core.php config 
     30$ cp ../phtagr.old/config/database.php config 
    3431}}} 
    3532 
     
    3835{{{ 
    3936$ cd /var/www/phtagr 
    40 $ sudo mv ../phtagr-old/app/users/* phtagr/users 
     37$ sudo mv ../phtagr.old/users/* users 
    4138}}} 
    4239 
     
    4542{{{ 
    4643$ cd /var/www/phtagr 
    47 $ sudo cp ../phtagr-old/app/tmp/logs/* phtagr/tmp/logs 
     44$ sudo cp ../phtagr.old/tmp/logs/* phtagr/logs 
    4845}}} 
    4946 
     
    5148 
    5249{{{ 
    53 $ cd /var/www/phtagr/phtagr 
     50$ cd /var/www/phtagr 
    5451$ chown -R www-data tmp users 
    5552}}} 
    56  
    57 And database migration for uploaded files 
    58  
    59 {{{ 
    60 $ mysql -u <username> -p <database> 
    61 mysql> update files set path=replace(path, '/var/www/phtagr/app/users', '/var/www/phtagr/phtagr/users'); 
    62 mysql> quit; 
    63 }}} 
    64  
    65 '''Note:''' If you use a table prefix at your table prefix to the table ''files''. E.g. if your table prefix is 'phtagr_' than use {{{update phtagr_files set path=...}}} 
    66  
    67  
    68 At the end we adapt the redirection file in {{{/var/www/phtagr/.htaccess}}} to 
    69  
    70 {{{ 
    71 <IfModule mod_rewrite.c> 
    72     RewriteEngine on 
    73     RewriteRule ^$   phtagr/webroot/   [L] 
    74     RewriteRule (.*) phtagr/webroot/$1 [L] 
    75 </IfModule> 
    76 }}} 
    77  
    7853 
    7954Now check your straight edge gallery and call http://YOUR_SERVER/phtagr/setup to upgrade the database (if necessary). 
     
    8560{{{ 
    8661$ cd /var/www 
    87 $ sudo rm -rf phtagr-old 
     62$ sudo rm -rf phtagr.old 
    8863}}} 
    8964