New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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:dev-master
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

48,445 61
novius/laravel-artisan-commands

Additional artisan commands for Laravel

26,508 7
ascend/laravel-artisan-list-mine

Filter laravel artisan commands to show only your application commands

1,509 1
velcoda/commands

Artisan Commands to help devs

6,636 0
hmazter/laravel-schedule-list

Laravel package to add command to list all scheduled artisan commands

442,314 94