You may have a repeat gastroscopy after 4 to 6 weeks to check that the ulcer has healed. There aren't any special lifestyle measures you need to take during treatment, but avoiding stress, alcohol, spicy foods and smoking may reduce your symptoms while your ulcer heals.