ruby-on-rails - 在“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或捆绑包”???
谢谢
解决方案
您只需要将目录更改为您的应用程序,然后运行 bundle install :)
推荐阅读
- c++ - c++ 不存在合适的构造函数来从“int”转换为“std::pair”
" - python - Python 没有从表情符号中捕获 UnicodeEncodeError
- ruby-on-rails - 使用 vuejs 前端上传图片
- java - 异常后Java程序不继续
- unity3d - Unity A* 图形不会随画布缩放
- regex - 有没有办法进行渐进式 REGEX 字符串替换?
- rsa - 如何在 deno 中使用 RSA 私钥进行加密?
- r - R 版本 4.0.2 出错,但在带有 DiagrammR 的 R 版本 3.6.3 中没有:!LaTeX 错误:环境 grViz 未定义
- python - 如何将XML中的信息从python提取到列表中
- python - 用python检测关机事件