Perhaps find a non-developer cofounder, who has complementary skills to yours, and who is a bit more obsessive about making just one business work. Find an idea that interests you both enough to stick at it.
I co-founded with someone in part because I admired his tenacity, and that helped keep me focused. We also co-founded with two others that had other complementary skills to us (four founders with a successful result is uncommon). We had worked together so we had some ideas of each others morals, strengths, and weaknesses. We just did a boring miniscule B2B sector, but we had worked on parts of it together before at our job, so risk was relatively low.