前提・実現したいこと
railsを始めて3日目の初心者です。
railsでこれから投稿機能を作ろうとしています。
フォーム画面の表示
フォーム入力、送信
送信内容をDBへ保存
リダイレクト
上記の処理を行い、サーバーを起動させようとしたところ次のエラーが出ました。
発生している問題・エラーメッセージ
vagrant@ubuntu-bionic:/vagrant/sample_app$ rails s
=> Booting Puma
=> Rails 5.2.1 application starting in development
=> Run rails server -h
for more startup options
Puma starting in single mode...
- Version 3.12.0 (ruby 2.5.1-p57), codename: Llamas in Pajamas
- Min threads: 5, max threads: 5
- Environment: development
- Listening on tcp://0.0.0.0:3000
Use Ctrl-C to stop
^C- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2018-10-25 04:54:16 +0000 ===
- Goodbye!
Exiting
試したこと
Run rails server -h
for more startup options
から rails server -h をコマンドしたものの、別のエラーが出ました。
Usage:
rails server [puma, thin etc] [options]
Options:
-p, [--port=port] # Runs Rails on the specified port - defaults to 3000.
-b, [--binding=IP] # Binds Rails to the specified IP - defaults to 'localhost' in development and '0.0.0.0' in other environments'.
-c, [--config=file] # Uses a custom rackup configuration.
# Default: config.ru
-d, [--daemon], [--no-daemon] # Runs server as a Daemon.
-e, [--environment=name] # Specifies the environment to run this server under (development/test/production).
-P, [--pid=PID] # Specifies the PID file.
# Default: tmp/pids/server.pid
-C, [--dev-caching], [--no-dev-caching] # Specifies whether to perform caching in development.
[--early-hints], [--no-early-hints] # Enables HTTP/2 early hints.
railsを始めて3日目なので、噛み砕かれた内容での返信をいただけたら大変助かります。
回答1件
あなたの回答
tips
プレビュー