简体   繁体   English

使用github for Windows无法在拉回购后启动Rails服务器

[英]using github for windows can't start rails server after pulling a repo

I added some collaborators to a rails project on github. 我在github上的rails项目中添加了一些合作者。 They pull down the project using github for windows but then cannot start the rails server 他们使用github for Windows下拉项目,但随后无法启动Rails服务器

rails server gives them the same output as typing rails rails server为他们提供与键入rails相同的输出

When we do ls we get: 当我们做ls我们得到:

在此处输入图片说明

From the Github directory I tried chmod -R 777 sindika but it didn't work. 在Github目录中,我尝试使用chmod -R 777 sindika但没有成功。 Why can't they pull down the project and start the server? 他们为什么不能取消项目并启动服务器?

Seems like the version of your globally installed rails gem is different from the one the project is built on, so Rails don't recognize this folder as its project. 似乎全局安装的rails gem的版本与项目所基于的版本不同,因此Rails不会将此文件夹识别为项目。 Doing bundle && bundle exec rails s should do the trick. 使用bundle && bundle exec rails s可以解决问题。 Another way to solve this would be to uninstall the current version of the Rails gem and install the one that corresponds to your project. 解决此问题的另一种方法是卸载当前版本的Rails gem,然后安装与您的项目相对应的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM