/
2015-04-18-dokku.html
515 lines (347 loc) · 26.9 KB
/
2015-04-18-dokku.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>dokku 0.3.17 に Ruby on Rails アプリをデプロイしてみた - @znz blog</title>
<meta name="author" content="Kazuhiro NISHIYAMA">
<meta name="description" content="dokku 0.3.17 に Ruby on Rails アプリをデプロイしてみた Apr 18th, 2015 9:00 pm | Comments dokku がいつの間にか deis がスポンサーになって開発が活発になって 0.3 系がリリースされていたので、
0.3.17 に Ruby …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://blog.n-z.jp/blog/2015-04-18-dokku.html">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="@znz blog" type="application/atom+xml">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/libs/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-43859023-1', 'n-z.jp');
ga('send', 'pageview');
</script>
</head>
<body >
<header role="banner"><hgroup>
<h1><a href="/">@znz blog</a></h1>
<h2>ZnZ の memo のようなもの</h2>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://www.google.co.jp/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-4711975605457723:5173725094" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="40" />
<input type="submit" name="sa" value="検索" />
</div>
</form>
<script type="text/javascript" src="http://www.google.co.jp/coop/cse/brand?form=cse-search-box&lang=ja"></script>
<ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div>
<article class="hentry" role="article">
<header>
<!-- zenback_title_begin -->
<h1 class="entry-title">dokku 0.3.17 に Ruby on Rails アプリをデプロイしてみた</h1>
<!-- zenback_title_end -->
<p class="meta">
<time class='entry-date' datetime='2015-04-18T21:00:00+09:00'><span class='date'><span class='date-month'>Apr</span> <span class='date-day'>18</span><span class='date-suffix'>th</span>, <span class='date-year'>2015</span></span> <span class='time'>9:00 pm</span></time>
| <a href="#disqus_thread"
data-disqus-identifier="http://blog.n-z.jp">Comments</a>
</p>
</header>
<!-- zenback_body_begin -->
<div class="entry-content"><p>dokku がいつの間にか deis がスポンサーになって開発が活発になって 0.3 系がリリースされていたので、
0.3.17 に Ruby on Rails アプリをデプロイしてみました。</p>
<!--more-->
<h2>対象バージョン</h2>
<ul>
<li>dokku 0.3.17</li>
<li>docker 1.5.0, 1.6.0</li>
</ul>
<h2>前準備</h2>
<p>何度か繰り返す予定ならあらかじめ、
次の初回起動の手順の <code>vagrant up</code> の前に、
Makefile の <code>PREBUILT_STACK_URL</code> を
Vagrantfile の <code>PREBUILT_STACK_URL</code> で
チェックしている場所にダウンロードしておくと
ダウンロード時間を短縮できます。</p>
<pre><code>curl -L -o stack.tgz https://github.com/progrium/buildstep/releases/download/2014-12-16/2014-12-16_42bd9f4aab.tar.gz
</code></pre>
<h2>初回起動</h2>
<p>Vagrant 環境で試しました。</p>
<pre><code>git clone https://github.com/progrium/dokku
cd dokku
vagrant up
</code></pre>
<p>vagrant の中では <code>/vagrant</code> の他に <code>/root/dokku</code> に <code>dokku</code> ディレクトリがマウントされています。</p>
<h2>初期設定</h2>
<p>Vagrant でポートフォワーディングされている <code>http://localhost:8080/</code> か
ホストオンリーアダプタで接続されている <code>http://10.0.0.2/</code> を開きます。
Dokku Setup が表示されるので、そこで初期設定をします。</p>
<p><code>Public Key</code> に自分の <code>~/.ssh/id_rsa.pub</code> が入っているのを確認します。
必要なら他の公開鍵に変更します。</p>
<p>Hostname Configuration の方は Hostname に自分がインターネットに接続しているグローバル IP アドレスが表示されているので、
<code>dokku.me</code> に変更して、
<code>Use virtualhost naming for apps</code> にチェックを入れます。
<code>dokku.me</code> は dokku の作者が運用していると思われる、すべてのサブドメインで 127.0.0.1 を返してくれるサービスです。</p>
<p><code>Finish Setup</code> を押すと初期設定は終了して
<code>http://progrium.viewdocs.io/dokku/application-deployment</code>
に飛ばされます。</p>
<p>ちなみに、初期設定用のサーバーの実体は
<code>contrib/dokku-installer.rb</code>
にあるようです。</p>
<h2>ssh の設定</h2>
<p><code>ssh dokku</code> や <code>ssh dokku.me</code> で接続できるように
<code>~/.ssh/config</code> に以下のような設定を追加しました。
<code>User</code>, <code>Hostname</code>, <code>Port</code>, <code>RequestTTY</code> 以外の設定はお好みで良いと思います。</p>
<pre><code>Host dokku dokku.me
User dokku
HostName 10.0.0.2
Port 22
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
LogLevel FATAL
RequestTTY yes
Ciphers arcfour128,arcfour256
</code></pre>
<h2>サンプルアプリをデプロイ</h2>
<p><a href="http://progrium.viewdocs.io/dokku/application-deployment">http://progrium.viewdocs.io/dokku/application-deployment</a> に書いてある node.js のサンプルアプリをデプロイします。</p>
<pre><code>git clone https://github.com/heroku/node-js-sample
cd node-js-sample
git remote add dokku dokku@dokku.me:node-js-app
git push dokku master
</code></pre>
<p><code>http://node-js-app.dokku.me:8080/</code> を開いて「Hello World!」が見えれば成功です。</p>
<h2>PostgreSQL プラグインをインストール</h2>
<p>今回は
<a href="http://progrium.viewdocs.io/dokku/plugins" title="Plugins">Plugins</a>
で「Compatible with 0.3.16」と書いてある
<a href="https://github.com/Flink/dokku-psql-single-container" title="PostgreSQL (single container)">PostgreSQL (single container)</a>
を使いました。</p>
<p><code>vagrant ssh</code> で入って以下を実行しました。</p>
<pre><code>sudo git clone https://github.com/Flink/dokku-psql-single-container /var/lib/dokku/plugins/psql-sc
sudo dokku plugins-install
</code></pre>
<p><code>postgres:9.3</code> のイメージをダウンロードするので、しばらく時間がかかりました。</p>
<h2>Rails のサンプルをデプロイ</h2>
<p>試行錯誤の結果、シンプルな手順は以下のようになりました。</p>
<pre><code>ssh dokku apps:create ruby-rails-app
ssh dokku psql:create ruby-rails-app
git clone https://github.com/heroku/ruby-rails-sample
cd ruby-rails-sample
git remote add dokku dokku@dokku.me:ruby-rails-app
git push dokku master
</code></pre>
<p><code>http://ruby-rails-app.dokku.me:8080/</code> を開いて <code>Hello World</code> と現在時刻が表示されれば成功です。</p>
<p>今回利用したプラグインでは <code>psql:create</code> だけで、別途 <code>link</code> という手順は不要でした。</p>
<h2>データベースの migration の実行</h2>
<p>このサンプルアプリではデータベースに接続するだけで使っていないので、
必須ではないのですが <code>rake db:migrate</code> も実行しました。</p>
<pre><code>ssh dokku run ruby-rails-app rake db:migrate
</code></pre>
<h2>タイムゾーン設定</h2>
<p>現在時刻が UTC で表示されていたので、
JST に変更しました。</p>
<pre><code>ssh dokku config:set ruby-rails-app TZ=Asia/Tokyo
</code></pre>
<p>設定変更後に自動で再起動されるので、
<code>http://ruby-rails-app.dokku.me:8080/</code> を開いて、
現在時刻が日本時間で表示されれば成功です。</p>
<h2>CHECKS 作成</h2>
<p>デフォルトだと
<a href="http://progrium.viewdocs.io/dokku/application-deployment#user-content-zero-downtime-deploy" title="Zero downtime deploy">Zero downtime deploy</a>
の簡易チェックで 35 秒待つようになっているので、
<code>CHECKS</code> ファイルを作成して待ち時間を短くして、
正常なときだけデプロイできるようにしてみました。</p>
<pre><code>vi CHECKS
git add CHECKS
git commit
git push dokku master
</code></pre>
<p>CHECKS ファイルの内容は以下の通りです。</p>
<pre><code>/ RubyRailsSample
</code></pre>
<p>左側がチェックする URL で右側がその URL を表示したときに含まれる文字列です。
ここではタイトルの文字列を指定してみました。</p>
<h2>アプリケーションの削除</h2>
<p><code>apps:destroy</code> で削除できます。
確認のため、もう一度アプリ名を入力する必要があります。</p>
<pre><code>% ssh dokku apps:destroy node-js-app
! WARNING: Potentially Destructive Action
! This command will destroy node-js-app (including all add-ons).
! To proceed, type "node-js-app"
> node-js-app
Destroying node-js-app (including all add-ons)
No database configured for node-js-app
Connection to 10.0.0.2 closed.
</code></pre>
<p><code>ruby-rails-app</code> の削除も試してみたところ、
データベースも一緒に削除されるので、
別途 <code>psql:delete</code> を実行する必要はありませんでした。</p>
<h2>デプロイ時に ruby のダウンロードでタイムアウトする場合</h2>
<p><a href="http://www.slideshare.net/snumano/20150101-dokku-alt" title="20150101勉強会 dokku alt">20150101勉強会 dokku alt</a>
の16ページの手順5を参考にしてタイムアウトをのばすと良いようです。</p>
<pre><code>ssh dokku config:set ruby-rails-app CURL_TIMEOUT=120
</code></pre>
</div>
<!-- zenback_body_end -->
<footer>
<p class="meta">
<span class="byline author vcard">Posted by <span class="fn">Kazuhiro NISHIYAMA</span></span>
<time class='entry-date' datetime='2015-04-18T21:00:00+09:00'><span class='date'><span class='date-month'>Apr</span> <span class='date-day'>18</span><span class='date-suffix'>th</span>, <span class='date-year'>2015</span></span> <span class='time'>9:00 pm</span></time>
<span class="categories">
<a class='category' href='/blog/categories/docker/'>docker</a>, <a class='category' href='/blog/categories/dokku/'>dokku</a>, <a class='category' href='/blog/categories/linux/'>linux</a>
</span>
</p>
<div class="sharing">
</div>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- footer -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-4711975605457723"
data-ad-slot="4115794291"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<p class="meta">
<a class="basic-alignment left" href="/blog/2015-04-04-amagasakirb.html" title="Previous Post: 4月4日 アンダースタンディング コンピュテーション読書会 第2回 (大阪府)に参加しました">« 4月4日 アンダースタンディング コンピュテーション読書会 第2回 (大阪府)に参加しました</a>
<a class="basic-alignment right" href="/blog/2015-04-20-sakura-vps-dokku.html" title="Next Post: さくらのVPSにdokkuをdebで入れてみた">さくらのVPSにdokkuをdebで入れてみた »</a>
</p>
</footer>
</article>
<section>
<!-- X:S ZenBackWidget --><div id="zenback-widget-loader"></div><script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var r=Math.ceil((new Date()*1)*Math.random());var j=d.createElement("script");j.id=i;j.async=true;j.src="//w.zenback.jp/v1/?base_uri=http%3A//blog.n-z.jp/&nsid=122901358100652638%3A%3A122901381991399941&rand="+r;d.body.appendChild(j);}}(document,"zenback-widget-js");</script><!-- X:E ZenBackWidget -->
</section>
<section>
<h1>Comments</h1>
<div id="disqus_thread" aria-live="polite"><noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</div>
</section>
</div>
<aside class="sidebar">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- sidebar -->
<ins class="adsbygoogle"
style="display:inline-block;width:160px;height:600px"
data-ad-client="ca-pub-4711975605457723"
data-ad-slot="4210402292"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<section>
<h1>About Me</h1>
<img src="/favicon.png" style="float:right">
<p>
<a href="http://rubycommitters.org/">Ruby のコミッター</a>とかやってます。
フルスタックエンジニア(って何?)かもしれません。
</p>
<script data-gittip-username="znz"
data-gittip-widget="button"
src="//gttp.co/v1.js"></script>
</section>
<script language="javascript" type="text/javascript" src="http://b.hatena.ne.jp/js/widget.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript">
Hatena.BookmarkWidget.url = "http://blog.n-z.jp/";
Hatena.BookmarkWidget.title = "人気エントリー";
Hatena.BookmarkWidget.sort = "count";
Hatena.BookmarkWidget.width = 0;
Hatena.BookmarkWidget.num = 6;
Hatena.BookmarkWidget.theme = "default";
Hatena.BookmarkWidget.load();
</script>
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/2015-05-09-amagasakirb.html">5月9日 アンダースタンディング コンピュテーション読書会 第3回(兵庫県)に参加しました</a>
</li>
<li class="post">
<a href="/blog/2015-05-03-lilo-tokaidolug.html">LILO & 東海道らぐ・オフラインミーティング(2015/05/03)に参加しました</a>
</li>
<li class="post">
<a href="/blog/2015-04-25-rubykansai66.html">第66回 Ruby関西 勉強会に参加した</a>
</li>
<li class="post">
<a href="/blog/2015-04-20-sakura-vps-dokku.html">さくらのVPSにdokkuをdebで入れてみた</a>
</li>
<li class="post">
<a href="/blog/2015-04-18-dokku.html">dokku 0.3.17 に Ruby on Rails アプリをデプロイしてみた</a>
</li>
</ul>
</section>
<section>
<h1>Tag Cloud</h1>
<span id="tag-cloud"><a href='/blog/categories/alsa' style='font-size: 101.57894736842105%'>alsa(2)</a> <a href='/blog/categories/amagasakirb' style='font-size: 109.47368421052632%'>amagasakirb(12)</a> <a href='/blog/categories/ansible' style='font-size: 107.10526315789474%'>ansible(9)</a> <a href='/blog/categories/anyenv' style='font-size: 100.78947368421052%'>anyenv(1)</a> <a href='/blog/categories/authorization' style='font-size: 100.78947368421052%'>authorization(1)</a> <a href='/blog/categories/book' style='font-size: 101.57894736842105%'>book(2)</a> <a href='/blog/categories/boot2docker' style='font-size: 103.94736842105263%'>boot2docker(5)</a> <a href='/blog/categories/bootstrap' style='font-size: 100.78947368421052%'>bootstrap(1)</a> <a href='/blog/categories/bts' style='font-size: 100.78947368421052%'>bts(1)</a> <a href='/blog/categories/capistrano' style='font-size: 100.78947368421052%'>capistrano(1)</a> <a href='/blog/categories/cdr' style='font-size: 102.36842105263158%'>cdr(3)</a> <a href='/blog/categories/certification' style='font-size: 100.78947368421052%'>certification(1)</a> <a href='/blog/categories/coffeescript' style='font-size: 101.57894736842105%'>coffeescript(2)</a> <a href='/blog/categories/community' style='font-size: 102.36842105263158%'>community(3)</a> <a href='/blog/categories/debian' style='font-size: 119.73684210526315%'>debian(25)</a> <a href='/blog/categories/devise' style='font-size: 103.94736842105263%'>devise(5)</a> <a href='/blog/categories/dkms' style='font-size: 100.78947368421052%'>dkms(1)</a> <a href='/blog/categories/docker' style='font-size: 112.63157894736842%'>docker(16)</a> <a href='/blog/categories/dokku' style='font-size: 103.15789473684211%'>dokku(4)</a> <a href='/blog/categories/doorkeeper' style='font-size: 103.15789473684211%'>doorkeeper(4)</a> <a href='/blog/categories/drb' style='font-size: 100.78947368421052%'>drb(1)</a> <a href='/blog/categories/elscreen' style='font-size: 100.78947368421052%'>elscreen(1)</a> <a href='/blog/categories/emacs' style='font-size: 106.3157894736842%'>emacs(8)</a> <a href='/blog/categories/event' style='font-size: 146.57894736842104%'>event(59)</a> <a href='/blog/categories/fluentd' style='font-size: 100.78947368421052%'>fluentd(1)</a> <a href='/blog/categories/gem' style='font-size: 103.15789473684211%'>gem(4)</a> <a href='/blog/categories/ghq' style='font-size: 101.57894736842105%'>ghq(2)</a> <a href='/blog/categories/git' style='font-size: 103.94736842105263%'>git(5)</a> <a href='/blog/categories/github' style='font-size: 105.52631578947368%'>github(7)</a> <a href='/blog/categories/go' style='font-size: 100.78947368421052%'>go(1)</a> <a href='/blog/categories/gpg' style='font-size: 100.78947368421052%'>gpg(1)</a> <a href='/blog/categories/haml' style='font-size: 100.78947368421052%'>haml(1)</a> <a href='/blog/categories/heroku' style='font-size: 102.36842105263158%'>heroku(3)</a> <a href='/blog/categories/homebrew' style='font-size: 105.52631578947368%'>homebrew(7)</a> <a href='/blog/categories/html5' style='font-size: 102.36842105263158%'>html5(3)</a> <a href='/blog/categories/ime' style='font-size: 102.36842105263158%'>ime(3)</a> <a href='/blog/categories/ipsec' style='font-size: 100.78947368421052%'>ipsec(1)</a> <a href='/blog/categories/irb' style='font-size: 100.78947368421052%'>irb(1)</a> <a href='/blog/categories/isbn' style='font-size: 100.78947368421052%'>isbn(1)</a> <a href='/blog/categories/javascript' style='font-size: 103.15789473684211%'>javascript(4)</a> <a href='/blog/categories/jenkins' style='font-size: 100.78947368421052%'>jenkins(1)</a> <a href='/blog/categories/jquery' style='font-size: 100.78947368421052%'>jquery(1)</a> <a href='/blog/categories/jquery-mobile' style='font-size: 101.57894736842105%'>jquery-mobile(2)</a> <a href='/blog/categories/jquery-ui' style='font-size: 100.78947368421052%'>jquery-ui(1)</a> <a href='/blog/categories/jus' style='font-size: 102.36842105263158%'>jus(3)</a> <a href='/blog/categories/k-of' style='font-size: 101.57894736842105%'>k-of(2)</a> <a href='/blog/categories/kansaidebian' style='font-size: 103.94736842105263%'>kansaidebian(5)</a> <a href='/blog/categories/kernelvm' style='font-size: 100.78947368421052%'>kernelvm(1)</a> <a href='/blog/categories/l10n' style='font-size: 100.78947368421052%'>l10n(1)</a> <a href='/blog/categories/land-of-lisp' style='font-size: 103.15789473684211%'>land-of-lisp(4)</a> <a href='/blog/categories/lilo' style='font-size: 103.15789473684211%'>lilo(4)</a> <a href='/blog/categories/linux' style='font-size: 111.84210526315789%'>linux(15)</a> <a href='/blog/categories/live' style='font-size: 102.36842105263158%'>live(3)</a> <a href='/blog/categories/lxc' style='font-size: 100.78947368421052%'>lxc(1)</a> <a href='/blog/categories/lxcjp' style='font-size: 101.57894736842105%'>lxcjp(2)</a> <a href='/blog/categories/mail' style='font-size: 100.78947368421052%'>mail(1)</a> <a href='/blog/categories/mailman' style='font-size: 101.57894736842105%'>mailman(2)</a> <a href='/blog/categories/mavericks' style='font-size: 103.15789473684211%'>mavericks(4)</a> <a href='/blog/categories/memcached' style='font-size: 100.78947368421052%'>memcached(1)</a> <a href='/blog/categories/milter-manager' style='font-size: 100.78947368421052%'>milter-manager(1)</a> <a href='/blog/categories/mojibake' style='font-size: 100.78947368421052%'>mojibake(1)</a> <a href='/blog/categories/mysql' style='font-size: 101.57894736842105%'>mysql(2)</a> <a href='/blog/categories/nadoka' style='font-size: 100.78947368421052%'>nadoka(1)</a> <a href='/blog/categories/oauth2' style='font-size: 103.15789473684211%'>oauth2(4)</a> <a href='/blog/categories/octopress' style='font-size: 104.73684210526315%'>octopress(6)</a> <a href='/blog/categories/omniauth' style='font-size: 101.57894736842105%'>omniauth(2)</a> <a href='/blog/categories/openssl' style='font-size: 101.57894736842105%'>openssl(2)</a> <a href='/blog/categories/osx' style='font-size: 122.89473684210526%'>osx(29)</a> <a href='/blog/categories/owncloud' style='font-size: 101.57894736842105%'>owncloud(2)</a> <a href='/blog/categories/packer' style='font-size: 100.78947368421052%'>packer(1)</a> <a href='/blog/categories/passenger' style='font-size: 100.78947368421052%'>passenger(1)</a> <a href='/blog/categories/peco' style='font-size: 100.78947368421052%'>peco(1)</a> <a href='/blog/categories/postfix' style='font-size: 101.57894736842105%'>postfix(2)</a> <a href='/blog/categories/postgresql' style='font-size: 102.36842105263158%'>postgresql(3)</a> <a href='/blog/categories/pundit' style='font-size: 100.78947368421052%'>pundit(1)</a> <a href='/blog/categories/pyenv' style='font-size: 100.78947368421052%'>pyenv(1)</a> <a href='/blog/categories/r' style='font-size: 102.36842105263158%'>r(3)</a> <a href='/blog/categories/rabbit' style='font-size: 101.57894736842105%'>rabbit(2)</a> <a href='/blog/categories/rails' style='font-size: 127.63157894736842%'>rails(35)</a> <a href='/blog/categories/ransack' style='font-size: 100.78947368421052%'>ransack(1)</a> <a href='/blog/categories/rbenv' style='font-size: 103.15789473684211%'>rbenv(4)</a> <a href='/blog/categories/redmine' style='font-size: 101.57894736842105%'>redmine(2)</a> <a href='/blog/categories/rspec' style='font-size: 100.78947368421052%'>rspec(1)</a> <a href='/blog/categories/rsyslog' style='font-size: 100.78947368421052%'>rsyslog(1)</a> <a href='/blog/categories/rubima' style='font-size: 100.78947368421052%'>rubima(1)</a> <a href='/blog/categories/ruby' style='font-size: 160.0%'>ruby(76)</a> <a href='/blog/categories/rubykaigi' style='font-size: 100.78947368421052%'>rubykaigi(1)</a> <a href='/blog/categories/rubykansai' style='font-size: 104.73684210526315%'>rubykansai(6)</a> <a href='/blog/categories/rubymotion' style='font-size: 114.21052631578948%'>rubymotion(18)</a> <a href='/blog/categories/security' style='font-size: 102.36842105263158%'>security(3)</a> <a href='/blog/categories/shell' style='font-size: 103.15789473684211%'>shell(4)</a> <a href='/blog/categories/slim' style='font-size: 100.78947368421052%'>slim(1)</a> <a href='/blog/categories/ssh' style='font-size: 100.78947368421052%'>ssh(1)</a> <a href='/blog/categories/sylpheed' style='font-size: 100.78947368421052%'>sylpheed(1)</a> <a href='/blog/categories/td2planet' style='font-size: 100.78947368421052%'>td2planet(1)</a> <a href='/blog/categories/tty' style='font-size: 103.15789473684211%'>tty(4)</a> <a href='/blog/categories/ubuntu' style='font-size: 116.57894736842105%'>ubuntu(21)</a> <a href='/blog/categories/upstart' style='font-size: 101.57894736842105%'>upstart(2)</a> <a href='/blog/categories/usp' style='font-size: 100.78947368421052%'>usp(1)</a> <a href='/blog/categories/vagrant' style='font-size: 105.52631578947368%'>vagrant(7)</a> <a href='/blog/categories/vagrantcloud' style='font-size: 101.57894736842105%'>vagrantcloud(2)</a> <a href='/blog/categories/virtualbox' style='font-size: 101.57894736842105%'>virtualbox(2)</a> <a href='/blog/categories/weechat' style='font-size: 100.78947368421052%'>weechat(1)</a> <a href='/blog/categories/yaml' style='font-size: 100.78947368421052%'>yaml(1)</a> <a href='/blog/categories/zabbix' style='font-size: 101.57894736842105%'>zabbix(2)</a> <a href='/blog/categories/zsh' style='font-size: 110.26315789473685%'>zsh(13)</a> </span>
</section>
<section>
<h1>GitHub Repos</h1>
<ul id="gh_repos">
<li class="loading">Status updating...</li>
</ul>
<a href="https://github.com/znz">@znz</a> on GitHub
<script type="text/javascript">
$(document).ready(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
github.showRepos({
user: 'znz',
count: 3,
skip_forks: false,
target: '#gh_repos'
});
});
</script>
<script src="/javascripts/github.js" type="text/javascript"> </script>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2015 - Kazuhiro NISHIYAMA -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'znzblog';
// var disqus_developer = 1;
var disqus_identifier = 'http://blog.n-z.jp/blog/2015-04-18-dokku.html';
var disqus_url = 'http://blog.n-z.jp/blog/2015-04-18-dokku.html';
var disqus_script = 'embed.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
</body>
</html>