Category: Laravel, Laravel, MySQL, MySQL

So you have built a shiny new web app and disabled personal teams, it's time to build and deploy! In a future article (I will link here once written) we will go over deploying this to a docker swarm cluster on every push to master and deploying feature branches on each pull request to master.

We now need to edit the dockerfiles for laravel sail to create a production stack — we will base this on the docker-swoole image and add a few changes to keep it relatively small.

We will create a pull request to the master branch which should build that container, and we will then merge that request into the master branch to build the production version.

Let’s go back to GitHub, merge the pull request, and now we wait for another ~2 minutes or so — this time thanks to the caching of composer modules, it will be much quicker.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners