Rails C and Rails S not working when in the correct directory.
Rails C和Rails S在正确的目录中时不起作用。
have tried:
$ bundle exec rake rails:update:bin
this returns the following error:
这会返回以下错误:
bundler: command not found: rails:update:bin
Install missing gem executables with `bundle install`
I have ran:
我跑了:
Bundle Install
this still returns the same error
这仍然会返回相同的错误
Have changed directories (higher and lower), repeated steps and attempted commends for same result.
更改了目录(更高和更低),重复步骤并尝试赞同相同的结果。
I was running rails server, when i stopped the server and tried to restart server, the error appeared, so I'm thinking this has something to do with a physical location change (potentially the bin file), which is consistent as when I try and run a bin/rails command, i'm receiving an error of:
我正在运行rails服务器,当我停止服务器并尝试重新启动服务器时,出现错误,所以我认为这与物理位置更改(可能是bin文件)有关,这与我尝试时一致并运行bin / rails命令,我收到错误:
bundler: command not found: rails:update:bin
Install missing gem executables with `bundle install`
I have tried to rake the bin folder as below:
我试图耙bin文件夹,如下所示:
rake rails:update:bin
however I am receiving this error:
但是我收到这个错误:
rake aborted!
Don't know how to build task 'rails:update:bin' (see --tasks)
Finally, I have checked the physical location and there is a .bin file, however this folder is empty and it's not in a .gitignore directory.
最后,我检查了物理位置并且有一个.bin文件,但是这个文件夹是空的,它不在.gitignore目录中。
Ancillary information Rails version: 5.1.4 ruby version: 2.3.4 Server: heroku OS. Ubuntu 16.04 (via virtualbox). I have not upgraded rails, this is a fresh install
辅助信息Rails版本:5.1.4 ruby版本:2.3.4服务器:heroku OS。 Ubuntu 16.04(通过virtualbox)。我没有升级导轨,这是一个全新的安装
I am at a loss.
我很茫然。
1 个解决方案
#1
0
rails update:bin
or rake update:bin
These are the right ways that execute a rake task.
rails update:bin或rake update:bin这些是执行rake任务的正确方法。
#1
0
rails update:bin
or rake update:bin
These are the right ways that execute a rake task.
rails update:bin或rake update:bin这些是执行rake任务的正确方法。