Deployment Services
Netlify
Netlify is an all-in-one platform for automating modern web projects.
Usually the master
branch of a git repo will be directly connected to the production
deploy on netlify. So after code review when you merge your feature
branch into master
an automatic build will be triggered and sent to production.
A netlify site can have any number of branch deploys as well, the most common ones you will see are development
and staging
branch - which may vary from project to project.
These deploy branches will have their own custom urls and will not affect the production branch.
When you push your changes to the staging
or development
branch these will trigger builds for the branch deploys associated them.
Gitworks
Gitworks is like a wrapper for our oldest review and production servers. Gitworks allows us to shell into those servers and perform git functionality.
Deploying through Gitworks
In your terminal:
ssh wlion@gitworks1.wlion.com
When prompted enter the password found in the Passport.
pwd # To show the present working directory
Then navigate from the root.
review
branches:
cd /var/www/vhosts-web5
production
branches:
cd /var/www/vhost
Run ls
or ls
and you shoud see a collection of white lion repo. cd
into the directory. You may have to do some investigating, but for older projects you might want to look in the httpdocs
for the actual root directory of the project. Once you're in the root:
git fetch
TIP
You make need to change your identity in the server to fetch the remote su <username>
(see client passport).
Then checkout the latest tag from master
branch.
git checkout tags/2021.05.12.01 # Example tag following time/version format
You may have to resolve merge conflicts using the cli, or just --force
the checkout but that isn't recommended as first option.
Deploybot
Similar to Netlify. Currently PERC a.k.a. propane.com is run through this service.
Changes to the development
branch in git repo will trigger builds for percdev.wpengine.com
for internal/external review.
After merging feature
branch code into master. The staging deploy automatically begins to build. However in order to build for production deploy you must manual trigger the build from perc.deploybot.com
.
Credentials can be found in the PERC Passport.
Circle CI
Circle CI provides many of the same features as Netlify only that you have the ability to self-host your website and not rely on Netlify hosting.