jonathanport/artisan-export-config-vars-to-heroku

A simple Artisan command for Laravel to auto export .env config vars into a Heroku app. Removes the issue of having to manually add all config vars. Especially useful if you have lots!
1,999 1
Install
composer require jonathanport/artisan-export-config-vars-to-heroku
PHP:>=7.1
License:MIT
Last Updated:Sep 21, 2018
Links: GitHub  ·  Packagist
Maintainer: JonathanPort

Export config vars to Heroku

A Laravel artisan command to allow a quick export of config vars to Heroku with one command. Eliminates all that time spent manually inputting config vars either through the CLI or through the web app.

Requirements

  • Laravel 5
  • PHP 7
  • Heroku CLI
  • Project to have a Heroku remote connected

Installation

composer require jonathanport/artisan-export-config-vars-to-heroku

Usage

Simply run:

php artisan export-config-vars-to-heroku

The command line will ask you to input a file name. This could be your default .env file but I personally like to make a separate .env.heroku file and use that to input all my config vars so I don't mess up my local file. Inside of the command line, type in .your-env and it will continue to import your config vars.

By default, the script will not export empty values e.g. APP_NAME=. To allow the export of empty values, you can add the --include-empty-values flag and the script will include empty values. The script will include null values regardless.

Feedback

Feedback is welcome. Enjoy!

Related Packages

vkovic/laravel-commando

Collection of handy Laravel artisan commands that most projects needs

45,094 62
ascend/laravel-artisan-list-mine

Filter laravel artisan commands to show only your application commands

1,196 1
novius/laravel-artisan-commands

Additional artisan commands for Laravel

26,141 7
hariadi/laravel-boilerplate-generator

Generate Model, attribute, relation, scope trait and repository for Laravel Boil...

609 9
recca0120/terminal

run laravel artisan command in web application

422,680 877