我正在遵循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
”
它指出找不到API文件夹内的我的Gemfile。因此,我想问一下“如何在“ Heroku local -f Procfile.dev”推荐后找到Gemfile或捆绑软件” ????
谢谢
答案 0 :(得分:0)
您只需要将目录更改为您的应用,然后运行bundle install:)