[Laravel recipe] Skip task if .env is missing #3356
Locked
gerardforcada
started this conversation in
General
Replies: 1 comment 2 replies
-
Good idea! You're right, that makes no sense. PR it up and I'll accept it :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
I've seen some tasks can be ignored if the .env file is missing (reference)
I was wondering if it's a good idea to add this flag to all the database related tasks (these ones)
It doesn't make sense to me that the
php artisan migrate
command gets skipped, but then (for example) if the deployment fails and you want to roll back the database changes, it fails because there's no .env file.If I created a PR with this change, would you accept it? Or is there any reason why those commands wouldn't need to be skipped?
Beta Was this translation helpful? Give feedback.
All reactions