首页 > 解决方案 > 在“Heroku local -f Procfile.dev”推荐之后如何定位 Gemfile 或 bundle

问题描述

我正在按照 Heroku 博客文章中的说明进行操作:https : //blog.heroku.com/a-rock-solid-modern-web-stack 以及需要为 Heroku 设置 Procfile.dev 的部分。

该文件需要放置在我的“客户端”(React Web Front)和“api”(Rails API 后端)文件夹所在的应用程序的根目录中。所以,当我插入命令时:

“heroku 本地 -f Procfile.dev”

该错误指示以下内容:

10:00:56 PM web.1 |  yarn run v1.9.4
10:00:56 PM api.1 |  Could not locate Gemfile or .bundle/ directory
[DONE] Killing all processes with signal  SIGINT
10:00:56 PM api.1 Exited with exit code null
10:00:56 PM web.1 Exited with exit code 

"

它指出它找不到我的 Gemfile,它位于 API 文件夹中。所以,我想问“如何在“Heroku local -f Procfile.dev”推荐之后找到Gemfile或捆绑包”???

谢谢

标签: ruby-on-railsherokuheroku-cli

解决方案


您只需要将目录更改为您的应用程序,然后运行 ​​bundle install :)


推荐阅读