Phoenix - Seeding database from json file

At this point you should IMO just make a normal module inside your app – with an .ex file extensions – because such gymnastics with Code.require_file are brittle and you are just one dependency version away from that code breaking. But then it raises the question if you should have seeding code shipped with your production code (which I think you shouldn’t).