80 | | Although it's usually good to get security updates for the operating system and applications, updating may lead to incompatibilities with other software, and has been known to render the system unusable. So do the following only if you know there is a security issue, and not when you're in the middle of something critical.[[br]] |
| 80 | === File locations === |
| 81 | Web2py is located in /home/web2py. Eden is located in /home/web2py/applications/eden. Eclipse and PyDev are preconfigured with this information. |
| 82 | |
| 83 | === Updating Web2py, Eden, and the operating system === |
| 84 | /usr/local/bin contains three helpful scripts. To run them, start a terminal window and enter the commands below. They are in the path, so may be executed from any working directory. |
| 85 | |
| 86 | ==== Update web2py ==== |
| 87 | On occasion, the latest revision of Web2py is not stable. Check the topic in the #sahana-eden IRC channel on freenode for the latest known-safe revision. |
| 88 | To update Web2py to the latest revision: |
| 89 | {{{ |
| 90 | update_web2py |
| 91 | }}} |
| 92 | To update to a specific revision, do the following with nnnn replaced by the revision you want. |
| 93 | {{{ |
| 94 | update_web2py nnnn |
| 95 | }}} |
| 96 | |
| 97 | ==== Update Eden ==== |
| 98 | You will almost certainly want the latest revision of Eden. |
| 99 | {{{ |
| 100 | update_eden # updates Eden to current revision |
| 101 | }}} |
| 102 | If, for some reason, you need a specific revision, do the following with nnnn replaced by the revision you want: |
| 103 | {{{ |
| 104 | update_eden nnnn # updates Eden to revision nnnn |
| 105 | }}} |
| 106 | |
| 107 | ==== Optionally update the operating system ==== |
| 108 | Although it's usually good advice to update the operating system and applications to pick up security fixes, updating may lead to incompatibilities with other software, and has been known to render the system unusable. So do the following only if you know there is a security issue, and not when you're in the middle of something critical.[[br]] |
87 | | === File locations === |
88 | | Web2py is located in /home/web2py. Eden is located in /home/web2py/applications/eden. Eclipse and PyDev are preconfigured with this information. |
89 | | |
90 | | === Scripts === |
91 | | /usr/local/bin contains three helpful scripts. To run them, start a terminal window and enter the commands below. They are in all users' paths, so may be executed from any working directory. |
92 | | ==== Update web2py ==== |
93 | | Enter the command with or without a revision number, as demonstrated below: |
94 | | {{{ |
95 | | update_web2py 2717 # updates web2py to revision 2717 |
96 | | update_web2py # updates web2py to current revision |
97 | | }}} |
98 | | ==== Update Eden ==== |
99 | | {{{ |
100 | | update_eden 1560 # updates Eden to revision 1560 |
101 | | update_eden # updates Eden to current revision |
102 | | }}} |
103 | | |
104 | | ==== Web2Py shell ==== |
105 | | Launch a Web2py shell in the Eden environment (apologies for the oddly named script). |
| 115 | === Web2Py shell === |
| 116 | One can get a Python command line with the Web2py and Eden environments loaded with this script (apologies for the odd name): |