パーフェクトRubyのPart5 Webアプリケーション開発を教材にRubyの勉強をする
ソフトウェア | バージョン | 備考 |
---|---|---|
ruby | 2.2.1-p85 | |
bootstrap | 3.3.6 | |
vagrant | 1.7.4 | |
docker | 1.9.1 |
$ vagrant up
$ vagrant ssh
$ cd /vagrant
$ docker build --no-cache=true --rm -t hiroshima-arc/ruby-webapp:dev -f Dockerfile-dev .
$ docker run -it -v $(pwd):/app -p 9292:9292 --name app-dev hiroshima-arc/ruby-webapp:dev
$ bundle
$ rackup -o 0.0.0.0
$ vagrant up
$ vagrant ssh
$ cd /vagrant
$ docker build --no-cache=true --rm -t hiroshima-arc/ruby-webapp .
$ docker run -d -p 9292:9292 --name app-prd hiroshima-arc/ruby-webapp