The classic path
For applications the run on Linux servers:
- Copy the code to the server.
- Compile any front-end code.
- Update configuration files.
- Execute any database changes.
- Start the new version of the application.
- Note the deployment time.
- Keep copies of the last five versions for easy rollback if needed.
For applications in containers:
- Compile the code inside a container.
- Upload the container to a University service called Artifactory.
- Download the container to the Traefik server.
- Perform a "health check" to ensure it runs correctly.
- Switch traffic to the new container once it passes the health check.
- Store previous versions in Artifactory for easy rollback if needed.