tła:Błąd // Zastosowanie: szyny nowy APP_PATH [opcje] // gdy uruchomiony serwer „szyny”
Używam GIT uzyskać repozytorium projektu z plików Ruby w nim. Projekt znajduje się w moim folderze SITES w katalogu domowym na moim Macu.
Mam Ruby 1.8.7
właśnie uaktualniony Rails do: 3.0.3
Wszystko staram się osiągnąć to, aby móc uczynić localhost.com:3000 w moim przeglądarkę projekt GIT już pobrałem, więc mogę pracować na nim lokalnie.
Pobiegłem polecenia „szyn serwer” i został zwrócony komunikat poniżej ::
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.
Otrzymuję ten sam błąd i również znajduję się we właściwym katalogu. Jakieś inne przyczyny tego? – Ava
Co stanie się, jeśli spróbujesz uruchomić 'rails c'? Jaka jest nazwa Twojej aplikacji i z jakiego katalogu uruchamiasz komendę serwera? –
Hej, David, rozwiązałem to. Musiałem uruchomić skrypt/serwer i zainstalować iconv. – Ava