Skip to content

Instantly share code, notes, and snippets.

@groteck
Last active February 3, 2016 22:08
Show Gist options
  • Save groteck/90b9817706b78d41aa38 to your computer and use it in GitHub Desktop.
Save groteck/90b9817706b78d41aa38 to your computer and use it in GitHub Desktop.
Access to rails in docker from outside
require 'rails/commands/server'
module Rails
class Server
def default_options
super.merge(Host: '0.0.0.0', Port: 3000)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment