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

Deployments on multiple servers with custom commands defined #369

Open
1 of 2 tasks
hanc2006 opened this issue Apr 2, 2018 · 1 comment
Open
1 of 2 tasks

Deployments on multiple servers with custom commands defined #369

hanc2006 opened this issue Apr 2, 2018 · 1 comment

Comments

@hanc2006
Copy link

hanc2006 commented Apr 2, 2018

I have a strange behavior when I perform for a project a deploy on multiple servers. I have a project with different servers, custom commands, different files and I want to deploy only on some of these.

Expected behaviour

  • The code is deployed only on the active servers
  • No custom commands should be performed if the server is not active

Actual behaviour

All custom commands are still executed even if the server is not active (Deploy Code = No).

Steps to reproduce

  • Create a new project
  • Add in deployments tab multiple servers
  • Add in commands tab one custom commands (it does not matter in which step)
  • Assign the custom commands to all servers
  • Exclude the deployment for one server (uncheck Code should be deployed to this server)
  • Start new deploy

Environment info

  • Operating System: Ubuntu Server 16.04
  • PHP Version: 7.1
  • Node Version: 6.11
  • Database System: MySQL
  • Database Version: 5.7.21
@REBELinBLUE
Copy link
Owner

REBELinBLUE commented Apr 2, 2018

Sorry you are misunderstanding what "Code should be deployed to this server" does. It means the actual code from your git repository won't be deployed on the server, but custom commands which have that server set would run.

For example you could use this if you wanted to run a database backup during deploy, you'd run the mysqldump (or psql if postgres) on the DB server but you don't want/need your application code on that server.

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

No branches or pull requests

2 participants