すごくメモ帳

すごくほぼメモ帳ぐらいなブログ

Raspberry Pi に Rails を インストール

概要

Raspberry PiRails をインストールしようとしたところ、コアダンプしてしまうエラーが起こったのでその対処法。

環境

  • Ruby 2.6.0 (rbenv)
  • その他、 Rails に必要なライブラリー類はインストール済み

コマンド

bundleなしでアプリケーションを作成

アプリケーション名はhogeappとします。

rails new hogeapp -B

config/boot.rb の編集

hogeappディレクトリからみて、config/boot.rbを編集します。

require 'bootsnap/setup' # Speed up boot time by caching expensive operations.

# require 'bootsnap/setup' # Speed up boot time by caching expensive operations.

こうします。

bundle

cd hogeapp
bundle

Yay! You’re on Rails!

サーバーを起動します。

rails s -b 0.0.0.0