Laravel-Elixir-Vueify-Setup
Laravel-Elixir-Vueify-Setup copied to clipboard
Missing .env file?
Any reason this repo doesn't come with an .env file?
I had to copy one from the main Laravel repo and then I could serve the site.
(I'm sure this is just something I haven't kept up with)
You should never ship .env files in a public repo. An .env.example file or something similar might have been usefull tho, but the effort to create an own one is not that high :P
But that's the point; the composer file specifies copying one - it just doesn't exist.
https://github.com/laracasts/Laravel-Elixir-Vueify-Setup/blob/master/composer.json#L41-L43
What do the .env file expect? I would love an .env.example as well. I'm stuck with
RuntimeException in compiled.php line 7010: No supported encrypter found. The cipher and / or key length are invalid
What I did:
$ php artisan key:generate
$ php artisan migrate
$ php artisan db:seed
@Blueblau The key:generate is looking for an .env file that has an APP_KEY key in it. You can get the default .env.example file from the Laravel repository here:
https://github.com/laravel/laravel/blob/master/.env.example
Alternatively, if you don't want all the default env keys, just create a file named .env in your root with the following text:
APP_KEY=SomeKey