PHP code example of alfred-nutile-inc / env-deployer
1. Go to this page and download the library: Download alfred-nutile-inc/env-deployer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
return [
'connections' => [
/*
* The environment name.
*/
'dev' => [
/*
* The hostname to send the env file to
*/
'host' => 'example_target.dev',
/*
* The username to be used when connecting to the server where the logs are located
*/
'user' => 'vagrant',
/*
* The full path to the directory where the .env is located MUST end in /
*/
'rootEnvDirectory' => '/home/vagrant/mysite/',
'port' => 2222
],
],
];