# Web（レガシーアプリ）の公開

*スキルレベル: 中級*

## 開始前に

* アカウント所有者のみがアカウント設定でドメインを追加/変更できます。
* [ドメイン](https://help.adalo.com/glossary#domain)、[サブドメイン](https://help.adalo.com/glossary#subdomain)、[DNSレコード](https://help.adalo.com/glossary#dns-record)、および[DNSプロバイダ](https://help.adalo.com/glossary#dns-provider)の基本を知っていること。
* AdaloのサブドメインはデスクトップWebアプリにのみ適用され、PWA（モバイル）アプリには適用されません。
* カスタムドメインはデスクトップWebアプリとPWA（モバイル）アプリの両方に適用されます。
* カスタムドメインはデスクトップWebアプリまたはPWAのどちらかに使用できますが、同時には使用できません。
* カスタムドメインを使用する場合は、ドメイン名をすでに購入していることを確認してください。

{% hint style="warning" %}
カスタムドメインには "adalo.com" または "adalo" のフレーズを含めることはできません。これらのチェックは、Adaloの提携先以外が組織をなりすますことを防ぐために追加されています。カスタムドメインに adalo または adalo.com が含まれている場合、ドメインは接続されません。
{% endhint %}

* Adaloのサブドメインを使用して公開するには、有料のAdaloプランは必要ありません。
* カスタムドメインを使用して公開するには、有料のAdaloプランが必要です。

## 手順

{% hint style="info" %}
使用するドメイン設定に応じて、以下のタブを選択してください！
{% endhint %}

{% tabs %}
{% tab title="Adaloサブドメインを使用（無料）" %}
すべてのAdaloアカウントには、**example.adalo.com** のようなサブドメインが付属しています。サブドメインは通常、最初はチームの名前ですが、以下の手順を使用していつでも変更できます：

**1.)** Adaloにログインした状態で、Adaloビルダーの右上隅にあるプロファイル/アカウントアイコンをクリックし、**Settings** をクリックします。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-bea15f255a0e574cbd66ab42e8db5c6776e159f5%2FScreen%20Shot%202021-12-06%20at%2011.00.21%20AM.png?alt=media)

**2.)** 表示されるポップアップで、**Domains** タブをクリックします。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-daaafc783ae4ebdfe72f9581baa484e21cc141d5%2FClick%20Domain.png?alt=media)

**3.)** 複数のチームに所属している場合は、ドロップダウンで変更したいチームを選択し、サブドメインの横にある **Edit** をクリックします。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-fe4b65f576a7c0e6d6472114ec4c7bd30d4de168%2FEdit%20Adalo%20Subdomain.png?alt=media)

**4.)** URLがテキストボックスに変わり、サブドメインを変更できます。\
\&#xNAN;*数字、文字、ダッシュのみを含めることができ、他の誰かが使用していないサブドメインのみを使用できることに注意してください。*\
変更が完了したら、**Save** をクリックします。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-da74ce37d444077500aaab99e13b89512697d437%2FSave%20Adalo%20Subdomain.png?alt=media)

{% hint style="info" %}
重要な点として、このサブドメインは**すべてのデスクトップWebアプリ**に適用されることに注意してください。Adaloドメインを使用している場合、個々のアプリごとにサブドメインを変更することはできませんが、URLの末尾のスラッグを変更できます。それを行いましょう。
{% endhint %}

**5.)** URLの末尾（一般的にはスラッグと呼ばれる）を変更するには、Adaloビルダーの左側のツールバーにある **Publish** ボタンをクリックします。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-e9bc5db1586686cf40419314e3b837d0f9c47cc0%2FScreen%20Shot%202021-12-06%20at%2011.11.25%20AM.png?alt=media) **6.)** ここでは、デスクトップWebアプリのドメイン設定を確認できます。テキスト入力の値を変更してスラッグを変更できます。完了したら、**保存**をクリックしてください。

{% hint style="info" %}
以下のようにURLスラッグを変更するオプションが表示されない場合、お使いのアプリはデスクトップアプリではなくPWA（モバイルアプリ）であり、URLスラッグの変更をサポートしていません。
{% endhint %}

<figure><img src="https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-9d26703ab829699cad2a139d9b85401bfaafac36%2Fspaces_-LhGHkPsv15svPIU5I7C_uploads_Iykf5kdA1gPirRgohfVF_Screen%20Shot%202021-12-06%20at%2011.webp?alt=media" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="カスタムドメインを使用する（有料）" %}
{% hint style="warning" %}
無料トライアルでカスタムドメインを設定できますが、カスタムドメインリンクを使用してもアクションは完了しません。[アップグレード](https://www.adalo.com/pricing)してください。
{% endhint %}

**1.)** Adaloにログインした状態で、Adaloエディタの右上隅にあるプロファイル/アカウントアイコンをクリックし、**設定**をクリックします。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-bea15f255a0e574cbd66ab42e8db5c6776e159f5%2FScreen%20Shot%202021-12-06%20at%2011.00.21%20AM.png?alt=media)

**2.)** 表示されるポップアップで、**ドメイン**タブをクリックします。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-daaafc783ae4ebdfe72f9581baa484e21cc141d5%2FClick%20Domain.png?alt=media)

**3.)** **カスタムドメイン**セクションで、アプリで使用したいサブドメインを入力し、**追加**をクリックします。\
\&#xNAN;*お使いのカスタムドメインをすでに購入し、* [*DNSプロバイダー*](https://help.adalo.com/glossary#dns-provider)*と設定済みである必要があることに注意してください。*

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-d3520978737a6b468fcc142ee05baf3cb9ec94df%2FAdd%20custom%20domain.png?alt=media)

{% hint style="info" %}
ドメインを「mydomain.com」のように設定しようとしている場合は、「www」を追加して「[www.mydomain.com」となるようにする必要があります。](http://www.mydomain.com」となるようにする必要があります。)
{% endhint %}

**4.)** **追加**をクリックすると、AdaloがDNSレコードを追加するための情報を生成します。このプロセスは各ドメインプロバイダーごとに異なるため、提供元のリンクを確認してください。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-ca7f7682de2f39372b97403237c3a121b987c8aa%2FCustom%20Domain%20Settings.png?alt=media)

**5.)** ドメインプロバイダーにレコードを追加したら、Adaloに戻り、**セットアップをテスト**をクリックします。

{% hint style="info" %}
**注意:** 下記のエラーが表示される場合は、プロバイダーによってはDNSレコードの伝播に最大24時間かかる場合があります。通常、30分以内に完了します。

<img src="https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-1be8ac4f5921ec430e78281e30090c78d5a12760%2FScreen%20Shot%202022-12-13%20at%209.31.41%20AM.png?alt=media" alt="" data-size="original">
{% endhint %}

*プロバイダーによっては、DNSレコードの伝播に最大24時間かかる場合があります。通常、10分以内に完了します。*

**6.)** **Finish Adding Domain**をクリックできる成功メッセージが表示されるはずです。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-5005b376135e7cf09489af2be6126ef6f740d993%2FSuccess-custom%20domain.png?alt=media)

**7.)** デスクトップWebアプリとPWS（モバイル）アプリの両方で、Adaloエディタの左側のツールバーで**公開**ボタンをクリックして、カスタムドメインを使用できます。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-e9bc5db1586686cf40419314e3b837d0f9c47cc0%2FScreen%20Shot%202021-12-06%20at%2011.11.25%20AM.png?alt=media) **8.)** デスクトップWebアプリの場合、追加したばかりのカスタムドメインを選択するためにドロップダウンを使用するか、ここから別のカスタムドメインを追加することもできます。\
完了したら、**保存** をクリックしてください。\
デスクトップWebアプリの場合、ここでURLのスラッグも変更できることに注意してください。\
**公開日** セクションには、アプリが現在公開されている場所が表示されます。\
ドメインの変更を保存した後は、**公開日** の下に変更が反映されるのを見るためにページをリフレッシュする必要があるかもしれません。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-293fcbb159d2d14f83bc759ce1410fe34c32808c%2FScreen%20Shot%202021-12-06%20at%2012.49.09%20PM.png?alt=media)

**9.)** PWA（モバイル）アプリの場合、**Progressive Web App** ドロップダウンをクリックし、ドメインのドロップダウンから追加したばかりのドメインを選択するか、新しいものを追加してください。\
PWA（モバイル）アプリでは、Adaloのサブドメインであるyourteam.adalo.com は使用できないことに注意してください。\
完了したら、**保存** をクリックしてください。PWAアプリでは、URLのスラッグを変更することはできません。\
**公開日** セクションには、アプリが現在公開されている場所が表示されます。\
ドメインの変更を保存した後は、**公開日** の下に変更が反映されるのを見るためにページをリフレッシュする必要があるかもしれません。

![](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-14d8937ed8ea5a26adf8111ef8b81e9941ce8e24%2FScreen%20Shot%202021-12-06%20at%2012.51.46%20PM.png?alt=media)

#### 人気のあるプロバイダーでCNAMEレコードを設定する方法：

* [INOS](https://www.ionos.com/help/domains/configuring-cname-records-for-subdomains/configuring-a-cname-record-for-a-subdomain/?utm_source=search\&utm_medium=global\&utm_term=cname\&utm_campaign=HELP_CENTER\&utm_content=/help/domains/using-domains/)
* [123-reg](https://www.123-reg.co.uk/support/domains/how-do-i-change-the-nameservers-for-my-domain-name/)
* [AWS](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-name-servers-glue-records.html)
* [BigRock](https://manage.bigrock.in/kb/servlet/KBServlet/faq471.html#defcname)
* [Bluehost](https://my.bluehost.com/hosting/help/cname)
* [Crazy Domains](https://www.crazydomains.com.au/help/how-to-add-and-update-cname-records/)
* [DreamHost](https://help.dreamhost.com/hc/en-us/articles/215414867)
* [easyDNS](https://kb.easydns.com/knowledge/how-to-make-a-dns-entry/)
* [eNom](https://www.enom.com/kb/kb/kb_0002_change-host-records.htm?Highlight=cname)
* [FastDomain](https://my.fastdomain.com/cgi/help/cname)
* [GoDaddy](https://in.godaddy.com/help/add-a-cname-record-19236?)
* [Google Domains](https://support.google.com/domains/answer/9211383?hl=en)
* [HostGator](https://www.hostgator.com/help/article/manage-dns-records-with-hostgatorenom)
* [Hover](https://help.hover.com/hc/en-us/articles/217282457-Managing-DNS-records-#h_5eab4aa7-b044-4cc6-a3c0-5869f583edc8)
* [MelbourneIT](https://support.melbourneit.com.au/articles/help/Creating-CNAME-Zone-Records/?q=cname\&fs=Search\&pn=1)
* [Names.co.uk](https://www.names.co.uk/support/domains/1156-changing_your_domains_dns_settings.html)
* [Namecheap](https://www.namecheap.com/support/knowledgebase/article.aspx/9646/2237/how-to-create-a-cname-record-for-your-domain)
* [Network Solutions](http://www.networksolutions.com/support/cname-records-host-aliases-2/)
* [Register.com](https://knowledge.web.com/subjects/article/KA-01097/en-us#Rcom)
* [SiteGround](https://www.siteground.com/kb/how_to_change_my_cname_record/)
* [TierraNet](https://www.tierra.net/faq/#Q14)
* [Wix](https://support.wix.com/en/article/adding-or-updating-cname-records-in-your-wix-account)
  {% endtab %}
  {% endtabs %}

## Learn More

* You can learn more about DNS records, domain names, hosting, and subdomains here with this very good [guide ](https://www.godaddy.com/garage/dns-records-a-beginners-guide/)by GoDaddy.
* Mastering adding and managing DNS records with your domain provider can be a very valuable skill to have, especially when you need to add them for email marketing, payment processors, and website hosting services.
* You cannot use the same subdomain for two different apps, but you can create as many subdomains as you like. For instance, if you have a web version and a mobile version of your app. You may have a web.yourapp.com and an app.yourapp.com subdomain.
* In instances such as [Sign in with Google](https://help.adalo.com/ja/component-basics/marketplace-components/sign-in-with-google), [Sign in with Apple](https://help.adalo.com/ja/component-basics/marketplace-components/sign-in-with-apple), and [In App Purchases](https://help.adalo.com/ja/component-basics/marketplace-components/single-use-in-app-purchases), you may need to use your Adalo or custom domain during the setup of those features.
* You cannot use Adalo subdomains on PWA apps, only on desktop web apps. You can however, use custom subdomains on PWA apps. Below is a table to help make this a bit clearer:

| Use               | Adalo Subdomain | Custom Subdomain |
| ----------------- | :-------------: | :--------------: |
| Desktop Web Apps  |        ✅        |         ✅        |
| PWA (Mobile) Apps |        🚫       |         ✅        |
| Native Apps       |       N/A       |        N/A       |

## Help

If you need additional help with this article, you can always ask in our[ community forum](https://forum.adalo.com/)! Be sure to paste the link to this article in your post as well!

Do you have a tutorial or help doc request? [Let us know!](https://ideas.adalo.com/tutorial-requests)
