deployer
deployer copied to clipboard
Deployments on multiple servers with custom commands defined
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
- [x] 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
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.