Skip to content

Multidomain / shared codebase deployment

The shared codebase is a project structure that allows multiple projects to share the same codebase. This is useful for projects that have similar requirements and can benefit from a common set of components and functionality. Examples of these projects are Reesink, Napa multidomain and Provalliance Multidomain.

When in doubt, check the `history` of a server with the command `history`.
  1. Go to Rootnet and search for the project, look for: ProjectName + Shared
  2. Copy the ssh path
  3. cd [projectname] i.e. cd provalliance
  4. git pull for new changes
  5. yarn to install packages (if needed)
  6. yarn build:customization to build cms
  7. exit
  1. Go to the Rootnet project for the specific CMS . e.g. go to CMS Napa France
  2. Copy ssh path
  3. pm2 kill
  4. pm2 start ecosystem.config.js && pm2 save to start the CMS
  5. exit
  1. Go to the Rootnet project for the shared frontend. e.g. Provalliance webhook
  2. Copy ssh path
  3. cd public_html and run git pull to get the latest changes
  4. yarn to install packages (if needed)
  5. Build the frontend with yarn build:web
  6. Restart the server with supervisor commannd i.e. supervisorctl -c /etc/projects/supervisor/[PROJECT_NAME].conf restart all to restart the frontend
  7. exit