dev-master
9999999-devSetup apps in one command for local work
The Requires
- php >=5.4.0
- illuminate/contracts *
by Alfred Nutile Inc
Setup apps in one command for local work
This requires some conventions noted below., (*1)
Pull it in via composer, (*2)
composer require alfred-nutile-inc/setup
Then add it to your Kernel, (*3)
protected $commands = [ 'App\Console\Commands\Inspire', 'AlfredNutileInc\CoreApp\SetUp\SetupCommand' ];
Then, (*4)
Git clone the repo to your homestead, (*5)
The conventions for this setup is simple, (*6)
Your local domain is the same as the repo name. If the repo is foo then foo.dev
, (*7)
The Command is, (*8)
php artisan core-app:setup reponame
This will, (*9)
You can limit what to run like this, (*10)
php artisan core-app:setup reponame --run=SetupServerConfig --run=SetupFrontEnd
Your local env is named after the repo name and .dev so repo foo is foo.dev local, (*11)
SSL is always default. https://github.com/alfred-nutile-inc/internal_practices/blob/master/ssl.md for help on this., (*12)
Just add your step to app/SetUp/SetupCommand.php:93
, (*13)
SetupDeploymentScripts::fire($this); SetupEnv::fire($this); SetupDb::fire($this); RunMigrations::fire($this); SetupTesting::fire($this); SetupFrontEnd::fire($this); SetupServerConfig::fire($this);
php artisan core-app:setup reponame --SetupEnv --SetupDevelopmentScripts
Setup apps in one command for local work