6
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

`rails s`で サーバーが起動せず、Rails の Usage がでるだけ

Posted at

Railsプロジェクト内で、rails sを実行したところ、サーバーが起動せず、以下のような Usage がでるだけという現象に遭ったんでメモ。

Usage:
  rails new APP_PATH [options]

Options:
      [--skip-namespace], [--no-skip-namespace]            # Skip namespace (affects only isolated applications)
  -r, [--ruby=PATH]                                        # Path to the Ruby binary of your choice
                                                           # Default: /Users/tokio/.rbenv/versions/2.4.1/bin/ruby
  -m, [--template=TEMPLATE]                                # Path to some application template (can be a filesystem path or URL)
  -d, [--database=DATABASE] 
 
...hogehoge

以下を実行したらなおった。

bundle exec rake rails:update:bin

自分の場合は、 development 環境でごちゃごちゃしたかったんで、一応以下のようにオプションつけてやった。

bundle exec rake rails:update:bin RAILS_ENV=development
6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?