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
ssh
path cd [projectname]
i.e.cd provalliance
git pull
for new changesyarn
to install packages (if needed)yarn build:customization
to 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
ssh
path pm2 kill
pm2 start ecosystem.config.js && pm2 save
to 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
ssh
path cd public_html
and rungit pull
to get the latest changesyarn
to 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 all
to restart the frontend exit