---
title: "Getting Startedテンプレートプロジェクトを公開、実行、テストしてください"
slug: "publish-run-and-test-the-getting-started-template-projects"
abstract: "sitecoreのGetting Startedテンプレートプロジェクトの公開、実行、テスト方法。"
---
# Getting Startedテンプレートプロジェクトを公開、実行、テストしてください

> !重要以前にアプリを統合していた場合、それは旧版のASP.NETコアレンダリングSDK(バージョン22以前)を使用しています。このSDKは更新を受け取っていないため、[最新のバージョンへのアップグレード](https://doc.sitecore.com/xmc/en/developers/asp-net/latest/asp-net-core-sdk/upgrade-from-v22.html) をお勧めします。

[Getting Startedテンプレート](https://doc.sitecore.com/xp/ja/developers/hd/19/sitecore-headless-development/walkthrough--using-the-getting-started-template.html "Walkthrough: Using the Getting Started template")を使うと、コンテンツエディターで内容を修正・公開し、Visual Studioでコードを修正・公開します。

Platformプロジェクトの公開:

1.  コンテンツエディターの **「Publish** 」タブの「 **Publish** 」アイコンの下に、 **黒い矢印** (![Illustration showing the black arrow on the Publish icon.](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/hd/19/sitecore-headless-development/images/publish.png))をクリックし、「 **Publish site**」をクリックしてください。
2.  **Publish Site**のウィンドウで**「Smart publish**」を選択し、「**Publish」**をクリックします。

RenderingHostプロジェクトは[dotnet watch](https://docs.microsoft.com/en-us/aspnet/core/tutorials/dotnet-watch?view=aspnetcore-3.1)を使用しており、すべての変更を自動的にコンパイルし、myproject\_rendering\_1コンテナにデプロイします。レンダリングホストのページは[https://www.myproject.localhost/](https://www.myproject.localhost/)のページで、ダッシュボードのコンテナをクリックするとレンダリングホストログDocker確認できます。

> !注MyProjectフォルダからコマンドを実行することでレンダリングホストログも確認できます。使用しているDockerのバージョンによっては、以下のいずれかのコマンドを実行することができます。
> 
> -   docker-compose logs -f <rendering-app-service-name>.
>     
> -   Docker Compose V2以降では、docker compose logs -f <rendering-app-service-name>。
>     
> -   docker logs -f <container-name>.
>     
> 
> Dockerコマンドの詳細については、公式の[Docker CLIドキュメント](https://docs.docker.com/engine/reference/commandline/cli/)を参照してください。

RenderingHostプロジェクトをローカルデバッグアプリケーションとして実行するには:

-   Visual Studio、Solution ExplorerでRenderingHostプロジェクトを右クリックし、「 **Debug**」をクリックして **「新しいインスタンスを起動**」をクリックします。
    
    Visual Studioは、レンダリングホストページのブラウザタブと、レンダリングホストログのコンソールウィンドウを開きます。