also, a teaspoon of apple cider vinegar(bragg's) in a glass of water will alleviate the heartburn.
And avoiding the foods that cause it, if you can pinpoint those foods...
And, if you have a problem with heartburn at night, you can elevate the head of your bed with risers. Check High on Water's "R" posts, it would be one of the earlier ones...