Custom installation under Plesk CentOS - HeavyDots/heavyCMS GitHub Wiki

Create subdomains

  • dev-web.heavydots.com (frontend)
  • dev-admin.heavydots.com (backend)

Clone repo

  • Go to the directory of the first subdomain
  • Remove all files inside this directory
  • (Add ssh keys if required previously)
  • Clone the repo inside of it with SSH user of domain
  • That will create a new folder inside of it that we will need to rename / move
  • Rename /var/www/vhosts/heavydots.com/dev-web.heavydots.com to /var/www/vhosts/heavydots.com/dev-web.heavydots.com_old
  • Rename /var/www/vhosts/heavydots.com/dev-web.heavydots.com_old/hdweb-yii2 to /var/www/vhosts/heavydots.com/dev-web.heavydots.com
  • Switch to root privileges and change ownership as this: chown heavydots:psaserv dev-web.heavydots.com
  • Edit subdomains settings and set those as root folders:
    • For dev-web.heavydots.com SET dev-web.heavydots.com/frontend/web
    • For dev-admin.heavydots.com SET dev-web.heavydots.com/backend/web