Last modified: 2014-08-18 23:56:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68399, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66399 - Make it easier to access Vagrant from another VM
Make it easier to access Vagrant from another VM
Status: RESOLVED FIXED
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-10 02:01 UTC by Tisza Gergő
Modified: 2014-08-18 23:56 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tisza Gergő 2014-06-10 02:01:39 UTC
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.)
Comment 1 Bryan Davis 2014-08-02 17:43:02 UTC
This also blocks the use of `vagrant share` to share a local wiki with a remote colleague using Vagrant Cloud <https://vagrantcloud.com/>.
Comment 2 Gerrit Notification Bot 2014-08-18 20:55:33 UTC
Change 154941 had a related patch set uploaded by BryanDavis:
Set $wgServer from inbound request

https://gerrit.wikimedia.org/r/154941
Comment 3 Gerrit Notification Bot 2014-08-18 22:16:36 UTC
Change 154941 merged by jenkins-bot:
Set $wgServer from inbound request

https://gerrit.wikimedia.org/r/154941

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links