Skip to content
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

deployment #67

Open
frederic117 opened this issue Oct 10, 2020 · 8 comments
Open

deployment #67

frederic117 opened this issue Oct 10, 2020 · 8 comments

Comments

@frederic117
Copy link

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
Copy link
Collaborator

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

@frederic117
Copy link
Author

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

@githubsaturn
Copy link
Collaborator

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
Copy link
Author

do you think it is related to my git version?

@frederic117
Copy link
Author

it doesn't work with powershell

@githubsaturn
Copy link
Collaborator

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

if (!commandExistsSync('git')) {
StdOutUtil.printError(
'"git" command not found: CapRover needs "git" to create tar file from your branch source files.\n' +
'Run "caprover deploy --help" to know more deployment options... (e.g. tar file or image name)\n',
true
)
}

@frederic117
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants