Skip to content

Instantly share code, notes, and snippets.

@junneshenning
junneshenning / 1step-Install-Deployer-Magento2-BitbucketPipelines.md
Created April 29, 2021 16:55 — forked from rafaelstz/1step-Install-Deployer-Magento2-BitbucketPipelines.md
Automated deploy using Magento 2 + Bitbucket Pipelines + Deployer

Use both files in your root folder and run:

curl -LO https://deployer.org/deployer.phar && sudo mv deployer.phar /usr/local/bin/dep && sudo chmod +x /usr/local/bin/dep
composer require deployer/recipes --dev
composer require rafaelstz/deployer-magento2 dev-master --dev
#!/bin/bash
IPADDRESS=("123.123.123.124" "456.456.456.457" "890.890.890.891")
echo "Adding IP addresses to Cloudflare Firewall..."
echo ''
for i in "${IPADDRESS[@]}"
do
:
# do whatever on $i