Skip to content

Update Server code

Lorenzo Bruni edited this page Jul 6, 2022 · 8 revisions

Home / Update / Server Code

How to update the Server Code to the Latest Release.

N.B. Before doing any update, it is recommended that you take a backup of your code and data.

Updating the Server Code is very straight forward but you must first ensure that your configuration and customisations are retained. Compare the following files and merge any differences against the new downloaded code.

Dynamic Configuration.

  • \server\PxStat\Resources\Config\config.global.json.
  • \server\PxStat\Resources\Config\config.server.json.

Static Configuration.

  • \server\PxStat\Static.config.

Firebase Configuration.

  • \server\PxStat\Resources\FirebaseKey.json.

Web Configuration.

  • \server\PxStat\Web.config.
  • \server\PxStat\Web.Dev.config.
  • \server\PxStat\Web.Test.config.
  • \server\PxStat\Web.Live.config.

FYI, you can use the free comparison tool by TortoiseGit referenced in the Developer Tools Wiki page.

Compare the configuration files and merge any differences against the new downloaded one. Please leave in place any new entry and accept any removal.

Open the Solution \server\PxStat.sln and run Publish PxStat from the Build menu against the relevant environment (Dev, Test, Live). This will compile the code, transform the Web.config according to the relevant environment and copy all into the selected destination.

image

If any issues arise, just roll-back the environment using your backup and log an Issue describing the problem.

FYI, you can double check the Version of the Server Code by verifying the Assembly Version under the Application Properties in Visual Studio.

image

Clone this wiki locally