I’m a huge fan of serverless and Laravel and then Taylor Otwell came along with Laravel Vapor. Allowing us to deploy our Laravel apps to serverless infrastructure on AWS.
We deploy a production and staging environment for each project. Really we don’t want to use Queues, Command Scheduler or Mail in our staging environment. We only want to use these features for our production environment. Vapor makes it really simple for us to do this by adding some configuration options to our Vapor config file: vapor.yml
.
id: 19
name: serverless-rules
environments:
staging:
queues: false
mail: false
scheduler: false
That’s all we need to is set these three config options to false in our staging environment and then it will remove Laravel’s Queue, scheduler and Mail sending functionality from AWS.
That’s all for this post, I use Vapor to deploy all my projects nowadays. If you would like to find out more about it then you can find it here: Vapor. Enjoy.
Top comments (0)