isucon5q-crystal

Version, currently master branch1 version
  • master branchlatestApr 30, 2017

github.com/at-grandpa/isucon5q-crystal

isucon5-qualifier-standalone by Crystal-lang

2 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  isucon5q-crystal:
    github: at-grandpa/isucon5q-crystal
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
at-grandpa

Dependencies

Runtime Dependencies

  • kemal*github: at-grandpa/kemal, branch: add-content-length
  • mysql*github: at-grandpa/crystal-mysql, branch: multi-byte-char-support

README

isucon5q-crystal

Overview

isucon5-qualifier-standalone 上で動作するWebAppのcrystal言語版です。

Usage

isucon5-qualifier-standaloneに従ってvagrant環境を用意する。

$ vagrant up

vagrant環境にssh。

$ vagrant ssh

isuconユーザーになる。

sudo su - isucon

このリポジトリをclone。

$ git clone https://github.com/at-grandpa/isucon5q-crystal/

setupする。

$ cd isucon5q-crystal
$ make setup

指示に従って環境をsetupしていく。

動作確認

isuconユーザーのhomeにベンチマークツールがあるので実行してみる。

$ cd
$ sh ./bench.sh

スコアが表示されればOK。

ファイル編集後のビルド

ファイルを編集した後は、

$ make build

を実行すれば、

  • 他言語のserviceを停止
  • shards update
  • crystalのコードをbuildして、webapp配下に配置
  • isuxi.crystal.serviceをrestart

をします。