https://wiki.ihris.org/mediawiki/index.php?title=Botswana_Installation_Instructions&feed=atom&action=history
Botswana Installation Instructions - Revision history
2024-03-29T01:57:58Z
Revision history for this page on the wiki
MediaWiki 1.40.1
https://wiki.ihris.org/mediawiki/index.php?title=Botswana_Installation_Instructions&diff=55601&oldid=prev
Sovello: /* Copying over the site customizations */
2019-08-21T13:25:09Z
<p><span dir="auto"><span class="autocomment">Copying over the site customizations</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 09:25, 21 August 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l27">Line 27:</td>
<td colspan="2" class="diff-lineno">Line 27:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><source lang='bash'></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><source lang='bash'></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>cd bzr_branches/production_server_customizations</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>cd bzr_branches/production_server_customizations</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>scp -r ./ <del style="font-weight: bold; text-decoration: none;">bwihris</del>@10.171.5.9:/tmp/psc_`date +"%Y-%m-%d"`</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>scp -r ./ <ins style="font-weight: bold; text-decoration: none;">$username</ins>@10.171.5.9:/tmp/psc_`date +"%Y-%m-%d"`</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></source></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></source></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This will copy the contents of the production_sever_customizations directory to a the directory "/tmp/psc_2013-02-15" if the day is February 15th, 2013.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This will copy the contents of the production_sever_customizations directory to a the directory "/tmp/psc_2013-02-15" if the day is February 15th, 2013.</div></td></tr>
</table>
Sovello
https://wiki.ihris.org/mediawiki/index.php?title=Botswana_Installation_Instructions&diff=55600&oldid=prev
Sovello: /* Live/Production Server Details */
2019-08-21T13:24:44Z
<p><span dir="auto"><span class="autocomment">Live/Production Server Details</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 09:24, 21 August 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l14">Line 14:</td>
<td colspan="2" class="diff-lineno">Line 14:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==Live/Production Server Details==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==Live/Production Server Details==</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*IP Address: 10.171.5.9</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*IP Address: 10.171.5.9</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*Username: <del style="font-weight: bold; text-decoration: none;">bwihris</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*Username: <ins style="font-weight: bold; text-decoration: none;">$username</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*Production Database:<del style="font-weight: bold; text-decoration: none;">BWManage_Prod_Feb_14_2013</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*Production Database:<ins style="font-weight: bold; text-decoration: none;">$BWManage_Prod</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Current iHRIS base Library: /var/lib/iHRIS/lib/4.1-dev (last updated Feb 14th, 2013)</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Current iHRIS base Library: /var/lib/iHRIS/lib/4.1-dev (last updated Feb 14th, 2013)</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Site customization directory: /var/lib/iHRIS/sites/botswana_feb_11_2013</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Site customization directory: /var/lib/iHRIS/sites/botswana_feb_11_2013</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Site config file: /var/lib/iHRIS/sites/botswana_feb_11_2013/pages/local/config.values.php</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Site config file: /var/lib/iHRIS/sites/botswana_feb_11_2013/pages/local/config.values.php</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*WWW path: There is a link /var/www/ihris -> /var/lib/iHRIS/sites/<del style="font-weight: bold; text-decoration: none;">botswana_feb_11_2013</del>/pages/</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*WWW path: There is a link /var/www/ihris -> /var/lib/iHRIS/sites/<ins style="font-weight: bold; text-decoration: none;">botswana_feb</ins>/pages/</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==Updating the Server==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==Updating the Server==</div></td></tr>
</table>
Sovello
https://wiki.ihris.org/mediawiki/index.php?title=Botswana_Installation_Instructions&diff=55599&oldid=prev
Sovello: /* DropBox Folder */
2019-08-21T13:23:49Z
<p><span dir="auto"><span class="autocomment">DropBox Folder</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 09:23, 21 August 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l5">Line 5:</td>
<td colspan="2" class="diff-lineno">Line 5:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></source></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></source></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==DropBox Folder==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==DropBox Folder==</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">Because port 22 is closed at the Ministry of Health, the </del>source code from bazaar is copied over to the "bzr_branches" <del style="font-weight: bold; text-decoration: none;">dropbox </del>folder. In this folder there are several sub-folders:</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">The </ins>source code from bazaar is copied over to the "bzr_branches" folder. In this folder there are several sub-folders:</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*botswana-4.1.3 The folder Carl uses for testing and development</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*botswana-4.1.3 The folder Carl uses for testing and development</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*sovellobw_4.1 The folder <del style="font-weight: bold; text-decoration: none;">Sovello uses </del>for testing and development</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*sovellobw_4.1 The folder <ins style="font-weight: bold; text-decoration: none;">used </ins>for testing and development</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*production_server_customizations These are the customizations that we copy over to the main server and used for production. The files directory should never be edited. Instead you should do a bzr pull. Any error messages or warnings need to be resolved before updating the server</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*production_server_customizations These are the customizations that we copy over to the main server and used for production. The files directory should never be edited. Instead you should do a bzr pull. Any error messages or warnings need to be resolved before updating the server</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>**If you are working outside the MOH you can do "bzr pull lp:ihris-botswana"</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>**If you are working outside the MOH you can do "bzr pull lp:ihris-botswana"</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>**If you are making customizations while in the MOH then you want to pull from the sub-directory of bzr_branches where those customizations are. For example "bzr pull ../sovellobw_4_1". <del style="font-weight: bold; text-decoration: none;"> </del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>**If you are making customizations while in the MOH then you want to pull from the sub-directory of bzr_branches where those customizations are. For example "bzr pull ../sovellobw_4_1".</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==Live/Production Server Details==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>==Live/Production Server Details==</div></td></tr>
</table>
Sovello
https://wiki.ihris.org/mediawiki/index.php?title=Botswana_Installation_Instructions&diff=49464&oldid=prev
Sturlington at 15:40, 17 July 2013
2013-07-17T15:40:38Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:40, 17 July 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l56">Line 56:</td>
<td colspan="2" class="diff-lineno">Line 56:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>===Starting server update===</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>===Starting server update===</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>You can update the site by browsing to http://10.171.5.9/ihris</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>You can update the site by browsing to http://10.171.5.9/ihris</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Botswana]]</ins></div></td></tr>
</table>
Sturlington
https://wiki.ihris.org/mediawiki/index.php?title=Botswana_Installation_Instructions&diff=46825&oldid=prev
Litlfred: Created page with "==Bazaar== The bazaar branch for the Botswana instructions are located [https://code.launchpad.net/~ihris+botswana/ihris-botswana/4.1 here] and can be obtained by <source lang='b..."
2013-02-14T11:19:40Z
<p>Created page with "==Bazaar== The bazaar branch for the Botswana instructions are located [https://code.launchpad.net/~ihris+botswana/ihris-botswana/4.1 here] and can be obtained by <source lang='b..."</p>
<p><b>New page</b></p><div>==Bazaar==<br />
The bazaar branch for the Botswana instructions are located [https://code.launchpad.net/~ihris+botswana/ihris-botswana/4.1 here] and can be obtained by<br />
<source lang='bash'><br />
bzr branch lp:ihris-botswana<br />
</source><br />
==DropBox Folder==<br />
Because port 22 is closed at the Ministry of Health, the source code from bazaar is copied over to the "bzr_branches" dropbox folder. In this folder there are several sub-folders:<br />
*botswana-4.1.3 The folder Carl uses for testing and development<br />
*sovellobw_4.1 The folder Sovello uses for testing and development<br />
*production_server_customizations These are the customizations that we copy over to the main server and used for production. The files directory should never be edited. Instead you should do a bzr pull. Any error messages or warnings need to be resolved before updating the server<br />
**If you are working outside the MOH you can do "bzr pull lp:ihris-botswana"<br />
**If you are making customizations while in the MOH then you want to pull from the sub-directory of bzr_branches where those customizations are. For example "bzr pull ../sovellobw_4_1". <br />
<br />
<br />
==Live/Production Server Details==<br />
*IP Address: 10.171.5.9<br />
*Username: bwihris<br />
*Production Database:BWManage_Prod_Feb_14_2013<br />
*Current iHRIS base Library: /var/lib/iHRIS/lib/4.1-dev (last updated Feb 14th, 2013)<br />
*Site customization directory: /var/lib/iHRIS/sites/botswana_feb_11_2013<br />
*Site config file: /var/lib/iHRIS/sites/botswana_feb_11_2013/pages/local/config.values.php<br />
*WWW path: There is a link /var/www/ihris -> /var/lib/iHRIS/sites/botswana_feb_11_2013/pages/<br />
<br />
==Updating the Server==<br />
The server should only be updated after hours.<br />
===Copying over the site customizations===<br />
When you are on your computer (not the server) you can copy them over by:<br />
<source lang='bash'><br />
cd bzr_branches/production_server_customizations<br />
scp -r ./ bwihris@10.171.5.9:/tmp/psc_`date +"%Y-%m-%d"`<br />
</source><br />
This will copy the contents of the production_sever_customizations directory to a the directory "/tmp/psc_2013-02-15" if the day is February 15th, 2013.<br />
<br />
===Manual Backup===<br />
Before updating the live server you should make a database backup:<br />
<source lang='bash'><br />
ssh -l bwihris 10.171.5.9<br />
mysqldump -u root -p BWManage_Prod_Feb_14_2013 | bzip2 -9 > backup_`date +"%Y-%m-%d"`.sql.bz2<br />
</source><br />
which will create a file called "backup_2013-02-15.sql.bz2" if the day is February 15th, 2013.<br />
<br />
===Pulling in the Customizations===<br />
We only copied the customizations from the bzr_branches directory to a temporary directory like "/tmp/psc_2013-02-15". Now we need to pull them into the production server's site directory. On the server you can do this by:<br />
<source lang='bash'><br />
cd /var/lib/iHRIS/sites/botswana_feb_11_2013/<br />
bzr pull /tmp/psc_`date +"%Y-%m-%d"`<br />
</source><br />
You should see a message such as:<br />
<pre><br />
M templates/lists.html<br />
M templates/view.html<br />
All changes applied successfully.<br />
Now on revision 43.<br />
</pre><br />
<br />
===Starting server update===<br />
You can update the site by browsing to http://10.171.5.9/ihris</div>
Litlfred