If you work rotating shifts, begin to adjust your schedule before you move to the new shift. Shift 1 to 2 hours per day in order to ease into your new schedule. During your sleep time do as much as you can to keep external stimuli from disrupting you. Maintain good sleep hygiene. Avoid heavy, spicy or hard to digest foods when eating on the nightshift.
Digestive secretions follow a day-night pattern.
When you eat at night you are ingesting food at a time when your stomach isn't ready to digest it. This helps to explain why shiftworkers tend to have more peptic ulcers than non-shiftworkers. Keep the work area as brightly lit as possible. This will help you adapt better and improve your sleep and also increase productivity. Try to avoid exposure to morning sunlight on the way home from work.