---
title: "Heroku の Slug サイズを削減する"
description: "まず、Heroku Repo プラグインをインストールします："
canonical: https://oozou.com/til/reduce-heroku-slug-size-113
locale: ja
date: 2021-01-06
topic: heroku
---

# Heroku の Slug サイズを削減する

> まず、Heroku Repo プラグインをインストールします：

Published: 2021-01-06 · Topic: [heroku](https://oozou.com/ja/til-topics/heroku) ([markdown](https://oozou.com/ja/til-topics/heroku.md))

まず、[Heroku Repo プラグイン](https://github.com/heroku/heroku-repo)をインストールします：

```shell
$ heroku plugins:install heroku-repo
```

次に、以下を実行します：

```shell
$ heroku repo:gc --app app-name 
$ heroku repo:purge_cache --app app-name
```

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/ja/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
