Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
160b8923
Unverified
Commit
160b8923
authored
Nov 05, 2019
by
Robert Knight
Committed by
GitHub
Nov 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1471 from hypothesis/update-mobile-testing-docs
Update mobile testing docs
parents
16689899
7b4d28e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
edit-oauth-client.png
docs/developers/edit-oauth-client.png
+0
-0
mobile.rst
docs/developers/mobile.rst
+14
-16
No files found.
docs/developers/edit-oauth-client.png
0 → 100644
View file @
160b8923
77.7 KB
docs/developers/mobile.rst
View file @
160b8923
...
@@ -13,7 +13,8 @@ tested with at least current versions of iOS Safari and Chrome for Android.
...
@@ -13,7 +13,8 @@ tested with at least current versions of iOS Safari and Chrome for Android.
#. Configure h to allow incoming connections from other systems
#. Configure h to allow incoming connections from other systems
by editing ``conf/development-app.ini`` and changing the ``host`` setting from
by editing ``conf/development-app.ini`` and changing the ``host`` setting from
``localhost`` to ``0.0.0.0``.
``localhost`` to ``0.0.0.0``. You will need to restart the h dev server after
making this change.
#. Get the hostname of your development system (``<HOSTNAME>``
#. Get the hostname of your development system (``<HOSTNAME>``
in the steps below). You can do this using the ``hostname`` terminal command on
in the steps below). You can do this using the ``hostname`` terminal command on
...
@@ -28,24 +29,21 @@ tested with at least current versions of iOS Safari and Chrome for Android.
...
@@ -28,24 +29,21 @@ tested with at least current versions of iOS Safari and Chrome for Android.
accessible from other devices on the network. If you have problems using
accessible from other devices on the network. If you have problems using
the hostname, try using the IP address instead.
the hostname, try using the IP address instead.
#. Set the :envvar:`CLIENT_URL` environment variable to configure h
#. On your mobile device, go to a page which has the client embedded such as
to load the client from this host and start the dev server:
``http://<HOSTNAME>:3000`` or ``http://<HOSTNAME>:5000/docs/help``.
.. code-block:: sh
# In the h repository
These URLs will also work on your development system.
# Configure the URL that the client is loaded from in pages
# that embed Hypothesis
export CLIENT_URL=http://<HOSTNAME>:3001/hypothesis
make dev
Troubleshooting
###############
#. Make sure the "Redirect URL" of the OAuth client associated with your
- If logging into the client does not work when the client is accessed via
development client matches `<HOSTNAME>`. You can configure the OAuth clients
a non-localhost URL, make sure the "Redirect URL" for the Hypothesis client's
registered with h at http://localhost:5000/admin/oauthclients.
"OAuth client" (managed at http://localhost:5000/admin/oauthclients) is
set to ``{current_scheme}://{current_host}:5000``:
This step is necessary to make logging into the client work.
.. image:: edit-oauth-client.png
#. On your mobile device, go to a page which has the client embedded such as
- Make sure that you are not overriding the ``CLIENT_URL`` env var in your h
``http://<HOSTNAME>:3000`` or ``http://<HOSTNAME>:5000/docs/help``.
environment or ``SIDEBAR_APP_URL`` env var in your client dev environment
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment