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.
$ 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
$ rake emoji
$ rake bower:install
$ bundle exec rake db:migrate RAILS_ENV=development
It will create database file like db/development.sqlite3
$ rake sunspot:solr:start
$ 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.
$ scp "rg-portal:/var/www/rg-portal/shared/config/*" cookbook/app/shared_files