Rails와 Ruby를 업데이트했습니다.
$ ruby -v
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]
$ rails -v
Rails 4.1.8
이제 실행 rails server
하면 다음과 같이 표시됩니다.
$ rails server
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /Users/guilherme/.rbenv/versions/2.1.5/bin/ruby
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
[--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile
-B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install
{ ... }
Rails를 시작하려면 어떻게해야합니까?
프로젝트 디렉토리에 있지 않으면 Rails 서버를 시작할 수 없습니다.
myapp 프로젝트에서 작업하고 있다고 가정합니다. 명령 줄에서 해당 프로젝트 디렉토리로 이동 한 다음 Rails 서버를 실행해야합니다.
예 : 아직 Rails 앱을 생성하지 않았다고 가정합니다.
$> rails new myapp
$> cd myapp
이제 다음 두 명령 중 하나로 Rails 서버를 시작합니다.
$> rails server
또는:
$> rails s
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다