Uh oh!
There was an error while loading. Please reload this page.
forked from webdino/gitfab2
- Notifications
You must be signed in to change notification settings - Fork 0
Yuichi Takeuchi edited this page Jul 31, 2018
·
19 revisions
Welcome to the gitfab2 wiki!
bundle exec ridgepole -c config/database.yml -E development --apply --dry-run -f db/schemas/Schemafile --enable-foreignerbundle exec ridgepole -c config/database.yml -E development --apply -f db/schemas/Schemafile --enable-foreignerbundle exec ridgepole -c config/database.yml -E test --apply -f db/schemas/Schemafile --enable-foreignerbundle exec rake tmp:clearhas_many :items, dependent: :destroy
has_one :item, dependent: :destroy
belongs_to :parent
classes=Dir.glob('app/models/*.rb').map{|path| path.to_s.match('.+/(.+?).rb')[1].camelize.constantize}.select{|klass|klass.respond_to?(:reindex)}classes.eachdo |klass|
klass.find_eachdo |obj|
beginobj.index!rescue=>eputs"#{obj.class.name}:#{obj.id}: #{e.message}(#{e.class.name})"endendenddocker-compose.yml
version: '3'volumes:
mysql-data:
driver: 'local'minio-data:
driver: 'local'services:
db:
image: mysql:5.6.36command: '--innodb-file-format=Barracuda --innodb-file-per-table=true --innodb-large-prefix=true'environment:
MYSQL_USER: rootMYSQL_ALLOW_EMPTY_PASSWORD: 'yes'MYSQL_ROOT_HOST: '%'TZ: /usr/share/zoneinfo/Asia/Tokyovolumes:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- mysql-data:/var/lib/mysqlports:
- '3306:3306'networks:
- defaulthealthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot", "-P", "3306"]interval: 1mtimeout: 10sretries: 5sunspot:
image: rorymc/docker-solr-sunspotports:
- '8984:8983'docker-compose -f docker-compose.yml upconfig/sunspot.yml
development:
solr:
hostname: localhostport: 8984log_level: INFOpath: /solr/collection1export GITHUB_APP_ID=xxxxxxxxxxxxxxxxxxxx
export GITHUB_APP_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
direnv allow