Multidomain / shared codebase deployment
What is it?
Section titled “What is it?”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.
How to release?
Section titled “How to release?”Shared codebase deploy
Section titled “Shared codebase deploy”- Go to Rootnet and search for the project, look for: ProjectName + Shared
- Copy the
sshpath cd [projectname]i.e.cd provalliancegit pullfor new changesyarnto install packages (if needed)yarn build:customizationto build cmsexit
Project CMS deploy
Section titled “Project CMS deploy”- Go to the Rootnet project for the specific CMS . e.g. go to CMS Napa France
- Copy
sshpath pm2 killpm2 start ecosystem.config.js && pm2 saveto start the CMSexit
Project Frontend deploy
Section titled “Project Frontend deploy”- Go to the Rootnet project for the shared frontend. e.g. Provalliance webhook
- Copy
sshpath cd public_htmland rungit pullto get the latest changesyarnto install packages (if needed)- Build the frontend with
yarn build:web - Restart the server with supervisor commannd i.e.
supervisorctl -c /etc/projects/supervisor/[PROJECT_NAME].conf restart allto restart the frontend exit