Keep your Mac awake
Keep your Mac awake via the Amphetamine app
Prevent your computer from going to sleep