Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 782 Bytes

CONTRIBUTE.md

File metadata and controls

48 lines (33 loc) · 782 Bytes

Contribute Guide

Requirements

Install in development

Mac OS X, use Homebrew

$ brew install redis postgresql imagemagick gs

Ubuntu

$ 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

Testing

$ rails test

Troubleshooting

  • On macOS ARM, you may casue an crash error when running rails s, just we Webrick instead of Puma.

    $ rails s -u webrick