Laravel-Elixir-Vueify-Setup icon indicating copy to clipboard operation
Laravel-Elixir-Vueify-Setup copied to clipboard

Missing .env file?

Open davestewart opened this issue 9 years ago • 4 comments

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)

davestewart avatar Jun 16 '16 21:06 davestewart

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

stevenobird avatar Jun 17 '16 13:06 stevenobird

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

davestewart avatar Jun 17 '16 15:06 davestewart

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

kluplau avatar Aug 06 '16 22:08 kluplau

@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

carterfort avatar Aug 12 '16 14:08 carterfort