1 | How to Update OpenPNE3.1 |
---|
2 | ======================== |
---|
3 | |
---|
4 | Getting Started |
---|
5 | --------------- |
---|
6 | |
---|
7 | This document is for updating OpenPNE 3.1.x to OpenPNE 3.1.y. |
---|
8 | |
---|
9 | This document is for OpenPNE 3.1 so the way for other version may be changed. |
---|
10 | |
---|
11 | You should backup database before your updating. |
---|
12 | |
---|
13 | Plan |
---|
14 | ---- |
---|
15 | |
---|
16 | The updating plan is the following: |
---|
17 | |
---|
18 | (1) Setting files |
---|
19 | (2) Update the configuration file |
---|
20 | (3) Execute the updating command |
---|
21 | |
---|
22 | The Way to Work |
---|
23 | --------------- |
---|
24 | |
---|
25 | Setting Files |
---|
26 | ~~~~~~~~~~~~~ |
---|
27 | |
---|
28 | Set the OpenPNE 3.1 files to your web server. |
---|
29 | |
---|
30 | You must change the files from the old to avoid troubles by mixing the new with the old. |
---|
31 | |
---|
32 | Update the configuration file |
---|
33 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
34 | |
---|
35 | Copy config/ProjectConfiguration.class.php.sample to config/ProjectConfiguration.class.php. |
---|
36 | |
---|
37 | If you write your original configuration to your old config/ProjectConfiguration.class.php, you should change the new file. |
---|
38 | |
---|
39 | And copy the old config/database.yml to new config/database.yml. |
---|
40 | |
---|
41 | Copy the Plugin Directory |
---|
42 | ~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
43 | |
---|
44 | Copy the contents in old plugins. |
---|
45 | |
---|
46 | :: |
---|
47 | |
---|
48 | $ cp -aur /path/to/old/OpenPNE3/plugins/* /path/to/new/OpenPNE3/plugins |
---|
49 | $ cp -aur /path/to/old/OpenPNE3/plugins/.* /path/to/new/OpenPNE3/plugins |
---|
50 | |
---|
51 | Re-build Models |
---|
52 | ~~~~~~~~~~~~~~~ |
---|
53 | |
---|
54 | Execute the following command in the project root directory. |
---|
55 | |
---|
56 | :: |
---|
57 | |
---|
58 | $ ./symfony doctrine:build-model |
---|
59 | $ ./symfony cc |
---|
60 | |
---|
61 | Execute the Updating Command |
---|
62 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
63 | |
---|
64 | Execute the following command in the project root directory. |
---|
65 | |
---|
66 | :: |
---|
67 | |
---|
68 | $ ./symfony openpne:migrate |
---|
69 | |
---|
70 | This command will update OpenPNE and plugins to newer version. |
---|
71 | |
---|
72 | Now, updating has been done. |
---|