It is currently 28 Jun 2017, 13:27



Diffrent configurations for one server

CasparCG Server, Client and development

Moderators: Macey, Jonas Hummelstrand, didikunz

Diffrent configurations for one server

Postby markusnygard » 03 Jan 2017, 20:07

Hi
I have had a problem that I need to use on the same Server different configuration on some occations. My first way of doing this was to have different versions of servers but I think that takes to much space on the harddisk so I came up with the following solution:
created a folder called "_config" and created different subfolders for each configuration. In each subfolder there is the casparcg.config-file. I created a windows batch-file that copies the config-file to the server-folder and after that starts the server.
Code: Select all
@ECHO OFF
xcopy /y "D:\_configs\standard\casparcg.config" "C:\CasparCG\Server\casparcg.config"
START /d "C:\CasparCG\Server" casparcg_frontend.exe

I know this is just basic computing, but hope that someone find this usefull.

a Happy new year
Markus
markusnygard
 
Posts: 64
Joined: 07 Mar 2013, 18:32
Location: Helsinki / Finland

Re: Diffrent configurations for one server

Postby didikunz » 03 Jan 2017, 20:37

AFAIK you can have multiple config files (with different names) and can add the name in the comandline, while starting Caspar. I never tried, but it should work that way. So you would have multiple batch files (or you could build shortcuts on your desktop) without copying files around.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3480
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Diffrent configurations for one server

Postby markusnygard » 03 Jan 2017, 21:42

Hi
sounds like a better solution.
I think I saw in some tutorial video that either Jonas or Olle (cant now remember in which video) had done multiple configurations.
Could anyone post an example of such a batch/shortcut file here?
But since I prefer having the frontend I think it wont work for me, and I dont think coping the config-file is a critical issue since you can have the batch-file as a desktop-shortcut and it both do the copy and starts the server, so a normal user doesn't even know that there has been any copying, and then you have in windows startup-folder a batch-file for your "standard configuration".

br
markus
markusnygard
 
Posts: 64
Joined: 07 Mar 2013, 18:32
Location: Helsinki / Finland

Re: Diffrent configurations for one server

Postby drakmor » 08 Jan 2017, 11:55

Code: Select all
casrapcg.exe config_file_name.config
drakmor
 
Posts: 16
Joined: 13 Mar 2016, 16:49
Location: Kazan / Russia

Re: Diffrent configurations for one server

Postby markusnygard » 09 Jan 2017, 11:18

Thanks
br markus
markusnygard
 
Posts: 64
Joined: 07 Mar 2013, 18:32
Location: Helsinki / Finland


Return to Tech and Development

Who is online

Users browsing this forum: ASmith3006 and 9 guests