caprover / caprover-cli

Command Line Interface for https://github.com/caprover/caprover
72 stars 39 forks source link

Exit command after finshing #66

Closed ahmedmgh67 closed 3 years ago

ahmedmgh67 commented 3 years ago

When I run the "caprover setup" command with the -c flag and when it finishes I have to press enter to exit. It would be nicer if it exited automatically, especially that I'm using it in an automated script and I can't know when it finshes

ahmedmgh67 commented 3 years ago

Hello @githubsaturn any solution for this issue?

githubsaturn commented 3 years ago

What environment you're running on? The noninteractive commands usually work bets in linux environment.

ahmedmgh67 commented 3 years ago

@githubsaturn I'm running on ubuntu server 18.04 I'm supplying it with a config.json but it still loads and when it finishes I have to press enter to exit. I need to just work even in the background without any logs, is this possible?

githubsaturn commented 3 years ago

That's bizarre. I cannot reproduce the same issue on Ubuntu. If you want to run it in the background, you can just typical linux scripting techniques, like this one: https://unix.stackexchange.com/questions/74520/can-i-redirect-output-to-a-log-file-and-background-a-process-at-the-same-time

ahmedmgh67 commented 3 years ago

I totally missed this, thanks a lot. I'm closing this issue now