Skip to content
Yuichi Takeuchi edited this page Dec 5, 2016 · 19 revisions

Welcome to the gitfab2 wiki!

DB

確認

bundle exec ridgepole -c config/database.yml -E development  --apply --dry-run -f db/schemas/Schemafile --enable-foreigner

適用

bundle exec ridgepole -c config/database.yml -E development --apply -f db/schemas/Schemafile --enable-foreigner

テスト用

bundle exec ridgepole -c config/database.yml -E test --apply -f db/schemas/Schemafile --enable-foreigner

Solr

sunspot_rails gem

// バックグラウンド
bundle exec rake sunspot:solr:start  // Solrを起動させる
bundle exec rake sunspot:solr:stop   // Solrを停止させる

// フォアグラウンド
bundle exec rake sunspot:solr:run    // Solrを起動させる

Sunspot::Solr::Server::JavaMissing: You need a Java Runtime Environment to run the Solr server

sudo yum -y install java-1.7.0-openjdk.x86_64
Clone this wiki locally