Instructions of how to set up Deployer on a Server with Debian and Plesk.
More info at https://deployer.org
image: wagnerstephan/bitbucket-git-ftp:latest | |
pipelines: | |
custom: | |
init: | |
- step: | |
caches: | |
- node | |
script: | |
- npm install |
docker system prune | |
docker container stop $(docker container ls -aq) | |
docker container rm $(docker container ls -aq) | |
docker rmi $(docker images -aq) | |
docker volume prune |
Instructions of how to set up Deployer on a Server with Debian and Plesk.
More info at https://deployer.org
function parseProbability(probability) { | |
return Math.min(100, Math.max(0, parseFloat(probability) || 0)); | |
} | |
function probabilityToPercent(nr) { | |
return toFixed(nr * 100) + "%"; | |
} | |
function probabilityByRuns(probability, runs) { | |
return 1 - Math.pow(1 - probability, runs); |