1. Home
  2. Docs
  3. Smarty Lite
  4. Instructions for updating
  5. Updating the portal

Updating the portal

Creation of a backup copy

Before updating, you need to make a copy of old engine versions and templates!

There are two ways to back up current engine versions and templates: team or on your own. Below is an instruction on how to do it yourself.

To create a copy of the old versions of the packages, you need to go to /usr/share/nginx/html/microimpuls and make a copy of the folder portal.

After creating a copy, you need to download the packages mw-engine and mw-template necessary versions that can be obtained in private-room.

Note

If Microimpuls has not instructed that only a specific package should be updated, it is always necessary to update both engine and template packages by default, otherwise compatibility issues may occur.

Further downloaded packages must be installed:

dpkg -i mw-engine*.debdpkg -i mw-template*.deb

After successful installation, you need to restart nginx:

/etc/init.d/nginx reload

Major errors

Incorrect client.js configuration

If you miss a sign or put a variable incorrectly, the portal may not start.

Correction

You need to check the file for Javascript syntax errors, the fastest way to do this is by opening the portal in the browser. If the problem is really in the client.js file, then all errors will be displayed in the Console tab of the developer tools.