2017-10-10 7 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

나는 프로젝트를 상속 받았으며,이 모든 요구/부하가 간섭하고 있음이 밝혀졌습니다. 감사! –