Fixed error message for missing ENV var
Refactored variable name in createServer()