-
Notifications
You must be signed in to change notification settings - Fork 265
Deployment Process
-
Configure DNS Records:
- Set up DNS records for
dev.domain-name.com
anddomain.com
to point to your server.
- Set up DNS records for
- Development Environment: Accessible at http://dev.domain-name.com
- Production Environment: Accessible at https://nextjs.boilerplate.hng.tech/
The team planned for 99% uptime by utilizing a docker-compose file to spin up two containers for both the development and production environment. During each build, a change pushed to the main branch does not take down the server but keeps the previous running container active until the build completes. The old container is then detached, and the newly created one is used.
NGINX is used for both load balancing and reverse proxying, ensuring that no single container becomes overwhelmed and that requests are efficiently routed to the appropriate containers. This setup helps maintain high availability and performance for the deployed projects.
Made with ❤️ by Ravencodes | AugustHottie | CodeReaper0 | bySegunMoses | Suesue | DrInTech22 courtesy of @HNG-Internship