REBELinBLUE / deployer

Deployer is a free and open source deployment tool.
http://phpdeployment.org
MIT License
909 stars 185 forks source link

Can't deploy / SSH keys not added #368

Closed abfadil closed 6 years ago

abfadil commented 6 years ago

Before submitting your issue, please make sure that you've checked all of the checkboxes below.

To help us better understand your issue, please answer the following.

Expected behaviour

The private key should be saved, but it not

Actual behaviour

image

Even after adding the key it stays empty.

Steps to reproduce

Add a private key to the project

Environment info

Laravel Environment

Logs (see storage/logs/) or other output that would be helpful

cli-2018-03-09.log

I can't deploy project even though the SSH connection to github repo is working fine from git-cli, also when add a key it does not show up on the project please help.

REBELinBLUE commented 6 years ago

The SSH key won't show in the field after saving as that would be insecure, if you look at the DB you should see it in the private_key field on the projects table.

However, the deploy isn't failing for you because of the key, it is failing as deployer can't find the git cli on the deployer server, its needs to be in $PATH for whatever user you have the queue listener running as.

Interesting that the installer ran though, as that checks git is in the path, are you running the worker as a different user to the one you installed as?

REBELinBLUE commented 6 years ago

Cleaning up, feel free to reopen if still relevant