Skip to content

Instantly share code, notes, and snippets.

@mattjstar
Created June 8, 2015 22:07

Revisions

  1. mattjstar created this gist Jun 8, 2015.
    17 changes: 17 additions & 0 deletions spoof.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    # Set up gems listed in the Gemfile.
    ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

    require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])

    require 'rails/commands/server'
    module Rails
    class Server
    def default_options
    if Rails.env.development?
    super.merge!(Host: '208.113.83.165', Port: (ENV['PORT'] || 5001))
    else
    super
    end
    end
    end
    end