Docker - windows linux paths? (Solved)


hey guys,

Which smart trick do you guys use if you have to deploy your app on both windows and linux machines (via docker)?

  • I develop on windows
  • production can be windows or linux.

I already use a settings.json file with folder paths, bot other settings (with extra paths) are derived from this like

"automationBaseFolder": "C:\\Users\\Qlikexternal\\Documents\\GitHub\\QRSMeteor\\.automation"

And then I want to create sub folders for apps, extensions etc. var newFolder = Meteor.settings.private.automationBaseFolder + '\apps';

var newFolder2 = Meteor.settings.private.automationBaseFolder + '\extensions';

the issue is that linux has / and windows \




use path.join