web stats
Importing code template library across multiple intances - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2017, 05:47 AM
MarkC MarkC is offline
Mirth Newb
 
Join Date: Nov 2016
Posts: 6
MarkC is on a distinguished road
Default Importing code template library across multiple intances

We use a template/standard instance of mirth to base our code templates off of and make sure everything is uniform across our multiple customer appliances. Between PROD and TEST that means when we have a new release we are importing almost 50 separate libraries. Is there anyway to automate this without having to go into each appliance 1 at a time? It would also have to redeploy all channels.
Reply With Quote
  #2  
Old 02-03-2017, 11:36 AM
cbarlow cbarlow is offline
OBX.2 Kenobi
 
Join Date: Sep 2015
Location: Missouri
Posts: 53
cbarlow is on a distinguished road
Default

If you select Settings in Mirth, the Server Task Menu has an option for Backup Config. It will backup everything in Mirth into an XML file. Then likewise, you can hit the Restore Config and you will then have an exact copy.

I use a batch job to export my Mirth configuration Weekly. That is about as close to automation that I do.

set mydate=%date:~10,4%-%date:~4,2%-%date:~7,2%

cd "C:\Program Files\Mirth Connect"

set ExportDir=C:\Mirth
set ChannelDir=C:\Mirth\%mydate%
set ConfigFile=%ExportDir%\MirthBackupConfig.config


mkdir %ChannelDir%

echo exportcfg "%ExportDir%\%mydate%-MirthBackup.xml" > %ConfigFile%

echo export * "%ChannelDir%\" >> %ConfigFile%



java -jar mirth-cli-launcher.jar -a https://localhost:8443 -u admin -p admin -s %ConfigFile% -v 0.0.0
Reply With Quote
Reply

Tags
api, code templates

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:16 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation