Could not locate Gemfile after executing “bundle install”

雨燕双飞 提交于 2019-12-31 03:14:11

问题


Hey, I am completely new to Rails and just started created my first Project, following the Steps of a tutorial.

I created the new Project using: rails myapp.

Then I should execute bundle install, this did not work because bundler has not been installed, after an Update on Gems and installing bundler I have been able to execute bundle install, but every time I receive: Could not locate Gemfile

I checked my project dir, it is true there is no Gemfile, but should this be created automatically or not?

Thanks in advance


回答1:


That depends on your version of rails. Since you simply write rails myapp I assume you do not use Rails 3, where you would write rails new myapp. In Rails 3, at least, the Gemfile is created for you automatically, and I would recommend using the latest version of Rails.



来源:https://stackoverflow.com/questions/5896137/could-not-locate-gemfile-after-executing-bundle-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!