Use Ruby's File.expand_path to resolve relative paths in the LOG_FOLDER. For example,

    LOG_FOLDER="__DOCUMENT_ROOT__/../logs"