Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 875 Bytes

use_local_settings_file.md

File metadata and controls

25 lines (19 loc) · 875 Bytes

Use local settings file

  • Ensure that the _LocalSettings.gs script contains any private variable settings you need in your local copy for it to work
    • these settings have been excluded using the .gitignore so they will not be pushed up to any remote git repository, and thus remain private
    • in the case where no _LocalSettings.gs file exists, create it with this template below
    • Add any variables from SETTINGS that you want to override
      • but DO NOT include the var keyword before them!
function configure_local_settings(){
  sourceCalendars = [
    ["icsUrl1", "targetCalendar1"],
    ["icsUrl2", "targetCalendar2"],
    ["icsUrl3", "targetCalendar1"]
  ];
}

If _LocalSettings.gs is not properly ignored then prevent it from being pushed back up to remote repos using:

git update-index --assume-unchanged _LocalSettings.gs