All 1,700 residents were evacuated when a train carrying propane derailed and caught fire.