I dosn’t matter if you run out of food. Troops stay alive. You need food to build so hit camps when you log in and don’t worry if you run out while you’re logged out.
Or just attack Camps around you, or other players to gain enough food to again be able to train troops or build building…putting aside this week for no troop consumption, I have a -3/4mil food production, but I’m still growing!