Skip to content

onmyblock/docker_rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Docker and fig for Rails, Unicorn, and Nginx.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published