To Make a new dingo-lorawan-server zip file for installation: ============================================================= A) Prepare Database -------------------- 1. Make sure the IJ project database file is closed (no dingo-lorawan-server.db-shm nor dingo-lorawan-server.db-wal file exist) 2. Copy the dingo-lorawan-server.db file to C:\data\DINGO-Lorawan\ 3. OPen that copied database file in Navicat and run those two commands: DELETE FROM device; DELETE FROM profile WHERE id_parent <> id_profile AND id_parent IS NOT NULL; DELETE FROM gateway; VACUUM; 4. Disconnect Navicat from the database and again assure the database is fully closed (as in 1. above) B) Push IJ project ------------------ 1. Set version number in dingo-lorawan-server.js to a correct value. 2. Commit and push last release of dingo-lorawan-server project from IJ C) Obfusecate, zip and upload to server --------------------------------------- 1. SSH to FreshBuster DINGO @ Trevors office. cd /opt ./make-dingo-lorawan-server.sh [yes] [wingo7562] The above script will take the latest release from Bitbucket, remove stuff not needed and obfucscate files as needed. Then it zips everything into a file ~/dingo-lorawan-server-1.0.0.zip 2. Use FileZilla to move the result zip file from the FreshBuster Dingo to C:\data\DINGO-Lorawan\dingo-lorawan-server-1.0.0.zip 3. Open the zip file and replace the database-file in dingo-lorawan-server-db by the one created in step A3 above. 4. Replace (or add if missing) folder C:\Users\Notandi\IdeaProjects\dingo-lorawan-server\node_modules to zip-folder /dingo-lorawan-server/ 5. Open file server.json and set host to "0.0.0.0" or "127.0.0.1", log-level to 2 and host_by_hostname if needed .. and save back to zip file. [6. Remove file bacnet-license-crawler.js if exist in the root.] [7. Remove file "license-internal.txt" from the root in the zip file....it should not be there.] [8. Add file C:\data\DINGO-Lorawan\mclimate_vicki_ul_old.js to zip-folder /dingo-lorawan-server/decoders/mclimate/vicki 9. Copy 'C:\data\DINGO-Lorawan\dingo-lorawan-server-1.0.0.zip' to the .198 server at advania at this location: C:\inetpub\wwwroot\apt\lorawan Remember to take a backup of the one that is there before. 10.If needed to change install script "C:\inetpub\wwwroot\apt\install-dingo-lorawan-server open it in notepad at the server, then open an empy file on your dev. machinc in Notepad++ copy/paste from server file (in notepad) to Notepad++ empty file. Select QED