How we deploy our website and API

published 28.06.2020 23:00

by Lewis Crichton from dev.to

With just over 60 thousand users, it is a much larger feat to actually maintain the infrastructure that goes into running the website and application.

The website is a crucial part of PreMiD.

It's the face of the application and contains all the information you'd want to know about PreMiD, and also includes the store.

Here's the steps: We SSH into the three servers that handle the website and API We cd into the directory that has the guts of the website Run a git reset Pull Install with yarn Build the website with yarn build Reload with pm2.

This is a lifesaver when doing deployments, it means your application will remain running during an upgrade and even start serving new content whilst your old application is going down.