- Ruby 3.1 +
- Docker & Docker-Compose
$ brew install redis postgresql imagemagick gs
$ sudo apt-get install postgresql postgresql-contrib redis-server imagemagick ghostscript libpq-dev
$ git clone https://github.com/ruby-china/homeland.git
$ cd homeland
$ docker-compose up
# Session 1:
$ rails db:create
$ rails db:migrate
$ yarn start
# Session 2:
$ rails s
$ rails test
-
On macOS ARM, you may casue an crash error when running
rails s
, just we Webrick instead of Puma.$ rails s -u webrick