2017-10-10 102 views
0

我從未見過這個奇怪的問題。我在EC2實例上有一個Rails 4.2.5應用程序。 Ruby版本是2.3.1。運行「rails s」會導致幫助頁面被打印出

一切都捆綁在一起,並安裝了罰款,但是當我運行rails s,我最終得到其他標誌的手冊頁,能直接從終端提供給rails

$ rails s 
bin/rails:6: warning: already initialized constant APP_PATH 
/home/ubuntu/githubstars/bin/rails:6: warning: previous definition of APP_PATH was here 
Usage: rails COMMAND [ARGS] 

The most common rails commands are: 
generate Generate new code (short-cut alias: "g") 
console  Start the Rails console (short-cut alias: "c") 
server  Start the Rails server (short-cut alias: "s") 
dbconsole Start a console for the database specified in config/database.yml 
      (short-cut alias: "db") 
new   Create a new Rails application. "rails new my_app" creates a 
      new application called MyApp in "./my_app" 

In addition to those, there are: 
destroy  Undo code generated with "generate" (short-cut alias: "d") 
plugin new Generates skeleton for developing a Rails plugin 
runner  Run a piece of code in the application environment (short-cut alias: "r") 

All commands can be run with -h (or --help) for more information. 

$ rails -v 
Rails 4.2.5 

$ ruby -v 
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] 

回答

2

你缺少你的bin目錄。在某處生成一個新項目並複製bin文件夾。

+0

我繼承了這個項目,事實證明,所有這些干擾的需求/負載。謝謝! –