-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add an option so clever deploy
can do a clever restart
automatically if remote commit is the same
#276
Comments
Interesting... So right now here's the output: $ clever deploy
[ERROR] The clever-cloud application is up-to-date. Try this command to restart the application:
clever restart exit status: 1 $ clever deploy --force
[ERROR] The clever-cloud application is up-to-date. Try this command to restart the application:
clever restart exit status: 1 It seems like you don't want to change the situation for
This seems simple but I think it requires some thinking... |
true About the possibilities, it's more the As a side note, |
IIRC, we used the same behavior that git has . |
Here's what you have with version 0.10.1: $ clever-old deploy
Pushing source code to Clever Cloud.
[ERROR] The clever-cloud application is up-to-date. Try `clever restart` to restart the application exit status: 0 $ clever-old deploy -f
Pushing source code to Clever Cloud.
[ERROR] The clever-cloud application is up-to-date. Try `clever restart` to restart the application exit status: 0 We "just" fixed the fact that logging an error should also return an exit status code 1 and log to stderr. |
ok, looks like my brain is a liar (and my CI to 😄 ) An other option to not change the behavior describe by @BlackYoup is to add a not option. |
Hi, Any update on this issue ? It would be really useful to deploy twice on the same commit. |
Hi @jeremybastin1207, thanks for you message. This project clearly lacked some love in the past years and we're sorry about that. We recently put the project back on tracks and we're putting more time and effort on it. About this issue, this is clearly a "simple to implement" and a "not that complex to design". We'll be discussing the design of this issue next tuesday with @aurrelhebert and see what we can quickly move forward with 😉 |
Observations:
|
We discussed this issue with @aurrelhebert and here's our report. ContextUsers want to use the clever-tools in their CI (GitLab, GitHub, Jenkins...). The classic scenario is:
A
There's no way to detect a The needUsers need a "please deploy this commit even if it's already the one on the remote".
The propositionHere are some examples to explain the current behaviour and our propositions. Current behaviourclever deploy
clever deploy --force
New
|
Deploy
command with --force
option doesn't work properlyclever deploy
can do a clever restart
automatically if remote commit is the same
Hi @hsablonniere, |
@jeremybastin1207 Thank you for your feedbacks. Sorry for the holiday delay :p |
Actually, if you want to deploy the same commit twice, even with
-f
option, the command will return an error[ERROR] The clever-cloud application is up-to-date. Try this command to restart the application: clever restart
.Without
force
option,restart
sounds like fine.However
deploy
with--force
option should still be OK.Current use case is : deploying from Gitlab-CI, triggering manual action that will rebuild the website and run every CC HOOKS.
The text was updated successfully, but these errors were encountered: