如何在heroku服务器上创建符号链接?

发布于 2024-10-09 10:05:54 字数 93 浏览 0 评论 0原文

我的 Rails 应用程序位于 heroku 服务器上。 我需要为公用文件夹创建符号链接。

如何在heroku服务器上创建符号链接?

谢谢!

My rails app is on heroku server.
I need to create symlink for public folder.

How to create symlink on heroku server?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紧拥背影 2024-10-16 10:05:54

您可以使用临时文件系统来执行此操作,但前提是您使用 Cedar 堆栈(在撰写本文时目前处于测试阶段)。有关 Heroku 堆栈的更多信息: http://devcenter.heroku.com/articles/stack

只是简单像平常一样创建一个符号链接 - 但您也应该期望它在启动时不存在。

You can do this using the Ephemeral Filesystem, but only if you're using the Cedar stack (currently in beta at the time of this writing). More info on Heroku's stacks: http://devcenter.heroku.com/articles/stack

Just simply make a symlink like you normally would -- but you should also expect it to not exist at boot time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文