wp-media / wp-rocket-cli

WP CLI interface for the WP Rocket plugin
74 stars 37 forks source link

import is not working if the file is not hosted locally #56

Open DahmaniAdame opened 2 years ago

DahmaniAdame commented 2 years ago

The wp rocket import command is not working if the file is not hosted locally:

wp rocket import --file=https://example.ext/wp-rocket/wp-rocket-settings-example.ext-date-hash.json

Temporarily fixed on the customer's website using:

wget https://example.ext/wp-rocket/wp-rocket-settings-example.ext-date-hash.json -P /tmp/ && wp rocket import --file=/tmp/wp-rocket-settings-example.ext-date-hash.json

Ticket - https://secure.helpscout.net/conversation/2051344086/377921/