1
0
hugo/content/blog/2021-05-05-heroku.md
2024-04-23 22:21:26 +09:00

38 lines
1.2 KiB
Markdown

+++
date = "2021-05-05"
tags = ["heroku"]
title = "heroku stackをheroku-20に移行する"
slug = "heroku"
+++
elixir+phoenixで作ってるappが古いstack:heroku-16で動いてて、versionを上げろと言われてたので、heroku-20にしてみた。
> The Heroku-16 stack is end-of-life
> This app is using the Heroku-16 stack, which reached end-of-life on May 1st, 2021. Apps using Heroku-16 no longer receive security updates, and from June 1st, 2021, builds will be disabled. Please upgrade your app to a newer Heroku stack. Visit here to learn more
https://help.heroku.com/0S5P41DC/heroku-16-end-of-life-faq
```sh
$ heroku git:clone -a $app
$ cd $app
$ heroku buildpacks:set hashnuke/elixir
```
```sh:elixir_buildpack.conf
elixir_version=1.9.0
release=true
```
これでpushしても以下のエラーが出るけど、cacheを削除すると動きます。
> /app/.platform_tools/erlang/erts-10.6.4/bin/beam.smp: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
https://github.com/HashNuke/heroku-buildpack-elixir/issues/197
```sh
$ heroku plugins:install
$ heroku plugins
$ heroku builds:cache:purge
$ git push heroku master
```