
***********************


1) SET VERSION

SET app.api RFVERSION property
RENAME ?rfv=6.16 parameter in default.htm to the new version so all files update on mobile 

1.5) Run buildtemplates.bat if handlebars templates have changed at all

2) PUBLISH
publish command line from rockfishCore folder:

//this will build a runtime dependant version which is what we use on the server now (.net is installed globally at the server so no need to deploy it)
dotnet publish -c Release -o ./../publish/ --no-self-contained -r linux-x64


2.5) Runtime - make sure if runtime changed that server has latest

2.7) in rockfish.last to remove **ALL** files and folders!! DANGER: /srv/coreapps/rockfish.last# rm * -r

2.71) STOP rockfish service 


systemctl stop kestrel-rockfish.service

2.8) BACKUP backup old version and db etc with this command:

in rockfish.last to copy over all current rockfish files and folders:
root@ubuntu-s-1vcpu-1gb-amd-sfo3-01:/srv/coreapps/rockfish.last# cp -a ../rockfish/. .


2.9) delete all in rockfish folder except db folder AND ** JSON CONFIG FILES **

If it won't start it's likely the .json config files are not present, copy back from rockfish.last

3) COPY
Copy over to production server, safest is all files from publish into /srv/coreapps/rockfish

SKIP json files 

.NET Core apps: /srv/coreapps
only need the .dll and the wwwroot folder contents, 
remember not to delete the folders on the server only replace their contents because there are file permissions set
Backup the database

4) Delete any test data local here


Restart the service on the server:
systemctl status kestrel-rockfish.service
systemctl start kestrel-rockfish.service
systemctl stop kestrel-rockfish.service