sfc-rg / rg-portal

Internal Website for Keio Univ. Technology joint research groups
https://portal.sfc.wide.ad.jp/
12 stars 5 forks source link

wercker status

RG Portal

Development Environment Configuration

Requirements

Recommends

Slack OAuth configuration file

$ cp config/oauth.yml.sample config/oauth.yml

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