見出し画像

開発環境構築備忘録 Ruby on Rails編(Windows失敗編)

※注意!
インストールに挑戦しましたが、サーバーを立てるのに失敗しています。
解決方法は載っていません。
解決方法を調べたくてこのnoteに来られた方は戻るのを推奨します。

開発環境構築しながらメモしたことをそのまま記述しています。

・なんでインストールするのか?
モダンなWeb系自社開発企業に見てもらうポートフォリオをRuby on Railsで作成するのがナウでヤングなピーポーにバカウケらしい。なのでワイもインストールしなければという使命感

・必要なもの
Windowsが搭載されたPC
RubyがインストールされたPC
SQLite3がインストールされたPC

・まずRubyOnRailsの最新のバージョンってどうやって確認するの?
https://rubyonrails.org/ に載ってる。確認してみよう。
2019/12/24時点だと「6.0.2.1」らしい。これをインストールしよう!rubyも最新の2.6.5-1やし大丈夫やろ(適当)

・さっそくインストール
コマンドプロンプトを開く

gem install rails -v "6.0.2.1"
と入力してみる

インストールが開始された・・・!ちょっと感動。でも長そう(小並感)

出たログは以下の通り
Fetching concurrent-ruby-1.1.5.gem
Fetching i18n-1.7.0.gem
Fetching thread_safe-0.3.6.gem
Fetching tzinfo-1.2.5.gem
Fetching zeitwerk-2.2.2.gem
Fetching rack-2.0.8.gem
Fetching activesupport-6.0.2.1.gem
Fetching rack-test-1.1.0.gem
Fetching mini_portile2-2.4.0.gem
Fetching nokogiri-1.10.7-x64-mingw32.gem
Fetching crass-1.0.5.gem
Fetching loofah-2.4.0.gem
Fetching rails-html-sanitizer-1.3.0.gem
Fetching rails-dom-testing-2.0.3.gem
Fetching builder-3.2.4.gem
Fetching erubi-1.9.0.gem
Fetching actionview-6.0.2.1.gem
Fetching actionpack-6.0.2.1.gem
Fetching activemodel-6.0.2.1.gem
Fetching activerecord-6.0.2.1.gem
Fetching globalid-0.4.2.gem
Fetching activejob-6.0.2.1.gem
Fetching mini_mime-1.0.2.gem
Fetching mail-2.7.1.gem
Fetching actionmailer-6.0.2.1.gem
Fetching nio4r-2.5.2.gem
Fetching websocket-extensions-0.1.4.gem
Fetching websocket-driver-0.7.1.gem
Fetching actioncable-6.0.2.1.gem
Fetching mimemagic-0.3.3.gem
Fetching marcel-0.3.3.gem
Fetching activestorage-6.0.2.1.gem
Fetching rails-6.0.2.1.gem
Fetching actionmailbox-6.0.2.1.gem
Fetching actiontext-6.0.2.1.gem
Fetching thor-1.0.1.gem
Fetching method_source-0.9.2.gem
Fetching railties-6.0.2.1.gem
Fetching sprockets-4.0.0.gem
Fetching sprockets-rails-3.2.1.gem
Successfully installed concurrent-ruby-1.1.5

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Successfully installed i18n-1.7.0
Successfully installed thread_safe-0.3.6
Successfully installed tzinfo-1.2.5
Successfully installed zeitwerk-2.2.2
Successfully installed activesupport-6.0.2.1
Successfully installed rack-2.0.8
Successfully installed rack-test-1.1.0
Successfully installed mini_portile2-2.4.0
Nokogiri is built with the packaged libraries: libxml2-2.9.10, libxslt-1.1.34, zlib-1.2.11, libiconv-1.15.
Successfully installed nokogiri-1.10.7-x64-mingw32
Successfully installed crass-1.0.5
Successfully installed loofah-2.4.0
Successfully installed rails-html-sanitizer-1.3.0
Successfully installed rails-dom-testing-2.0.3
Successfully installed builder-3.2.4
Successfully installed erubi-1.9.0
Successfully installed actionview-6.0.2.1
Successfully installed actionpack-6.0.2.1
Successfully installed activemodel-6.0.2.1
Successfully installed activerecord-6.0.2.1
Successfully installed globalid-0.4.2
Successfully installed activejob-6.0.2.1
Successfully installed mini_mime-1.0.2
Successfully installed mail-2.7.1
Successfully installed actionmailer-6.0.2.1
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
Successfully installed nio4r-2.5.2
Successfully installed websocket-extensions-0.1.4
Building native extensions. This could take a while...
Successfully installed websocket-driver-0.7.1
Successfully installed actioncable-6.0.2.1
Successfully installed mimemagic-0.3.3
Successfully installed marcel-0.3.3
Successfully installed activestorage-6.0.2.1
Successfully installed actionmailbox-6.0.2.1
Successfully installed actiontext-6.0.2.1
Successfully installed thor-1.0.1
Successfully installed method_source-0.9.2
Successfully installed railties-6.0.2.1
Successfully installed sprockets-4.0.0
Successfully installed sprockets-rails-3.2.1
Successfully installed rails-6.0.2.1
Parsing documentation for concurrent-ruby-1.1.5
Installing ri documentation for concurrent-ruby-1.1.5
Parsing documentation for i18n-1.7.0
Installing ri documentation for i18n-1.7.0
Parsing documentation for thread_safe-0.3.6
Installing ri documentation for thread_safe-0.3.6
Parsing documentation for tzinfo-1.2.5
Installing ri documentation for tzinfo-1.2.5
Parsing documentation for zeitwerk-2.2.2
Installing ri documentation for zeitwerk-2.2.2
Parsing documentation for activesupport-6.0.2.1
Installing ri documentation for activesupport-6.0.2.1
Parsing documentation for rack-2.0.8
Installing ri documentation for rack-2.0.8
Parsing documentation for rack-test-1.1.0
Installing ri documentation for rack-test-1.1.0
Parsing documentation for mini_portile2-2.4.0
Installing ri documentation for mini_portile2-2.4.0
Parsing documentation for nokogiri-1.10.7-x64-mingw32
Installing ri documentation for nokogiri-1.10.7-x64-mingw32
Parsing documentation for crass-1.0.5
Installing ri documentation for crass-1.0.5
Parsing documentation for loofah-2.4.0
Installing ri documentation for loofah-2.4.0
Parsing documentation for rails-html-sanitizer-1.3.0
Installing ri documentation for rails-html-sanitizer-1.3.0
Parsing documentation for rails-dom-testing-2.0.3
Installing ri documentation for rails-dom-testing-2.0.3
Parsing documentation for builder-3.2.4
Installing ri documentation for builder-3.2.4
Parsing documentation for erubi-1.9.0
Installing ri documentation for erubi-1.9.0
Parsing documentation for actionview-6.0.2.1
Installing ri documentation for actionview-6.0.2.1
Parsing documentation for actionpack-6.0.2.1
Installing ri documentation for actionpack-6.0.2.1
Parsing documentation for activemodel-6.0.2.1
Installing ri documentation for activemodel-6.0.2.1
Parsing documentation for activerecord-6.0.2.1
Installing ri documentation for activerecord-6.0.2.1
Parsing documentation for globalid-0.4.2
Installing ri documentation for globalid-0.4.2
Parsing documentation for activejob-6.0.2.1
Installing ri documentation for activejob-6.0.2.1
Parsing documentation for mini_mime-1.0.2
Installing ri documentation for mini_mime-1.0.2
Parsing documentation for mail-2.7.1
Installing ri documentation for mail-2.7.1
Parsing documentation for actionmailer-6.0.2.1
Installing ri documentation for actionmailer-6.0.2.1
Parsing documentation for nio4r-2.5.2
Installing ri documentation for nio4r-2.5.2
Parsing documentation for websocket-extensions-0.1.4
Installing ri documentation for websocket-extensions-0.1.4
Parsing documentation for websocket-driver-0.7.1
Installing ri documentation for websocket-driver-0.7.1
Parsing documentation for actioncable-6.0.2.1
Installing ri documentation for actioncable-6.0.2.1
Parsing documentation for mimemagic-0.3.3
Installing ri documentation for mimemagic-0.3.3
Parsing documentation for marcel-0.3.3
Installing ri documentation for marcel-0.3.3
Parsing documentation for activestorage-6.0.2.1
Installing ri documentation for activestorage-6.0.2.1
Parsing documentation for actionmailbox-6.0.2.1
Installing ri documentation for actionmailbox-6.0.2.1
Parsing documentation for actiontext-6.0.2.1
Installing ri documentation for actiontext-6.0.2.1
Parsing documentation for thor-1.0.1
Installing ri documentation for thor-1.0.1
Parsing documentation for method_source-0.9.2
Installing ri documentation for method_source-0.9.2
Parsing documentation for railties-6.0.2.1
Installing ri documentation for railties-6.0.2.1
Parsing documentation for sprockets-4.0.0
Installing ri documentation for sprockets-4.0.0
Parsing documentation for sprockets-rails-3.2.1
Installing ri documentation for sprockets-rails-3.2.1
Parsing documentation for rails-6.0.2.1
Installing ri documentation for rails-6.0.2.1
Done installing documentation for concurrent-ruby, i18n, thread_safe, tzinfo, zeitwerk, activesupport, rack, rack-test, mini_portile2, nokogiri, crass, loofah, rails-html-sanitizer, rails-dom-testing, builder, erubi, actionview, actionpack, activemodel, activerecord, globalid, activejob, mini_mime, mail, actionmailer, nio4r, websocket-extensions, websocket-driver, actioncable, mimemagic, marcel, activestorage, actionmailbox, actiontext, thor, method_source, railties, sprockets, sprockets-rails, rails after 50 seconds
40 gems installed

40個くらいインストールして50秒くらいかかったらしい。(最後の2行しか見てない(鼻ほじ))

続いてコマンドプロンプトでrails -vと打ってみる
rubyの時もそうだったけど-vつけると大体の場合バージョンが表示されるんやね

Rails 6.0.2.1
が表示されることを確認

インストール完了!

・いざ!動作確認!Railsアプリケーションを作成!
コマンドプロンプトで操作していく
とりあえず最初はコマンドプロンプトの今のパスを確認
だいたいの場合デフォルトでユーザーフォルダを指してるのでエクスプローラーで開いておいてユーザーフォルダを監視<●><●>

監視してるだけだと動作確認にならないのでコマンドプロンプトに以下のコマンドを打つ
rails new MyFirstRailsApplication

エクスプローラーで見てMyFirstRailsApplicationが作成されたことを確認<●><●>
ちなみにコマンドプロンプトでdirコマンドを打つと今の階層のディレクトリが全部表示されるのでそれでも確認できる
そんなのProgateで習ってないよ!

これでRailsアプリケーションの作成は完了!


・ローカルでRailsサーバを立ててみよう!
コマンドプロンプトで、さっき作ったRailsアプリケーションの中に移動する
cd MyFirstRailsApplication

パスを見て移動したのを確認

Progateで習ったサーバーを立てるコマンドを実行してみる
rails s

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: C:/Ruby26-x64/bin/ruby.exe
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
# Default: sqlite3
[--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile
-G, [--skip-git], [--no-skip-git] # Skip .gitignore file
[--skip-keeps], [--no-skip-keeps] # Skip source control .keep files
-M, [--skip-action-mailer], [--no-skip-action-mailer] # Skip Action Mailer files
[--skip-action-mailbox], [--no-skip-action-mailbox] # Skip Action Mailbox gem
[--skip-action-text], [--no-skip-action-text] # Skip Action Text gem
-O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files
[--skip-active-storage], [--no-skip-active-storage] # Skip Active Storage files
-P, [--skip-puma], [--no-skip-puma] # Skip Puma related files
-C, [--skip-action-cable], [--no-skip-action-cable] # Skip Action Cable files
-S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files
[--skip-spring], [--no-skip-spring] # Don't install Spring application preloader
[--skip-listen], [--no-skip-listen] # Don't generate configuration that depends on the listen gem
-J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files
[--skip-turbolinks], [--no-skip-turbolinks] # Skip turbolinks gem
-T, [--skip-test], [--no-skip-test] # Skip test files
[--skip-system-test], [--no-skip-system-test] # Skip system test files
[--skip-bootsnap], [--no-skip-bootsnap] # Skip bootsnap gem
[--dev], [--no-dev] # Setup the application with Gemfile pointing to your Rails checkout
[--edge], [--no-edge] # Setup the application with Gemfile pointing to Rails repository
[--rc=RC] # Path to file containing extra configuration options for rails command
[--no-rc], [--no-no-rc] # Skip loading of extra configuration options from .railsrc file
[--api], [--no-api] # Preconfigure smaller stack for API only apps
-B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install
--webpacker, [--webpack=WEBPACK] # Preconfigure Webpack with a particular framework (options: react, vue, angular, elm, stimulus)
[--skip-webpack-install], [--no-skip-webpack-install] # Don't run Webpack install

Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend], [--no-pretend] # Run but do not make any changes
-q, [--quiet], [--no-quiet] # Suppress status output
-s, [--skip], [--no-skip] # Skip files that already exist

Rails options:
-h, [--help], [--no-help] # Show this help message and quit
-v, [--version], [--no-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.

You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.

Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.

Example:
rails new ~/Code/Ruby/weblog

This generates a skeletal Rails installation in ~/Code/Ruby/weblog.


は?



思ってた動作と違うんやが・・・。

たぶんコマンドが違うんやな。ワイのIQ140の頭をフル回転させた結果
rails server
が正しいと見た。(ProgateのRubyOnRailsをやりながらメモした内容をカンニングしながら)

リベンジでrails serverと打ってみる

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: C:/Ruby26-x64/bin/ruby.exe
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
# Default: sqlite3
[--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile
-G, [--skip-git], [--no-skip-git] # Skip .gitignore file
[--skip-keeps], [--no-skip-keeps] # Skip source control .keep files
-M, [--skip-action-mailer], [--no-skip-action-mailer] # Skip Action Mailer files
[--skip-action-mailbox], [--no-skip-action-mailbox] # Skip Action Mailbox gem
[--skip-action-text], [--no-skip-action-text] # Skip Action Text gem
-O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files
[--skip-active-storage], [--no-skip-active-storage] # Skip Active Storage files
-P, [--skip-puma], [--no-skip-puma] # Skip Puma related files
-C, [--skip-action-cable], [--no-skip-action-cable] # Skip Action Cable files
-S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files
[--skip-spring], [--no-skip-spring] # Don't install Spring application preloader
[--skip-listen], [--no-skip-listen] # Don't generate configuration that depends on the listen gem
-J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files
[--skip-turbolinks], [--no-skip-turbolinks] # Skip turbolinks gem
-T, [--skip-test], [--no-skip-test] # Skip test files
[--skip-system-test], [--no-skip-system-test] # Skip system test files
[--skip-bootsnap], [--no-skip-bootsnap] # Skip bootsnap gem
[--dev], [--no-dev] # Setup the application with Gemfile pointing to your Rails checkout
[--edge], [--no-edge] # Setup the application with Gemfile pointing to Rails repository
[--rc=RC] # Path to file containing extra configuration options for rails command
[--no-rc], [--no-no-rc] # Skip loading of extra configuration options from .railsrc file
[--api], [--no-api] # Preconfigure smaller stack for API only apps
-B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install
--webpacker, [--webpack=WEBPACK] # Preconfigure Webpack with a particular framework (options: react, vue, angular, elm, stimulus)
[--skip-webpack-install], [--no-skip-webpack-install] # Don't run Webpack install

Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend], [--no-pretend] # Run but do not make any changes
-q, [--quiet], [--no-quiet] # Suppress status output
-s, [--skip], [--no-skip] # Skip files that already exist

Rails options:
-h, [--help], [--no-help] # Show this help message and quit
-v, [--version], [--no-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.

You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.

Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.

Example:
rails new ~/Code/Ruby/weblog

This generates a skeletal Rails installation in ~/Code/Ruby/weblog.

は?(2度目)



sqlite3のドングリ(バンドルでした)がダメなのか?

ridk exec pacman -S mingw-w64-x86_64-sqlite3
コマンドを試してみる

依存関係を解決しています...
衝突するパッケージがないか確認しています...

パッケージ (4) mingw-w64-x86_64-readline-8.0.001-2 mingw-w64-x86_64-tcl-8.6.10-1 mingw-w64-x86_64-termcap-1.3.1-5
mingw-w64-x86_64-sqlite3-3.30.1-1

合計ダウンロード容量: 10.03 MiB
合計インストール容量: 43.36 MiB

:: インストールを行いますか? [Y/n] Y
:: パッケージを取得します...
mingw-w64-x86_64-termcap-1.3.1-5-any 33.1 KiB 542 KiB/s 00:00 [#######################################] 100%
mingw-w64-x86_64-readline-8.0.001-2-any 375.2 KiB 573 KiB/s 00:01 [#######################################] 100%
mingw-w64-x86_64-tcl-8.6.10-1-any 3.0 MiB 1725 KiB/s 00:02 [#######################################] 100%
mingw-w64-x86_64-sqlite3-3.30.1-1-any 6.6 MiB 2.64 MiB/s 00:03 [#######################################] 100%
(4/4) キーリングのキーを確認 [#######################################] 100%
(4/4) パッケージの整合性をチェック [#######################################] 100%
(4/4) パッケージファイルのロード [#######################################] 100%
(4/4) ファイルの衝突をチェック [#######################################] 100%
(4/4) 空き容量を確認 [#######################################] 100%
:: パッケージの変更を処理しています...
(1/4) インストール mingw-w64-x86_64-termcap [#######################################] 100%
(2/4) インストール mingw-w64-x86_64-readline [#######################################] 100%
(3/4) インストール mingw-w64-x86_64-tcl [#######################################] 100%
(4/4) インストール mingw-w64-x86_64-sqlite3 [#######################################] 100%

好奇心にかられて
ridk exec pacman -S mingw-w64-x86_64-sqlite3
コマンドをもう一度やってみた

警告: mingw-w64-x86_64-sqlite3-3.30.1-1 は最新です -- 再インストール
依存関係を解決しています...
衝突するパッケージがないか確認しています...

パッケージ (1) mingw-w64-x86_64-sqlite3-3.30.1-1

合計インストール容量: 31.14 MiB
最終的なアップグレード容量: 0.00 MiB

:: インストールを行いますか? [Y/n] Y
(1/1) キーリングのキーを確認 [#######################################] 100%
(1/1) パッケージの整合性をチェック [#######################################] 100%
(1/1) パッケージファイルのロード [#######################################] 100%
(1/1) ファイルの衝突をチェック [#######################################] 100%
(1/1) 空き容量を確認 [#######################################] 100%
:: パッケージの変更を処理しています...
(1/1) 再インストール mingw-w64-x86_64-sqlite3 [#######################################] 100%

少し怒られたっぽいけどなんか進んだっぽい

bundle install
コマンドやってみる

PCからすんごいファンが回る音して何か始まった

Fetching gem metadata from https://rubygems.org/.............
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 13.0.1
Installing rake 13.0.1
Using concurrent-ruby 1.1.5
Using i18n 1.7.0
Fetching minitest 5.13.0
Installing minitest 5.13.0
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using zeitwerk 2.2.2
Using activesupport 6.0.2.1
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.7 (x64-mingw32)
Using rails-dom-testing 2.0.3
Using crass 1.0.5
Using loofah 2.4.0
Using rails-html-sanitizer 1.3.0
Using actionview 6.0.2.1
Using rack 2.0.8
Using rack-test 1.1.0
Using actionpack 6.0.2.1
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 6.0.2.1
Using globalid 0.4.2
Using activejob 6.0.2.1
Using activemodel 6.0.2.1
Using activerecord 6.0.2.1
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 6.0.2.1
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailbox 6.0.2.1
Using actionmailer 6.0.2.1
Using actiontext 6.0.2.1
Fetching public_suffix 4.0.1
Installing public_suffix 4.0.1
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching bindex 0.8.1
Installing bindex 0.8.1 with native extensions
Fetching msgpack 1.3.1 (x64-mingw32)
Installing msgpack 1.3.1 (x64-mingw32)
Fetching bootsnap 1.4.5
Installing bootsnap 1.4.5 with native extensions
Using bundler 1.17.2
Fetching byebug 11.0.1
Installing byebug 11.0.1 with native extensions
Fetching regexp_parser 1.6.0
Installing regexp_parser 1.6.0
Fetching xpath 3.2.0
Installing xpath 3.2.0
Fetching capybara 3.29.0
Installing capybara 3.29.0
Fetching childprocess 3.0.0
Installing childprocess 3.0.0
Fetching ffi 1.11.3 (x64-mingw32)
Installing ffi 1.11.3 (x64-mingw32)
Fetching jbuilder 2.9.1
Installing jbuilder 2.9.1
Using method_source 0.9.2
Fetching puma 4.3.1
Installing puma 4.3.1 with native extensions
Fetching rack-proxy 0.6.5
Installing rack-proxy 0.6.5
Using thor 1.0.1
Using railties 6.0.2.1
Using sprockets 4.0.0
Using sprockets-rails 3.2.1
Using rails 6.0.2.1
Fetching rubyzip 2.0.0
Installing rubyzip 2.0.0
Fetching sassc 2.2.1 (x64-mingw32)
Installing sassc 2.2.1 (x64-mingw32)
Fetching tilt 2.0.10
Installing tilt 2.0.10
Fetching sassc-rails 2.1.2
Installing sassc-rails 2.1.2
Fetching sass-rails 6.0.0
Installing sass-rails 6.0.0
Fetching selenium-webdriver 3.142.6
Installing selenium-webdriver 3.142.6
Fetching sqlite3 1.4.2
Installing sqlite3 1.4.2 with native extensions
Fetching turbolinks-source 5.2.0
Installing turbolinks-source 5.2.0
Fetching turbolinks 5.2.1
Installing turbolinks 5.2.1
Fetching tzinfo-data 1.2019.3
Installing tzinfo-data 1.2019.3
Fetching web-console 4.0.1
Installing web-console 4.0.1
Fetching webdrivers 4.1.3
Installing webdrivers 4.1.3
Fetching webpacker 4.2.2
Installing webpacker 4.2.2
Bundle complete! 14 Gemfile dependencies, 70 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

ドングリ(バンドルでした)が終わったっぽい

一回コマンドプロンプトで
cd ..
で一階層上に戻って、
エクスプローラーからMyFirstRailsApplicationを削除する
(コマンドでディレクトリを消す練習しようよというツッコミはなしで)

以下のコマンドを実行
rails new MyFirstRailsApplication
cd MyFirstRailsApplication

そしてリベンジ!サーバーを立てるコマンド!
rails s

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: C:/Ruby26-x64/bin/ruby.exe
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
# Default: sqlite3
[--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile
-G, [--skip-git], [--no-skip-git] # Skip .gitignore file
[--skip-keeps], [--no-skip-keeps] # Skip source control .keep files
-M, [--skip-action-mailer], [--no-skip-action-mailer] # Skip Action Mailer files
[--skip-action-mailbox], [--no-skip-action-mailbox] # Skip Action Mailbox gem
[--skip-action-text], [--no-skip-action-text] # Skip Action Text gem
-O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files
[--skip-active-storage], [--no-skip-active-storage] # Skip Active Storage files
-P, [--skip-puma], [--no-skip-puma] # Skip Puma related files
-C, [--skip-action-cable], [--no-skip-action-cable] # Skip Action Cable files
-S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files
[--skip-spring], [--no-skip-spring] # Don't install Spring application preloader
[--skip-listen], [--no-skip-listen] # Don't generate configuration that depends on the listen gem
-J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files
[--skip-turbolinks], [--no-skip-turbolinks] # Skip turbolinks gem
-T, [--skip-test], [--no-skip-test] # Skip test files
[--skip-system-test], [--no-skip-system-test] # Skip system test files
[--skip-bootsnap], [--no-skip-bootsnap] # Skip bootsnap gem
[--dev], [--no-dev] # Setup the application with Gemfile pointing to your Rails checkout
[--edge], [--no-edge] # Setup the application with Gemfile pointing to Rails repository
[--rc=RC] # Path to file containing extra configuration options for rails command
[--no-rc], [--no-no-rc] # Skip loading of extra configuration options from .railsrc file
[--api], [--no-api] # Preconfigure smaller stack for API only apps
-B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install
--webpacker, [--webpack=WEBPACK] # Preconfigure Webpack with a particular framework (options: react, vue, angular, elm, stimulus)
[--skip-webpack-install], [--no-skip-webpack-install] # Don't run Webpack install

Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend], [--no-pretend] # Run but do not make any changes
-q, [--quiet], [--no-quiet] # Suppress status output
-s, [--skip], [--no-skip] # Skip files that already exist

Rails options:
-h, [--help], [--no-help] # Show this help message and quit
-v, [--version], [--no-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.

You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.

Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.

Example:
rails new ~/Code/Ruby/weblog

This generates a skeletal Rails installation in ~/Code/Ruby/weblog.

は?(3度目)



色々調べてみた結果、以下の問題があるかもと思った
・localhost(127.0.0.1)にそもそもアクセスできるようなインターネットオプションになっていない
コントロールパネルからインターネットオプション開いて
セキュリティタブからサイトボタンを押して
信頼済みサイトに追加しようとする
http://127.0.0.1
このとき、「このゾーンのサイトにはすべてのサーバーの確認(https:)を必要とする」のチェックは外しておく
いったん再起動してみるテスト
結果:失敗。localhost:3000に接続できないし
・3000のポートを開放してみる
https://pc-karuma.net/windows-10-firewall-open-port/
で解放
結果:失敗。localhost:3000に接続できない
・ポート3000が重複してるのでは?
netstat -naoで3000を使っているものを調べてみる→出てきたログをサクラエディタに貼り付けて3000で検索したが引っかからない
結果:失敗。
・ポート3001を使用しようとしてみる
rails s -p 3001
結果:失敗
・老害エンジニア「パス間違ってるんじゃね?」
合っとるわい!!!!!
C:\Users\user\MyFirstRailsApplication>rails s
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: C:/Ruby26-x64/bin/ruby.exe
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
# Default: sqlite3
[--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile
-G, [--skip-git], [--no-skip-git] # Skip .gitignore file
[--skip-keeps], [--no-skip-keeps] # Skip source control .keep files
-M, [--skip-action-mailer], [--no-skip-action-mailer] # Skip Action Mailer files
[--skip-action-mailbox], [--no-skip-action-mailbox] # Skip Action Mailbox gem
[--skip-action-text], [--no-skip-action-text] # Skip Action Text gem
-O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files
[--skip-active-storage], [--no-skip-active-storage] # Skip Active Storage files
-P, [--skip-puma], [--no-skip-puma] # Skip Puma related files
-C, [--skip-action-cable], [--no-skip-action-cable] # Skip Action Cable files
-S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files
[--skip-spring], [--no-skip-spring] # Don't install Spring application preloader
[--skip-listen], [--no-skip-listen] # Don't generate configuration that depends on the listen gem
-J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files
[--skip-turbolinks], [--no-skip-turbolinks] # Skip turbolinks gem
-T, [--skip-test], [--no-skip-test] # Skip test files
[--skip-system-test], [--no-skip-system-test] # Skip system test files
[--skip-bootsnap], [--no-skip-bootsnap] # Skip bootsnap gem
[--dev], [--no-dev] # Setup the application with Gemfile pointing to your Rails checkout
[--edge], [--no-edge] # Setup the application with Gemfile pointing to Rails repository
[--rc=RC] # Path to file containing extra configuration options for rails command
[--no-rc], [--no-no-rc] # Skip loading of extra configuration options from .railsrc file
[--api], [--no-api] # Preconfigure smaller stack for API only apps
-B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install
--webpacker, [--webpack=WEBPACK] # Preconfigure Webpack with a particular framework (options: react, vue, angular, elm, stimulus)
[--skip-webpack-install], [--no-skip-webpack-install] # Don't run Webpack install

Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend], [--no-pretend] # Run but do not make any changes
-q, [--quiet], [--no-quiet] # Suppress status output
-s, [--skip], [--no-skip] # Skip files that already exist

Rails options:
-h, [--help], [--no-help] # Show this help message and quit
-v, [--version], [--no-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.

You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.

Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.

Example:
rails new ~/Code/Ruby/weblog

This generates a skeletal Rails installation in ~/Code/Ruby/weblog.


https://weblion303.net/1548/を元におとなしくrailsのバージョンを下げてみるテスト
gem uninstall rails
gem install -v 5.2.3 rails

C:\Users\user\MyFirstRailsApplication>gem uninstall rails
Successfully uninstalled rails-6.0.2.1

C:\Users\user\MyFirstRailsApplication>gem install -v 5.2.3 rails
Fetching activesupport-5.2.3.gem
Fetching actionview-5.2.3.gem
Fetching actionpack-5.2.3.gem
Fetching activemodel-5.2.3.gem
Fetching arel-9.0.0.gem
Fetching activerecord-5.2.3.gem
Fetching activejob-5.2.3.gem
Fetching actionmailer-5.2.3.gem
Fetching rails-5.2.3.gem
Fetching actioncable-5.2.3.gem
Fetching activestorage-5.2.3.gem
Fetching railties-5.2.3.gem
Successfully installed activesupport-5.2.3
Successfully installed actionview-5.2.3
Successfully installed actionpack-5.2.3
Successfully installed activemodel-5.2.3
Successfully installed arel-9.0.0
Successfully installed activerecord-5.2.3
Successfully installed activejob-5.2.3
Successfully installed actionmailer-5.2.3
Successfully installed actioncable-5.2.3
Successfully installed activestorage-5.2.3
Successfully installed railties-5.2.3
Successfully installed rails-5.2.3
Parsing documentation for activesupport-5.2.3
Installing ri documentation for activesupport-5.2.3
Parsing documentation for actionview-5.2.3
Installing ri documentation for actionview-5.2.3
Parsing documentation for actionpack-5.2.3
Installing ri documentation for actionpack-5.2.3
Parsing documentation for activemodel-5.2.3
Installing ri documentation for activemodel-5.2.3
Parsing documentation for arel-9.0.0
Installing ri documentation for arel-9.0.0
Parsing documentation for activerecord-5.2.3
Installing ri documentation for activerecord-5.2.3
Parsing documentation for activejob-5.2.3
Installing ri documentation for activejob-5.2.3
Parsing documentation for actionmailer-5.2.3
Installing ri documentation for actionmailer-5.2.3
Parsing documentation for actioncable-5.2.3
Installing ri documentation for actioncable-5.2.3
Parsing documentation for activestorage-5.2.3
Installing ri documentation for activestorage-5.2.3
Parsing documentation for railties-5.2.3
Installing ri documentation for railties-5.2.3
Parsing documentation for rails-5.2.3
Installing ri documentation for rails-5.2.3
Done installing documentation for activesupport, actionview, actionpack, activemodel, arel, activerecord, activejob, actionmailer, actioncable, activestorage, railties, rails after 17 seconds
12 gems installed

一回コマンドプロンプトで
cd ..
で一階層上に戻って、
エクスプローラーからMyFirstRailsApplicationを削除する
(コマンドでディレクトリを消す練習しようよというツッコミはなしで)

以下のコマンドを実行
rails new MyFirstRailsApplication
cd MyFirstRailsApplication

rails s

create
create README.md
create Rakefile
create .ruby-version
create config.ru
create .gitignore
create Gemfile
run git init from "."

C:\Users\user>cd MyFirstRailsApplication

C:\Users\user\MyFirstRailsApplication>rails s
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: C:/Ruby26-x64/bin/ruby.exe
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
# Default: sqlite3
[--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile
-G, [--skip-git], [--no-skip-git] # Skip .gitignore file
[--skip-keeps], [--no-skip-keeps] # Skip source control .keep files
-M, [--skip-action-mailer], [--no-skip-action-mailer] # Skip Action Mailer files
[--skip-action-mailbox], [--no-skip-action-mailbox] # Skip Action Mailbox gem
[--skip-action-text], [--no-skip-action-text] # Skip Action Text gem
-O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files
[--skip-active-storage], [--no-skip-active-storage] # Skip Active Storage files
-P, [--skip-puma], [--no-skip-puma] # Skip Puma related files
-C, [--skip-action-cable], [--no-skip-action-cable] # Skip Action Cable files
-S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files
[--skip-spring], [--no-skip-spring] # Don't install Spring application preloader
[--skip-listen], [--no-skip-listen] # Don't generate configuration that depends on the listen gem
-J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files
[--skip-turbolinks], [--no-skip-turbolinks] # Skip turbolinks gem
-T, [--skip-test], [--no-skip-test] # Skip test files
[--skip-system-test], [--no-skip-system-test] # Skip system test files
[--skip-bootsnap], [--no-skip-bootsnap] # Skip bootsnap gem
[--dev], [--no-dev] # Setup the application with Gemfile pointing to your Rails checkout
[--edge], [--no-edge] # Setup the application with Gemfile pointing to Rails repository
[--rc=RC] # Path to file containing extra configuration options for rails command
[--no-rc], [--no-no-rc] # Skip loading of extra configuration options from .railsrc file
[--api], [--no-api] # Preconfigure smaller stack for API only apps
-B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install
--webpacker, [--webpack=WEBPACK] # Preconfigure Webpack with a particular framework (options: react, vue, angular, elm, stimulus)
[--skip-webpack-install], [--no-skip-webpack-install] # Don't run Webpack install

Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend], [--no-pretend] # Run but do not make any changes
-q, [--quiet], [--no-quiet] # Suppress status output
-s, [--skip], [--no-skip] # Skip files that already exist

Rails options:
-h, [--help], [--no-help] # Show this help message and quit
-v, [--version], [--no-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.

You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.

Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.

Example:
rails new ~/Code/Ruby/weblog

This generates a skeletal Rails installation in ~/Code/Ruby/weblog.

やっぱバージョンは最新のに戻しておく
gem uninstall rails
gem install -v 6.0.2.1 rails

コマンドプロンプトを管理者として実行して
cd でユーザーのところまで移動
エクスプローラーからMyFirstRailsApplicationを削除する

以下のコマンドを実行
rails new MyFirstRailsApplication
cd MyFirstRailsApplication

rails sでいつものエラー(もう書くの疲れた)

かなり疲弊している・・・・。

ridk exec pacman -S mingw-w64-x86_64-sqlite3
bundle install

C:\Users\user\MyFirstRailsApplication>ridk exec pacman -S mingw-w64-x86_64-sqlite3
警告: mingw-w64-x86_64-sqlite3-3.30.1-1 は最新です -- 再インストール
依存関係を解決しています...
衝突するパッケージがないか確認しています...

パッケージ (1) mingw-w64-x86_64-sqlite3-3.30.1-1

合計インストール容量: 31.14 MiB
最終的なアップグレード容量: 0.00 MiB

:: インストールを行いますか? [Y/n] y
(1/1) キーリングのキーを確認 [#######################################] 100%
(1/1) パッケージの整合性をチェック [#######################################] 100%
(1/1) パッケージファイルのロード [#######################################] 100%
(1/1) ファイルの衝突をチェック [#######################################] 100%
(1/1) 空き容量を確認 [#######################################] 100%
:: パッケージの変更を処理しています...
(1/1) 再インストール mingw-w64-x86_64-sqlite3 [#######################################] 100%

C:\Users\user\MyFirstRailsApplication>bundle install
Using rake 13.0.1
Using concurrent-ruby 1.1.5
Using i18n 1.7.0
Using minitest 5.13.0
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using zeitwerk 2.2.2
Using activesupport 6.0.2.1
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.7 (x64-mingw32)
Using rails-dom-testing 2.0.3
Using crass 1.0.5
Using loofah 2.4.0
Using rails-html-sanitizer 1.3.0
Using actionview 6.0.2.1
Using rack 2.0.8
Using rack-test 1.1.0
Using actionpack 6.0.2.1
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 6.0.2.1
Using globalid 0.4.2
Using activejob 6.0.2.1
Using activemodel 6.0.2.1
Using activerecord 6.0.2.1
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 6.0.2.1
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailbox 6.0.2.1
Using actionmailer 6.0.2.1
Using actiontext 6.0.2.1
Using public_suffix 4.0.1
Using addressable 2.7.0
Using bindex 0.8.1
Using msgpack 1.3.1 (x64-mingw32)
Using bootsnap 1.4.5
Using bundler 1.17.2
Using byebug 11.0.1
Using regexp_parser 1.6.0
Using xpath 3.2.0
Using capybara 3.29.0
Using childprocess 3.0.0
Using ffi 1.11.3 (x64-mingw32)
Using jbuilder 2.9.1
Using method_source 0.9.2
Using puma 4.3.1
Using rack-proxy 0.6.5
Using thor 1.0.1
Using railties 6.0.2.1
Using sprockets 4.0.0
Using sprockets-rails 3.2.1
Using rails 6.0.2.1
Using rubyzip 2.0.0
Using sassc 2.2.1 (x64-mingw32)
Using tilt 2.0.10
Using sassc-rails 2.1.2
Using sass-rails 6.0.0
Using selenium-webdriver 3.142.6
Using sqlite3 1.4.2
Using turbolinks-source 5.2.0
Using turbolinks 5.2.1
Using tzinfo-data 1.2019.3
Using web-console 4.0.1
Using webdrivers 4.1.3
Using webpacker 4.2.2
Bundle complete! 14 Gemfile dependencies, 70 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

これは一度やったらもう大丈夫のようだ

rails new sample_app
cd sample_app
rails s

やっぱりusageうんたらが出る

下記コマンドでうまく行くみたいな記事を見た
bundle exec rake app:update:bin

下記のエラーが出る

rake aborted!
LoadError: cannot load such file -- C:/Users/user/sample_app/config/application
C:/Users/user/sample_app/Rakefile:4:in `require_relative'
C:/Users/user/sample_app/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

bundle exec rake rails:update:binも同様のエラー
Rakefile4でエラー出てる?

このエラー文を元に下記を実行
gem install bundler
bundle install
bundle exec rake db:migrate

C:\Users\user\sample_app>gem install bundler
Fetching bundler-2.1.2.gem
Successfully installed bundler-2.1.2
Parsing documentation for bundler-2.1.2
Installing ri documentation for bundler-2.1.2
Done installing documentation for bundler after 6 seconds
1 gem installed

C:\Users\user\sample_app>bundle install
Using rake 13.0.1
Using concurrent-ruby 1.1.5
Using i18n 1.7.0
Using minitest 5.13.0
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using zeitwerk 2.2.2
Using activesupport 6.0.2.1
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.7 (x64-mingw32)
Using rails-dom-testing 2.0.3
Using crass 1.0.5
Using loofah 2.4.0
Using rails-html-sanitizer 1.3.0
Using actionview 6.0.2.1
Using rack 2.0.8
Using rack-test 1.1.0
Using actionpack 6.0.2.1
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 6.0.2.1
Using globalid 0.4.2
Using activejob 6.0.2.1
Using activemodel 6.0.2.1
Using activerecord 6.0.2.1
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 6.0.2.1
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailbox 6.0.2.1
Using actionmailer 6.0.2.1
Using actiontext 6.0.2.1
Using public_suffix 4.0.1
Using addressable 2.7.0
Using bindex 0.8.1
Using msgpack 1.3.1 (x64-mingw32)
Using bootsnap 1.4.5
Using bundler 1.17.2
Using byebug 11.0.1
Using regexp_parser 1.6.0
Using xpath 3.2.0
Using capybara 3.29.0
Using childprocess 3.0.0
Using ffi 1.11.3 (x64-mingw32)
Using jbuilder 2.9.1
Using method_source 0.9.2
Using puma 4.3.1
Using rack-proxy 0.6.5
Using thor 1.0.1
Using railties 6.0.2.1
Using sprockets 4.0.0
Using sprockets-rails 3.2.1
Using rails 6.0.2.1
Using rubyzip 2.0.0
Using sassc 2.2.1 (x64-mingw32)
Using tilt 2.0.10
Using sassc-rails 2.1.2
Using sass-rails 6.0.0
Using selenium-webdriver 3.142.6
Using sqlite3 1.4.2
Using turbolinks-source 5.2.0
Using turbolinks 5.2.1
Using tzinfo-data 1.2019.3
Using web-console 4.0.1
Using webdrivers 4.1.3
Using webpacker 4.2.2
Bundle complete! 14 Gemfile dependencies, 70 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

C:\Users\user\sample_app>bundle exec rake db:migrate
rake aborted!
LoadError: cannot load such file -- C:/Users/user/sample_app/config/application
C:/Users/user/sample_app/Rakefile:4:in `require_relative'
C:/Users/user/sample_app/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

C:\Users\user\sample_app>bundle exec rake app:update:bin
rake aborted!
LoadError: cannot load such file -- C:/Users/user/sample_app/config/application
C:/Users/user/sample_app/Rakefile:4:in `require_relative'
C:/Users/user/sample_app/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

gem uninstall rails
gem install rails -v "5.2.3"

cd ..
rails new sample_app523
cd sample_app523
gem install bundler
bundle install
bundle exec rake app:update:bin
rails s

Progateと同じにするためにrubyを2.5.1にしてみようとする

rbenvというのが必要らしい。。。
ま、いっか!

railsチュートリアルだとAWSのcloud9っていうのを使うらしいから無理にインストールしなくてもいいやという結論に至る

ファイアウォールの設定だけもとに戻しておく

気が向いた時にでもリベンジします(笑)

この記事が気に入ったらサポートをしてみませんか?