protected function bindStoragePath()
    {
        if ($this->runningOnGae) {
            $buckets = ini_get('google_app_engine.allow_include_gs_buckets');
            // Get the first bucket in the list.
            $bucket = current(explode(', ', $buckets));

            if ($bucket) {
                $storagePath = "gs://{$bucket}/storage";

                if (!file_exists($storagePath)) {
                    mkdir($storagePath);
                }

                $this->instance("path.storage", $storagePath);
            }
        }
    }