Thông tin cơ bản:Lỗi // Cách sử dụng: đường ray mới APP_PATH [tùy chọn] // khi chạy 'đường ray máy chủ'
Tôi đang sử dụng GIT để lưu trữ dự án với các tệp Ruby trong đó. Dự án này nằm trong thư mục SITES của tôi trong thư mục chính trên máy Mac của tôi.
Tôi có Ruby: 1.8.7
Tôi vừa nâng cấp Rails để: 3.0.3
Tất cả tôi đang cố gắng để thực hiện là để có thể làm cho localhost.com:3000 trong trình duyệt của tôi dự án GIT mà tôi đã tải xuống để tôi có thể làm việc trên đó một cách cục bộ.
Tôi chạy lệnh 'đường ray máy chủ và được trả về thông điệp dưới đây ::
Usage:
rails new APP_PATH [options]
Options:
[--skip-gemfile] # Don't create a Gemfile
-m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL)
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db)
# Default: sqlite3
-O, [--skip-active-record] # Skip Active Record files
-J, [--skip-prototype] # Skip Prototype files
-T, [--skip-test-unit] # Skip Test::Unit files
[--dev] # Setup the application with Gemfile pointing to your Rails checkout
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
-G, [--skip-git] # Skip Git ignores and keeps
-b, [--builder=BUILDER] # Path to an application builder (can be a filesystem path or URL)
[--edge] # Setup the application with Gemfile pointing to Rails repository
Runtime options:
-f, [--force] # Overwrite files that already exist
-s, [--skip] # Skip files that already exist
-p, [--pretend] # Run but do not make any changes
-q, [--quiet] # Supress status output
Rails options:
-h, [--help] # Show this help message and quit
-v, [--version] # Show Rails version number and quit
Description:
The 'rails new' command creates a new Rails application with a default
directory structure and configuration at the path you specify.
Example:
rails new ~/Code/Ruby/weblog
This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
See the README in the newly created application to get going.
Tôi gặp lỗi tương tự và tôi cũng nằm trong thư mục chính xác. Bất kỳ điều gì khác có thể gây ra điều này? – Ava
Điều gì sẽ xảy ra nếu bạn cố gắng chạy 'đường ray c'? Tên ứng dụng của bạn là gì và thư mục nào bạn đang chạy lệnh máy chủ từ? –
Xin chào, tôi đã giải quyết nó. Tôi đã phải chạy script/server và cài đặt iconv. – Ava