> For the complete documentation index, see [llms.txt](https://docs-embed.anyflow.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-embed.anyflow.jp/release/deploy.md).

# デプロイ

### 概要

デプロイ機能は、ソリューションをAnyflow SDKやウィザードホスティングから利用できる状態に公開する機能です。

デプロイするための手順は以下の通りです。

## ソリューションをデプロイする

1\. ソリューションエディタ右上のプルダウンメニューをクリックします。

<figure><img src="https://images.tango.us/public/screenshot_65dc9ab4-9e42-4cd5-93e2-702b68ca4709?crop=focalpoint&#x26;fit=crop&#x26;fp-x=0.9619&#x26;fp-y=0.0476&#x26;fp-z=3.1496&#x26;w=1200&#x26;mark-w=0.2&#x26;mark-pad=0&#x26;mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n&#x26;ar=3360%3A1828" alt="" width="375"><figcaption></figcaption></figure>

2. デプロイボタンを押します。

<figure><img src="https://images.tango.us/public/screenshot_1af850b4-dac8-4ef4-852a-894d5e980124?crop=focalpoint&#x26;fit=crop&#x26;fp-x=0.9304&#x26;fp-y=0.1023&#x26;fp-z=2.8192&#x26;w=1200&#x26;mark-w=0.2&#x26;mark-pad=0&#x26;mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n&#x26;ar=3360%3A1828" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://images.tango.us/public/image_62b8d695-f475-43d3-a16a-92b99979e384?crop=focalpoint&#x26;fit=crop&#x26;fp-x=0.5108&#x26;fp-y=0.4969&#x26;fp-z=2.0000&#x26;w=1200&#x26;mark-w=0.2&#x26;mark-pad=0&#x26;mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n&#x26;ar=1680%3A915" alt="" width="375"><figcaption></figcaption></figure>

　[デプロイ環境](/release/deploy-environment.md)を設定している場合は、どの環境にデプロイするかを選択できます。

<figure><img src="/files/27TchaA2AFnl7USg7K30" alt="" width="375"><figcaption></figcaption></figure>

4. デプロイボタンを押すとデプロイ完了です。

<figure><img src="/files/VIj5RWbQHTCyk8j8a8L8" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="warning" %}

### ヒント

[自社プロダクトへの組み込み](/release/embed.md) または [ウィザードホスティング](/release/wizard-hosting.md) のどちらかを実施していないと、デプロイを行っただけではエンドユーザーは利用できません。
{% endhint %}

{% hint style="danger" %}

## スケジューラートリガーのデプロイ時の注意

デプロイ中のソリューションに紐付くスケジューラートリガーは、<mark style="color:red;">**デプロイ中は発火しなく**</mark>なります。\
デプロイの開始タイミングによっては、<mark style="color:red;">**スケジューラートリガーの実行がスキップされる**</mark>場合があります。

十分注意の上、ソリューションの設計やデプロイの実行をお願いいたします。

**＜注意が必要なケース＞**

* **間隔が短いスケジューラートリガーをご利用の場合**
* **デプロイのタイミングがスケジューラートリガーの実行時刻と重なりやすい場合**
* **スケジュールがスキップされた際にデータ欠損などが起こる場合**
  {% endhint %}

## バージョン履歴

ソリューションの変更履歴は「バージョン履歴」画面で確認することができます。

バージョンの番号や作成日・作成者、デプロイ先の環境が分かるほか、3点リーダーからバージョンの切り戻しやデプロイの削除を行うことができます。

<figure><img src="/files/f71EjlOMiYpDP9IdiLTI" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="/files/QVYcl95KugZsQRqzrlc8" alt="" width="563"><figcaption></figcaption></figure>

## ソリューションの互換性について

以下のケースでは互換性チェックがはたらき、デプロイを行うことができません。

* トリガーが変更された場合
  * e.g. Clickトリガー を My Eventトリガーに変更した
  * e.g. My Eventトリガー を Requestトリガーに変更した
* コネクタが追加された場合
  * e.g. HubSpot連携を追加した
* アクションに必要なスコープが追加された場合
  * e.g. Slackのチャンネル通知を行うソリューションを、Slackのユーザー検索を行うものに変更した
* ウィザードに入力必須のフィールドを追加した場合
  * e.g. Slackのチャンネルを入力するフィールド（必須）を追加した

<div align="center"><figure><img src="/files/LtMZO3pwftt4tbq3cROl" alt="" width="375"><figcaption></figcaption></figure></div>

## 互換性のないバージョンをデプロイしたい場合

互換性のないバージョンをデプロイするには、全てのエンドユーザーが現行バージョンを**アンインストール**する必要があります。

アンインストールは、SDKによる方法とデプロイを削除する方法があります。

### SDKによる方法

SDKの[uninstallSolution メソッド](/anyflow-sdk/docs.md#uninstall-wizard)を実行します。\
これには、SDKが設置されている画面をエンドユーザーが訪れる必要があります。

数名程度がアンインストールすれば済む場合は、小規模なアナウンスなどを経て、SDKによる方法を実施するとスムーズです。

### デプロイを削除する方法

ある程度の人数に対し強制的にアンインストールを行う場合は、ソリューションエディタのバージョン履歴画面からデプロイの削除を実施してください。

<figure><img src="/files/sz8UphmwlAXZxdwYUnmj" alt=""><figcaption></figcaption></figure>

デプロイを削除すると、そのデプロイに紐づく全てのエンドユーザーのソリューションがアンインストールされます。

### 注意点

{% hint style="warning" %}
いずれの方法においても、アンインストール後はエンドユーザーが再度インストールを行う必要があり、これは各エンドユーザー自身が実施する必要があります。

デプロイの削除は十分に周知・留意のうえ計画的に実施いただくことを推奨いたします。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs-embed.anyflow.jp/release/deploy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
