Update Readme with Deployment information.

This commit is contained in:
2025-06-15 11:10:11 -04:00
parent 2a61f421a2
commit 1bc009842e

View File

@@ -1,3 +1,37 @@
# Deployment Notes
1) Deploying MarketData
a) Stop the cron sevice. sudo service cron stop
b) Check that MarketData is not running any tasks... ps xa | grep MarketData. mks might be running but that should be all
b) Open Folder ARM64 and do dotnet clean followed by dotnet build
c) Locate the build files in /home/pi/ARM64/MarketData/MarketData/bin/Debug/net8.0
d) Dackup the /opt/MarketData/MarketData files into /opt/MarketData/MarketData_Rollback
e) Delete all but the logs folder from the /opt/MarketData/MarketData folder
f) Copy files from /home/pi/ARM64/MarketData/MarketData/bin/Debug/net8.0 into /opt/MarketData/MarketData
g) Restart cron service.. sudo service cron restart
h) Ensure that cron is running sudo service cron status
2) Deploying MarketDataService
a) Disable the service sudo systemctl disable mks
b) Stop the service. sudo systemctl stop mks This might take 30 seconds
c) Copy all files from /opt/MarketData/MarketDataServer to /opt/MarketData/MarketDataServer_Rollback
d) Delete all but the logs folder from /opt/MarketData/MarketDataServer
e) Copy files from /home/pi/ARM64/MarketDataServer/bin/Debug/net8.0 into /opt/MarketData/MarketDataServer
f) Enable the service sudo systemctl enable mks
g) Start the service sudo systemctl restart mks
h) Ensure that the service running systemctl status mks
3) Deploying IPMonitor
a) Stop the cron service. sudo service cron stop
b) Check that IPMonitor is not running. ps xa | grep ipmonitor notes: crontab -e shows the process in lower case
c) Delete all but the ipaddress and logs folders from /opt/MarketData/IPMonitor
d) Copy files from /home/pi/ARM64/IPMonitor/bin/Debug/net8.0 into /opt/MarketData/IPMonitor
e) Restart the cron service. sudo service cron restart
f) Ensure that cron cron is running sudo service cron status
# ARM64 Version of MarketData Feeds designed to run on Raspbian system on a PI 5 16G RAM, 256Gig U30 SD Card.
TO-DO