diff options
-rw-r--r-- | .drone.yml | 2 | ||||
-rw-r--r-- | bootstrap/Functions.php | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -123,7 +123,7 @@ steps: scp -r -o StrictHostKeyChecking=no -P $ORIGIN_PORT -vT -i ssh-key images/* $ORIGIN_USER@$ORIGIN_HOST:/srv/http/staging/thedroneely.com/public/images -- > + - > ssh -o StrictHostKeyChecking=no -p $ORIGIN_PORT -vT -i ssh-key $ORIGIN_USER@$ORIGIN_HOST 'find /srv/http/staging/thedroneely.com/public/images -type f -exec touch -d "2 days ago" {} +' diff --git a/bootstrap/Functions.php b/bootstrap/Functions.php index a515402..0ec1dac 100644 --- a/bootstrap/Functions.php +++ b/bootstrap/Functions.php @@ -24,7 +24,7 @@ function fetch(string $path, string $field) { $config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/AppConfig.php';; $json = file_get_contents( - 'http://' . $_SERVER['SERVER_NAME'] + $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['SERVER_NAME'] . $path . '?token=' . $config['cms']['token'] ); $data = json_decode($json, true); |