 During the German occupation of Norway, he fled the country and worked with its government in exile.After the war, he returned to the education ministry until his retirement.Devik was born in Gjerdrum to headmaster Ole Gabriel Johnsen Devik (1856–1941) and his wife Marthe Klausdatter Lønnebotn (1857–1929).