ruby初学者です。
現在Udemyで購入したRuby on Railsの講座を見ながら自分も手を動かして勉強しているのですが、動画通りに画面表示ができなくて困っています。
コンソールに出力されているキーワードでググったのですが、解決できず。。。
初歩的な内容なのかもしれませんが、わかる方がいたらご教授頂けると幸いです。
Dockerを使用しています。
gitのリポジトリは以下となります。
https://github.com/makoxty/ruby/tree/master/myapp
ターミナル実行コマンド
docker-compose run web rails new . --force --no-deps --database=postgresql
ocker-compose build
config/database.ymlを以下に書き換え
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
#####追加#####
host: db
username: postgres
passowrd:
#############
development:
<<: *default
database: myapp_development
test:
<<: *default
database: myapp_test
production:
<<: *default
database: myapp_production
username: myapp
password: <%= ENV['MYAPP_DATABASE_PASSWORD'] %>
DB作成コマンド
docker-compose run web rake db:create
docker-compose up -d
・コンソール
web_1 | Use Ctrl-C to stop
web_1 | Started GET "/" for 172.21.0.1 at 2021-07-29 12:32:01 +0000
web_1 | Cannot render console from 172.21.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
web_1 | Processing by BoardsController#index as HTML
web_1 | Rendering boards/index.html.erb within layouts/application
web_1 | Rendered boards/index.html.erb within layouts/application (Duration: 4.4ms | Allocations: 235)
web_1 | malloc(): invalid size (unsorted)
web_1 exited with code 133
db_1 | 2021-07-29 12:36:39.708 UTC [45] WARNING: could not open statistics file "pg_stat_tmp/global.stat": Operation not permitted

回答2件
あなたの回答
tips
プレビュー