LoginSignup
3
3

More than 5 years have passed since last update.

dokku を OS X のvagrant で動かすためにyak shavingした

Posted at

注意:dokku開発のペースが早くすぐ陳腐化するのでバージョンには注意してください

ブログ記事 http://blog.coiney.com/2013/08/10/create-my-own-heroku/ http://qiita.com/hokaccha/items/af109d4037fa1d788617 みて全然できなくてものすごく毛を刈った。

この記事で言いたいこと

http://r7kamura.github.io/2014/02/18/private-paas-beach.html
r7kamuraさんがやってるようにDigital Ocean 使うのが一番早いと思う。

yak shaving

(1) 手元の開発環境(vmware fusion ubuntu12)で動かそう、dokkuインストール

(2) 動かない…
configuration にある、cat ~/.ssh/id_rsa.pub | ... すると、以下の表示がでてうまくいかない
sudo: no tty present and no askpass program specified

(3) sudoの設定が悪いと思う、/etc/sudoersいじったら変な設定にしたらしく自分のユーザでsudo できなくなって詰む

(4) もう一回ubuntu12入れなおそう…

(5) やっぱり同じエラーで動かない...

(6) dokkuの推奨はubuntu 14だし、14入れなおそう

(7) やっぱり動かねえ…

(8) いろいろぐぐってるとvagrantで動かすという記事見つけた http://blog.n-z.jp/blog/2014-04-18-ubuntu-1404-dokku.html# (最終的にこれが一番よかった)

(9) no tty とかでないでできそう。ただ git push できないが、別のページで解決 http://beletsky.net/2013/09/playing-with-dokku-on-vagrant.html

git remote add deploy dokku@dokku.me:node-sample

(10) やっとpushできてhttp://node-sample.dokku.me:8080 で返ってくるようになったぞ
ちなみに、dokku.meってなんぞやって思ったが、vagrantがうまくやってくれている模様。

(11) あれ、よくみたらhttp://node-sample.dokku.me:8080 で返ってくるのnginx のデフォルトページじゃん…

(12) nginx再起動したらよかった https://github.com/progrium/dokku/wiki/Troubleshooting

結局、3日くらいかかった…。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3