launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #30035
[Merge] ~ines-almeida/launchpad:update-starter-docs-remote-access-section into launchpad:master
Ines Almeida has proposed merging ~ines-almeida/launchpad:update-starter-docs-remote-access-section into launchpad:master.
Commit message:
Clarify "Setting up remote access" section in starter docs
No information change, but updated the title and added a paragraph to clarify some of details, to make it more accessible to everyone regardless of experience with containers.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/443498
Only updating starter docs. No content change, only wording and adding information for clarity.
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~ines-almeida/launchpad:update-starter-docs-remote-access-section into launchpad:master.
diff --git a/doc/how-to/running.rst b/doc/how-to/running.rst
index a217a19..8c373f1 100644
--- a/doc/how-to/running.rst
+++ b/doc/how-to/running.rst
@@ -287,8 +287,12 @@ need to do ``make schema`` every time, and you should avoid it because it's
expensive and because it will clean out any data you might have put into
your test instance (through the web UI or by running other scripts).
-Setting up remote access
-========================
+Accessing your web application
+==============================
+
+When running ``make run``, your application is running in your container, but it
+is not yet accessible outside of it - this includes your host machine, i.e.,
+you won't, for example, be able to access your application from your browser.
Unless the only thing you're doing is running parts of the test suite, you
probably want to make your new Launchpad instance accessible from other
@@ -312,20 +316,36 @@ Amending the hosts file
Launchpad makes extensive use of virtual hosts, so you'll need to add
entries to ``/etc/hosts`` on any machine from which you want to access the
-Launchpad instance. You'll see the relevant hostnames in ``/etc/hosts`` on
-the machine running the instance - they need to be added to the remote
-machine, mapped to the server machine or container's external IP address.
+Launchpad instance.
+
+Within the container running the instance, you can see the relevant hostnames
+in ``/etc/hosts`` - these need to be added to the machine you want to access
+the application in, mapped to the server machine or container's external IP address.
+
+For example, to access the application in your host system (and your browser),
+you should copy the launchpad hostnames you see in the ``hosts`` file within
+the container running the application, and append them to your host system's
+``hosts`` file, mapped to the IPv4 address of the container running the app.
+
+This should look similar to this:
+
+.. code-block::
+
+ # Launchpad virtual domains. This should be on one line.
+ <your container IPv4 address> launchpad.test answers.launchpad.test archive.launchpad.test api.launchpad.test bazaar.launchpad.test bazaar-internal.launchpad.test blueprints.launchpad.test bugs.launchpad.test code.launchpad.test feeds.launchpad.test keyserver.launchpad.test lists.launchpad.test ppa.launchpad.test private-ppa.launchpad.test testopenid.test translations.launchpad.test xmlrpc-private.launchpad.test xmlrpc.launchpad.test
+
+.. note::
-If some of those other machines run Windows, it may be helpful to know that
-the Windows equivalent of ``/etc/hosts`` is located at
-``C:\WINDOWS\system32\drivers\etc\hosts``. Note that Windows' version has a
-line length limit, so you might have to split it across multiple lines or
-only include the hostnames that you need.
+ To access the application in a Windows machine, it may be helpful to know that
+ the Windows equivalent of ``/etc/hosts`` is located at
+ ``C:\WINDOWS\system32\drivers\etc\hosts``. Note that Windows' version has a
+ line length limit, so you might have to split it across multiple lines or
+ only include the hostnames that you need.
You should now be able to access ``https://launchpad.test/`` in a web
-browser on a suitably configured remote computer. Accept the local
-self-signed certificate. You can log in as ``admin@xxxxxxxxxxxxx`` without
-a password. (This is only for development convenience, and assumes that you
+browser on a suitably configured remote computer. Accept the local
+self-signed certificate. You can log in as ``admin@xxxxxxxxxxxxx`` without
+a password. (This is only for development convenience, and assumes that you
trust machines that can route to your LXD containers; of course a production
deployment would need real authentication.). If you want to create more user
accounts, see :doc:`new-user`.