Download the PHP package alfred-nutile-inc/env-deployer without Composer
On this page you can find all versions of the php package alfred-nutile-inc/env-deployer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alfred-nutile-inc/env-deployer
More information about alfred-nutile-inc/env-deployer
Files in alfred-nutile-inc/env-deployer
Package env-deployer
Short Description Makes deploying Env super easy
License
Informations about the package env-deployer
Env Deployer
Only works with 5.1 and greater
See the video
This will take your local environment and deploy it to the selected server
Your config file will have the list of servers
For example say your .env looks like this
The new Laravel tail library spatie/laravel-tail
inspired and helped this a ton
#@dev=dev
#@stage=stage
APP_ENV=local
#@dev=dev_db
#@stage=stage_db
DATABASE_NAME=local_db
If you run the command
php artisan envdeployer:push dev
This will send you local to dev replacing the values as needed.
APP_ENV=dev
DATABASE_NAME=dev_db
This makes it super easy for local developers to merge their env to the different servers while at time keep a local .env and .env.example
php artisan envdeployer:make-example
Would then setup example with random values
php artisan envdeployer:share
Would place it on the config setting share path for the team member to write
php artisan envdeployer:share get
To get and pull that down as their env settings.
Lastly
php artisan envdeployer:get_and_merge dev
Would get dev and merge it into your local setting #@dev=foo
as needed and adding values you are missing
Install
You can install the package via composer:
You must install this service provider:
Now to setup your config:
A file named envdeployer.php
will be created in the config directory. The options you can set in the file should be self-explanatory.
RoadMap
Immediate Todo Items Make it a true laravel 5 library with config settings
1) get file from target and merge into local
2) share command so teams can share the file securely
All versions of env-deployer with dependencies
illuminate/support Version *
vlucas/phpdotenv Version *
illuminate/contracts Version *
illuminate/console Version *
illuminate/filesystem Version *