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

gitlab not working for me #218

Open
shashiranjanraj opened this issue Aug 9, 2018 · 1 comment
Open

gitlab not working for me #218

shashiranjanraj opened this issue Aug 9, 2018 · 1 comment

Comments

@shashiranjanraj
Copy link

shashiranjanraj commented Aug 9, 2018

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"
    }
  ]
}

]
}

@Letme
Copy link
Contributor

Letme commented Aug 9, 2018

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?

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

2 participants