Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"http-basic": {
"connect.advancedcustomfields.com": {
"username": "acf_pro_key",
"password": "acf_pro_domain"
}
}
}
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
},
{
"type": "composer",
"url": "https://pivvenit.github.io/acf-composer-bridge/composer/v3/wordpress-plugin/"
"type":"composer",
"url":"https://connect.advancedcustomfields.com"
}
],
"require": {
Expand All @@ -44,7 +44,7 @@
"wpackagist-plugin/contact-form-7-honeypot":"2.1.1",
"wpackagist-plugin/webp-express":"0.25.5",
"wpackagist-plugin/svg-support":"2.5.5",
"advanced-custom-fields/advanced-custom-fields-pro": "6.1.2"
"wpengine/advanced-custom-fields-pro": "6.1.2"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.6.0",
Expand Down
13 changes: 11 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,18 @@ echo "WP_ENV=development" >> .env
read -p "Enter local domain name (eg. wordpress.local): " domain
echo "WP_HOME=http://$domain" >> .env;
echo 'WP_SITEURL=${WP_HOME}/wp' >> .env;
read -p "Enter ACF PRO KEY: " acfprokey
echo "ACF_PRO_KEY=$acfprokey" >> .env

read -p "Enter ACF PRO KEY: " acf_pro_key
echo "ACF_PRO_KEY=$acf_pro_key" >> .env
echo "#/ ENV" >> .env;
sed -i'' -e "s/acf_pro_key/$acf_pro_key/" auth.json

read -p "Enter ACF PRO DOMAIN: " acf_pro_domain
acf_pro_domain=${acf_pro_domain//\//\\/}
sed -i'' -e "s/acf_pro_domain/$acf_pro_domain/" auth.json

rm auth.json-e

echo >> .env;
echo >> .env;

Expand Down