3

我尝试rclone mount在 Heroku dyno 中使用,但它似乎不起作用,因为没有fusermount. 我发现了这个,一个heroku的保险丝构建包,它也不起作用。

我进入 dyno's bashby heroku run bash,并输入了这些命令

# These commands came from: https://github.com/kenshin23/heroku-fuse-buildpack/blob/master/bin/compile
wget https://raw.githubusercontent.com/kenshin23/fuse-lib/master/fuse_2.9.2.tar.gz
mkdir -p vendor/fuse
tar -C vendor/fuse -xvf fuse_2.9.2.tar.gz
# These commands came from: https://github.com/kenshin23/heroku-fuse-buildpack/blob/master/bin/compile
PATH="$PATH:/app/vendor/fuse/bin"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/app/vendor/fuse/lib"

rclone mount DRIVE:/foo bar # Assuming rclone is properly configured

而且我只从以下位置收到这些错误消息rclone mount

2020/01/02 10:18:49 mount helper error: fusermount: fuse device not found, try 'modprobe fuse' first
2020/01/02 10:18:49 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
4

1 回答 1

0

Heroku Dynos 是有效的容器,与主机系统隔离。尝试更改任何系统文件都将无法正常工作,因此我们无法初始化熔断器设备。

顺便说一句,使用 Docker 进行部署可能是一个绝妙的主意。

于 2021-03-09T04:03:58.990 回答