Skip to content

isuconhq/suburi8-ruby

Repository files navigation

SUBURI8-ruby

  • ruby2.5.1
  • golang1.10.3~8

Setup

mariadb

# Use docker
$ docker-compose up --no-start
$ docker-compose start
$ ./db/init.sh

# Use Native
$ MYSQL_HOME=$PWD/docker/mariadb mysql.server start
$ ./db/init-user.sh
$ ./db/init.sh

ruby

$ gem install bundler -v 1.16.4
$ bundle install --path vendor/bundle

bench

$ cd bench
$ make deps
$ make

Run

# Use docker
$ docker-compose start

# Use all
$ ./run_local.sh
# Access localhost:8080

Bench

$ cd bench
$ ./bin._OS_/bench

Retry

$ ./db/init.sh
$ cd bench
$ ./bin._OS_/bench

Cleanup

# Use docker
$ docker-compose down -v

# Use Native
mysql.server stop