Git-Auto-Deploy
Git-Auto-Deploy copied to clipboard
gitlab not working for me
hi not working for me gitlab to server
config json
{ // HTTP server options "http-enabled": true, "http-host": "myserver", "http-port": 8001,
// HTTPS server options //"https-enabled": false, //"https-host": "0.0.0.0", //"https-port": 8002,
// Web socket server options (used by web UI for real time updates) //"wss-enabled": false, //"wss-host": "0.0.0.0", //"wss-port": 8003,
// Web user interface options "web-ui-enabled": true, "web-ui-username": null, "web-ui-password": null, "web-ui-whitelist": ["127.0.0.1"],
// TLS/SSL cert (necessary for HTTPS and web socket server to work) //"ssl-key": null, // If specified, holds the private key //"ssl-cert": "cert.pem", // Holds the public key or both the private and public keys
// File to store a copy of the console output "log-file": "~/gitautodeploy.log",
// File to store the process id (pid) "pid-file": "~/.gitautodeploy.pid",
// Record all log levels by default "log-level": "INFO",
// Deploy commands that should be executed for all projects //"global_deploy": [ // "echo Deploy started!", / "echo Deploy started!", // "echo Deploy completed!" //],
"repositories": [ { "url": "https://gitlab.com/amitgupta.kelvin/myproject.git", "branch": "beta", "remote": "origin", "path": "/var/www/html/", "deploy": "echo deploying" },
{
"url": "[email protected]:amitgupta.kelvin/myproject.git",
"path": "/var/www/html/"
},
{
"url": "https://gitlab.com/amitgupta.kelvin/myproject.git",
"deploy": "echo deploying after pull request",
"filters": [
{
"type": "pull-request-filter",
"action": "closed",
"ref": "testing-branch"
}
]
}
] }
What is not working? Can you provide some error logs/information? I see you are pulling same repo on same locations but once with ssh and another time with https. Do you have public part of ssh key in deploy keys?