Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #16 Autofill the.env file with the "composer --no-interaction…
…" command (roukmoute) This PR was merged into the master branch. Discussion ---------- Autofill the.env file with the "composer --no-interaction" command Currently, our production is runned without a .env. All is in the current environment variables. So in production mode, we do not want to run want to answer to questions, just copy it. This is an example of the result: ```bash ▶ composer install --no-interaction Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update > Companienv\Composer\ScriptHandler::run It looks like you are missing some configuration (46 variables). I will help you to sort this out. Automatically confirmed in non-interactive mode > MySQL Automatically returned "mysql" in non-interactive mode Automatically returned "my_database" in non-interactive mode Automatically returned "root" in non-interactive mode > Mailer Automatically returned "mailhog" in non-interactive mode Automatically returned "1025" in non-interactive mode Automatically returned "" in non-interactive mode Automatically returned "" in non-interactive mode > RabbitMQ Automatically returned "rabbitmq" in non-interactive mode Automatically returned "5672" in non-interactive mode Automatically returned "guest" in non-interactive mode Automatically returned "guest" in non-interactive mode Automatically returned "/" in non-interactive mode > JWT Automatically returned "foobar" in non-interactive mode > Google API key Automatically returned "MyGoogleAPIKey" in non-interactive mode … ``` Commits ------- c5b41cb It copies automatically values with composer --no-interaction
- Loading branch information