Difference between revisions of "How To Update a BOARD18 WEB Site"

From BOARD18 Project WIKI
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:


==How to update an existing BOARD18 web site using Linux==
==How to update an existing BOARD18 web site using Linux==
===Method 1 For Small Changes===
<span style="color: Green">There is a shell script in the utility directory which should be used
1. Upload the relevant BOARD18 zip file to the server root directory.
for Board18 WEB Site Updates.</span>
 
2. Uncompress the zip file.
<pre> 
[myserver]$ unzip board18-x.x.x.zip
</pre>


3. Move to the webroot directory of the uncompressed file.
This script, called BOARD18update, will completely update all the pages, scripts, styles
<pre>
and PHP functions of a board18 web site. And it will first create a backup of the site.
[myserver]$ cd board18-x.x.x/webroot
</pre>
 
4. As you can see the directory structure of webroot is identical to the website.
<pre>
[myserver]$ ls ~/demo2.board18.org
access-denied.html  board18Map.php    board18New.php favicon.ico  php
board18Admin.php    board18Market.php  board18View.php images     scripts
board18Main.php    board18Misc.php    favicon.gif index.html  style
[myserver]$ ls
access-denied.html  board18Map.php    board18New.php images     scripts
board18Admin.php    board18Market.php  board18View.php index.html  style
board18Main.php    board18Misc.php    favicon.ico php
</pre>
 
5. Now we will copy just the changed files to the website.
<pre>
[myserver]$ cp -r -u -v * ~/demo2.board18.org
`board18Map.php' -> `/home/priceweb/demo2.board18.org/board18Map.php'
`scripts/board18Map1.js' -> `/home/priceweb/demo2.board18.org/scripts/board18Map1.js'
`scripts/board18Map2.js' -> `/home/priceweb/demo2.board18.org/scripts/board18Map2.js'
`style/board18Map.css' -> `/home/priceweb/demo2.board18.org/style/board18Map.css'
</pre>
Replace '''~/demo2.board18.org''' in the above examples with the path to your website's root directory.
 
6. Test the updated web site.
 
===Method 2 For Large Changes===
<span style="color: Green">There is a shell script in the utility directory which can be used for large changes.</span>
 
This script, called BOARD18update, will completely update all the pages and scripts of a board18 web site. And it will first create a backup of the site.
   
   
Perform the following steps for Method 2:
Perform the following steps to make an update:


1. Upload the relevant BOARD18 zip file to the server root directory.
1. Upload the relevant BOARD18 zip file to the server root directory.
Line 58: Line 22:
</pre>
</pre>


4. Make sure that the BOARD18update and control.sh files in this utility directory contain the following comment:
4. Before running the script, you must edit the control.sh file which is also found in the utility directory.<br>
<pre>
# This is version 4 of this script.
</pre>
If this is not true then replace these files with the ones in the board18-x.x.x/utility directory that you just unziped.
 
5. Before running the script, you must edit the control.sh file which is also found in the utility directory.<br>
<span style="color: Fuchsia">The three directory paths in control.sh must be correct or the web site being updated could be damaged.</span>
<span style="color: Fuchsia">The three directory paths in control.sh must be correct or the web site being updated could be damaged.</span>
<pre>
<pre>
Line 70: Line 28:
</pre>
</pre>


6. Run the script.
5. Run the script.
<pre>   
<pre>   
[myserver]$ ./BOARD18update  
[myserver]$ ./BOARD18update  
</pre>
</pre>


7. Test the updated web site.
6. Test the updated web site.


==How to update an existing BOARD18 web site using Windows==
==How to update an existing BOARD18 web site using Windows==

Latest revision as of 12:35, 9 August 2020

These instructions should work for any Upgrade that does not involve a database change.

How to update an existing BOARD18 web site using Linux

There is a shell script in the utility directory which should be used for Board18 WEB Site Updates.

This script, called BOARD18update, will completely update all the pages, scripts, styles and PHP functions of a board18 web site. And it will first create a backup of the site.

Perform the following steps to make an update:

1. Upload the relevant BOARD18 zip file to the server root directory.

2. Uncompress the zip file.

  
[myserver]$ unzip board18-x.x.x.zip

3. Move to the existing utility directory.

[myserver]$ cd utility

4. Before running the script, you must edit the control.sh file which is also found in the utility directory.
The three directory paths in control.sh must be correct or the web site being updated could be damaged.

[myserver]$ pico control.sh

5. Run the script.

  
[myserver]$ ./BOARD18update 

6. Test the updated web site.

How to update an existing BOARD18 web site using Windows

If you have a Windows environment please modify the above Linux instructions, test them and then enter them here.

How to update an existing BOARD18 web site using a MAC

If you have a MAC environment please modify the above Linux instructions, test them and then enter them here.