papertank / envoy-deploy

Laravel Envoy Deployment
MIT License
424 stars 85 forks source link

Laravel 5.5 - Passport #9

Closed robsontenorio closed 6 years ago

robsontenorio commented 7 years ago

Acording Laravel Passport we should run this in order to generate passport keys on production, once .gitignore wont version *.keys files.

php artisan passport:keys

What kind of script change is necessary to handle this?

davidrushton commented 6 years ago

Hi @robsontenorio

I see from the docs that the php artisan passport:keys command is supposed to be run once on the server, not each time you deploy changes / new versions.

You could add it to the init task of this deploy script - https://github.com/papertank/envoy-deploy/blob/master/Envoy.blade.php#L27 - but personally I would just SSH in and run that command on the server, once you have created your database and run your migrations for the first time.

Hope that helps.

robsontenorio commented 6 years ago

I agree. Thanks !

davidrushton commented 6 years ago

No problem 👍