Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 487 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 487 Bytes

Setup

$ ./initial_setup.sh
$ cd rails_app
$ rails new .

Then add gem "unicorn" to your Gemfile.

Development

$ boot2docker start
$ boot2docker ip
$ fig up

Go to [ip_address]:3000 (ip address from $ boot2docker ip).

Stop development processes

$ docker rm -f $(docker ps -a)

Production

$ docker build -t [tag_name] .
$ docker run -d -p 3000:80 [tag_name]

Errors

If unicorn doesn't start, delete /rails_app/shared/pids/unicorn.pid