- webappは基本的にプルリクエストを通す(conf系は口頭でもおk)
- スコア変動の推移を書く
- ex) 2400 -> 3000
- 何を目的としているかを書く
- Covering Index / Data Cache / アルゴリズム改善
- DBのスキーマを変更する場合
db/changes.sqlに変更を加える- masterにマージされた場合、変更した人が責任をもって本番環境のDBスキーマを変更すること
/.ssh
|__ isucon_rsa
/cron
|__ pull.sh
|__ reset.sh
|__ restart.sh
/bin
|__ init.sh
/conf
|__ supervisord.conf
/webapp
|__
- アプリの設置
- ユーザーの変更
sudo su isuconcd
- 秘密鍵の設置
- .ssh/isucon_rsa の配置
- リポジトリのクローン
eval `ssh-agent` && ssh-add ~/.ssh/isucon_rsagit clone [email protected]:oppai/isucon3git config --global user.email "[email protected]"git config --global user.name "oppai"
- アプリのコピー
cp ~/webapp ~/isucon3/webappcd ~/isucon3git add webapp && git commit -m "add webapp"git push origin master
- GemとBundleInstall
cd ~/isucon3/webapp/ruby~/env.sh gem install bundler foreman~/env.sh bundle install --deployment --without development
- PerlからRubyに変更する
mv /etc/supervisord.conf{,.backup}sudo ln -s /home/isucon/isucon3/conf/supervisord.conf /etc/supervisord.confsudo service supervisord restart ## 1回では失敗するので何回か実行する
- RubyEnvのインストール(必要であれば)
git clone https://github.com/sstephenson/rbenv.git ~/.rbenvgit clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-buildrbenv rehash
- ユーザーの変更
- ベンチツールの準備
cron/bench.shとcron/slack.shを適切に書き換えるcron/crontabの設定をcrontabに設定する
eval `ssh-agent`
ssh-add isucon_rsa
git clone [email protected]:oppai/isucon4