At Purpose Built, we use Laravel Forge to manage our servers and auto-deploy code to projects. Forge is great, and really simplifies these things.
Forge provides a basic deploy script to do all the things that need to happen to deploy the application, things like:
- Pull the most recent code
- Update composer libraries
- Update JS libraries
- Compile JS code
- Run database migrations
- Restart PHP-FPM
This process usually takes about a minute to run. While this deploy script us running, a user might happen to interact with the application, and it’s hard to say what they are going to see.
Continue reading