无法克隆heroku应用程序

iezvtpos  于 2022-11-13  发布在  其他
关注(0)|答案(2)|浏览(174)

我无法使用clone命令克隆我的heroku应用程序(2年以上),因为我收到以下错误:
不支持bamboo-mri-1.9.2堆栈
我该怎么办?

zlhcx6iw

zlhcx6iw1#

对于旧的堆栈,您需要使用ssh而不是https。

> heroku git:clone --ssh-git -a app

其中app是heroku应用程序的名称

1hdlvixo

1hdlvixo2#

SSH传输已于2022年3月禁用:

我不得不使用slugs下载一个旧项目的代码:

heroku plugins:install heroku-slugs
heroku slugs:download -a yourapp

这产生了一个错误:

Downloading... ████████████████████████▏  100% 00:00 564kB                                                                                                                                                                                   
tar: Error opening archive: Unrecognized archive format
 ▸    Command failed: tar -xf yourapp/slug.tar.gz -C yourapp
 ▸    tar: Error opening archive: Unrecognized archive format
 ▸

所以我按照建议安装了squashfs here

brew install squashfs
cd yourapp
unsquashfs -f -d out slug.tar.gz

这将在out目录中留下代码。

相关问题