$ ./initial_setup.sh
$ cd rails_app
$ rails new .
Then add gem "unicorn"
to your Gemfile.
$ boot2docker start
$ boot2docker ip
$ fig up
Go to [ip_address]:3000 (ip address from $ boot2docker ip
).
$ docker rm -f $(docker ps -a)
$ docker build -t [tag_name] .
$ docker run -d -p 3000:80 [tag_name]
If unicorn doesn't start, delete /rails_app/shared/pids/unicorn.pid