DEV Community

Discussion on: It's 5:47 pm on a Friday and I'm deploying to production. Ask me anything

Collapse
 
ryanrousseau profile image
Ryan Rousseau

What do your deployments look like (apps, tools, process, etc)?

Collapse
 
mjsarfatti profile image
Manuele J Sarfatti • Edited

It’s a monorepo Laravel/React app, hosted on ploi.io.

Here is my process, but important disclaimer: it’s far from optimised and it works only because I’m the only developer and the app is fairly straightforward. Don’t do this at home:

  1. I yarn build the React app, and commit the build files to the repo
  2. Merge the feature branch I’d been working on into master, manually deploy to a staging server for one final manual round of tests
  3. Push the master branch to GitLab
  4. From the ploi.io control panel hit the “Deploy Now” button, which runs a script that pulls from GitLab, copies files to the server root and runs a few Laravel scripts to purge the cache etc.

90% of this could (and maybe should) be automated and CI’d, but I deploy maybe once a month so I haven’t bothered yet. It’s manual but it still takes like 3 minutes total.

In this particular case I deployed a feature that simply reads and displays data, so I wasn’t risking catastrophical effects.