caprover / caprover-cli

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

deployment #67

Open frederic117 opened 3 years ago

frederic117 commented 3 years ago

Hello I got a problem when trying to deploy : i got this error : Preparing deployment to CapRover...

"git" command not found: CapRover needs "git" to create tar file from your branch source files. Run "caprover deploy --help" to know more deployment options... (e.g. tar file or image name)

error Command failed with exit code 1.

and it is of course a git repo anybody can help me please ?

githubsaturn commented 3 years ago

Do you have git installed, can you run git --version ?

frederic117 commented 3 years ago

yes i have git installed git version 2.28.0.windows.1

githubsaturn commented 3 years ago

Try using powershell. Perhaps windows terminal is acting up. If that doesn't work you can always do this:

git archive --format tar --output ./deploy.tar master
caprover deploy -t ./deploy.tar
frederic117 commented 3 years ago

do you think it is related to my git version?

frederic117 commented 3 years ago

it doesn't work with powershell

githubsaturn commented 3 years ago

There is no version check. It's a simple check here to check if git command actually exist:

https://github.com/caprover/caprover-cli/blob/ede40cf9bee50b5bb80d21ee86e4cf234366eeb6/src/utils/ValidationsHandler.ts#L19-L25

frederic117 commented 3 years ago

it works with git archive --format tar --output ./deploy.tar master caprover deploy -t ./deploy.tar thanks but if it could work with caprover deploy..... :)

jeffmusk commented 4 months ago

When you get "git branch name to be deployed: (deploy)" you can put any, but it will remain static, hit Ctrl+v and it will allow you to put a new branch