Did you ever want to to run Laravel's php artisan commands on an automated infrastructure? If you are using Chef then this cookbook is for you.
This cookbook supports some of the artisan commands, that are useful on a load balanced server infrastructure.
Commands that are particular useful for development are not supported.
- down
- up
- ... and more to come
- Chef 12.7 or higher
This cookbook has been developed and used on Ubuntu 16.04.
Supported Environments:
- Vagrant
- AWS Opsworks
Currently none.
Place a dependency on the mysql cookbook in your cookbook's metadata.rb
depends 'mysql', '~> 8.0'
or add the dependency in your Berksfile:
cookbook 'laravel-artisan'
Then, you can run the recipes using Chef's runlist. Right away this will throw an Exception. To get it work properly you have
to pass a path to the directory where the artisan
file is located.
Passing the path to the artisan file via an environment file:
{
"name": "development",
"description": "Vagrant Development Environment",
"default_attributes": {
"laravel-artisan": {
"path": "<path-to-artisan-file>"
}
},
"json_class": "Chef::Environment",
"chef_type": "environment"
}
Using AWS Opsworks you can pass in the path via custom json:
"laravel-artisan": {
"path": "<path-to-artisan-file>"
}
}