Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Latest commit

 

History

History
83 lines (54 loc) · 1.85 KB

README.md

File metadata and controls

83 lines (54 loc) · 1.85 KB

wercker status

RG Portal

Development Environment Configuration

Requirements

  • Ruby 2.3.7
  • Bundler
  • Bower

Recommends

  • rbenv

Slack OAuth configuration file

  • Copy configuration sample from config/oauth.yml.sample
$ cp config/oauth.yml.sample config/oauth.yml
  • Get the oauth information from Slack RG AuthenticationのOAuth情報 (require slack authentication)

  • Do not create a new authentication yourself. The number of integrations has a limit.

Gem installation

$ bundle install --path=vendor/bundle

If you have a error like Failed to build gem native extension. during installation of libv8 or therubyracer, following configurations may help you.

$ bundle config build.libv8 --with-system-v8
$ bundle config build.therubyracer --with-v8-dir

If you failed install the libv8, See: http://qiita.com/yakiimo23/items/eaf48164821897e3dde9 or http://qiita.com/withelmo/items/723344ccec9b4450f360

Copy emoji files to public directory

$ rake emoji

JavaScript library installation

$ rake bower:install

Database creation

$ bundle exec rake db:migrate RAILS_ENV=development

It will create database file like db/development.sqlite3

Start sunspot solr on local

$ rake sunspot:solr:start

Generate test data

$ SLACK_USER_ID=<your slack user ID here> rake db:seed

You can run the seed task to generate test data. If you provide your slack ID via environment variable, you can login as one of the test users.

Move secrets files from production server

$ scp "rg-portal:/var/www/rg-portal/shared/config/*" cookbook/app/shared_files