Heroku重新安装“目录不为空”错误

时间:2018-08-11 04:15:28

标签: ruby-on-rails heroku

我有一个简单的Rails应用,该应用在启动heroku open时运行(localhost:3000),但是在启动heroku open时拒绝运行。我曾尝试在这里(和其他地方)使用不同的指针进行各种修复,并反复更新和安装捆绑器。今天,当我尝试Install the Heroku CLI from https://cli.heroku.com时,我得到了:

brew install heroku/brew/heroku

所以我做到了(即使我认为已经安装了Heroku CLI)。奇怪的是:我在计算机上找不到已安装的Heroku CLI应用程序。为了确保已正确安装Heroku CLI,我尝试了

Warning: heroku/brew/heroku 7.7.8 is already installed and up-to-date To reinstall 7.7.8, run 'brew reinstall heroku'

按照Heroku网站上的说明进行操作。果然,我收到此消息:

brew reinstall heroku

尝试Error: The brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/heroku Target /usr/local/bin/heroku already exists. You may want to remove it: rm '/usr/local/bin/heroku' To force the link and overwrite all conflicting files: brew link --overwrite heroku To list all files that would be deleted: brew link --overwrite --dry-run heroku Possible conflicting files are: /usr/local/bin/heroku -> /usr/local/lib/heroku/bin/heroku .... ==> Summary /usr/local/Cellar/heroku/7.7.8: 17,135 files, 45.5MB, built in 1 minute 9 seconds Error: Directory not empty @ dir_s_rmdir - /usr/local/Cellar/heroku/7.7.8.reinstall 时收到以下消息:

const curl = new (require( 'curl-request' ))();

curl
.get('http://169.254.169.254/latest/meta-data/public-ipv4')
.then(({statusCode, body, headers}) => {
    console.log(statusCode, body, headers);
    // start express here
})
.catch((err) => {
    throw err;
});

这甚至意味着什么?我应该在不搞乱其他应用程序的情况下做到这一点吗?我刚刚开始了解本地/全局/根目录安装之间的差异,因此可以使用一些帮助来确定这一点。预先感谢!

0 个答案:

没有答案