Can't start Rails

eugui

I updated Rails and Ruby:

$ ruby -v
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]
$ rails -v
Rails 4.1.8

Now when I execute rails server I get this:

$ 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
  { ... }

What I have to do to start Rails?

Prabhakar Undurthi

You can not start the Rails server unless you're in your project directory.

Suppose if you're working on myapp project. You've to move to that project directory on your command line and then run the Rails server.

Example: Assuming you didn't create the Rails app yet:

$> rails new myapp
$> cd myapp

Now start the Rails server with either of these two commands:

$> rails server

or:

$> rails s

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related