# تشغيل مستكشف الكتل

{% tabs %}
{% tab title="إعداد الخادم المحلي" %}

```bash
git clone --branch local https://github.com/rome-labs/romescout.git
```

{% endtab %}

{% tab title="إعداد الخادم البعيد" %}

```bash
git clone --branch v1.0.1 https://github.com/rome-labs/romescout.git
```

{% endtab %}
{% endtabs %}

## انتقل إلى دليل docker-compose <a href="#navigate-to-docker-compose-directory" id="navigate-to-docker-compose-directory"></a>

```bash
cd romescout/docker-compose
```

## تعيين متغيرات البيئة

```bash
export FRONTEND_DOCKER_TAG=v1.36.2
export DOCKER_TAG=6.9.2
export STATS_DOCKER_TAG=v2.2.3
export VISUALIZER_DOCKER_TAG=v0.2.1
export SIG_PROVIDER_DOCKER_TAG=v1.1.1
export SMART_CONTRACT_VERIFIER_DOCKER_TAG=v1.9.2
export USER_OPS_INDEXER_DOCKER_TAG=v1.3.0
```

## نسخ شهادة Nginx

إذا كنت تقوم بالإعداد على خادم بعيد، فانسخ شهادات nginx إلى الدليل المحلي لديك. إذا كنت تقوم بالإعداد محليًا، فتخط هذا الخطوة.

**ملاحظة: استبدل مسار الملف أدناه بموقع شهادتك.**

<pre class="language-bash"><code class="lang-bash">mkdir -p ./nginx/ssl
<strong>sudo cp /etc/letsencrypt/live/caesar.internal.romeprotocol.xyz/fullchain.pem ./nginx/ssl/
</strong><strong>sudo cp /etc/letsencrypt/live/caesar.internal.romeprotocol.xyz/privkey.pem ./nginx/ssl/
</strong></code></pre>

## تحديث اسم النطاق

إذا كنت تشغل L2 على خادم بعيد، فاستبدل اسم النطاق في الملفين أدناه.

* `services/nginx1.yml`
* `envs/common-frontend1.env`&#x20;

**ملاحظة: إذا كنت تعمل محليًا، فتخط تعديل النطاق.**

## تحديث التسمية والعلامة التجارية <a href="#update-configuration-to-use-your-naming-and-branding" id="update-configuration-to-use-your-naming-and-branding"></a>

حدّث ملف بيئة الواجهة الأمامية لاستخدام تفاصيل L2 الخاصة بك مثل معرف السلسلة، الاسم، العملة، الشعار، واللون.

{% tabs %}
{% tab title="إعداد الخادم المحلي" %}
تحرير `envs/common-frontend.env`&#x20;
{% endtab %}

{% tab title="إعداد الخادم البعيد" %}
تحرير `envs/common-frontend1.env`&#x20;
{% endtab %}
{% endtabs %}

```bash
NEXT_PUBLIC_NETWORK_NAME=Caesar
NEXT_PUBLIC_NETWORK_SHORT_NAME=Caesar
NEXT_PUBLIC_NETWORK_ID=98989897
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=RSOL
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=RSOL

NEXT_PUBLIC_NETWORK_LOGO=http://rome-public-assets.s3.us-east-1.amazonaws.com/rome-banner.png
NEXT_PUBLIC_NETWORK_ICON=http://rome-public-assets.s3.us-east-1.amazonaws.com/rome-logo.png
NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR=white
NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND=#5E0A60
```

## تشغيل حاويات docker

إزالة البيانات القديمة، تخط إذا كانت هذه هي المرة الأولى للتشغيل.

```bash
sudo rm -rf services/blockscout-db-data
sudo rm -rf services/stats-db-data
```

بناء وتشغيل حاوية docker محليًا.

```bash
docker compose up -d
```

الوصول إلى مستكشف Rome Scout على:

{% tabs %}
{% tab title="إعداد الخادم المحلي" %}
[http://localhost:1000](http://localhost:1000/)
{% endtab %}

{% tab title="إعداد الخادم البعيد" %}
<https://caesar.internal.romeprotocol.xyz:1000> (استبدل باسم النطاق الخاص بك)
{% endtab %}
{% endtabs %}

## مستكشف سولانا

يمكن الوصول إلى مستكشف كتل سولانا على <https://explorer.solana.com/?cluster=devnet>

لا حاجة لأي إعداد لهذا.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rome.builders/ar/legacy/rome-l2-setup/setup-your-l2/run-block-explorer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
