-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize command updated #11
Conversation
… but you can use it in the composer install. I also added the --prefer-dist flag as it will download the dist files if available instead of all the sources and it makes it faster
So we can make sure the page still returns a 200, and if not, do an automatic rollback (the automatic rollback is not done yet)
…ate so we make sure there is always one to rollback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome - thanks @BadChoice for this update!
A couple of quick notes that might be good to change before I merge and tag this release:
-
You've changed the date format to
Y-m-d_H:i:s
, but this is used for the folder name soYmdHis
would be preferable (avoiding colons in folder name) -
I understand your naming conventions, but to make it easier for watchers to upgrade, would you be able to rename:
deployment_git
back todeployment_start
;deployment_update_current
back todeployment_finish
? -
The
health_check
task is a great idea. It's included in the coredeploy
job by default, but I think this would be best as an option when deploying (similar todeployment_option_cleanup
using@if ( isset...
Let me know your thoughts and thanks again!
David.
Thanks for the review, let me explain why I did those changes so we can decide which is the best option
I would also like to add in another pr the possiblity to be able to deploy to stagging and to production by doing Thank you! |
Thanks.
Cheers, D. |
Just updated the PR with the changes we talked, Let me know if you want me to change anything else |
In new laravel version the optimize command is not necessary anymore, but you can use it in the composer install. I also added the --prefer-dist flag as it will download the dist files if available instead of all the sources and it makes it faster
I also added the
envoy run rollback
that will switch to the previous one in case something is messed up