Function enableNginxSite

  • Enables a Nginx site by symlinking to it from /etc/nginx/sites-enabled.

    This will likely require sudo permissions if run with the default nginx dir (/etc/nginx/).

    Parameters

    • siteName: string
    • nginxDirPath: string = defaultNginxDirPath

    Returns Promise<boolean>