https://bugzilla.wikimedia.org/show_bug.cgi?id=66399

            Bug ID: 66399
           Summary: Make it easier to access Vagrant from another VM
           Product: MediaWiki-Vagrant
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

The main use case for this would be browser testing, e.g. with the modern.ie
VMs.

This is my current method: in the IE VM add

10.0.2.2 whatever

to the host file; in the vagrant VM set

$wgServer = "http://whatever:8080";;

in LocalSettings.php, and you can access the MediaWiki installation from the IE
VM via http://whatever:8080.


Obviously this would be a lot easier if I didn't have to edit $wgServer every
time I want to switch browsers; could we just add something like

if ( isset( $_SERVER['SERVER_NAME'] ) ) {
        $wgServer = 'http://' . $_SERVER['SERVER_NAME'] . ':8080';
} else {
        $wgServer = "http://127.0.0.1:8080";;
}

to the default mw-vagrant LocalSettings file?
(Making the port configurable in the vagrantfile would be even better, for
people who run multiple vagrants, but that's another issue.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to