Demoing Dallinger
===============

First, make sure you have Dallinger installed:

-  :doc:`installing_dallinger_for_users`
-  :doc:`developing_dallinger_setup_guide`

To test out Dallinger, we'll run a demo experiment in debug mode. First download the `Bartlett (1932) demo <http://dallinger.readthedocs.io/en/latest/demos/bartlett1932.html>`__ and unzip it. Then run Dallinger in debug mode from within that demo directory:

::

    dallinger debug

You will see some output as Dallinger loads. When it is finished, you will
see something that looks like:

::

    Now serving on http://0.0.0.0:5000
    [psiTurk server:on mode:sdbx #HITs:4]$

This is the psiTurk prompt. Into that prompt type:

::

    debug

This will cause the experiment to open in a new window in your browser.
Alternatively, type

::

    debug --print-only

to get the URL of the experiment so that you can view it on a different
machine than the one you are serving it on.

Once you have finished running through the experiment as a participant,
you can type ``debug`` again to play as the next participant.

**Help, the experiment page is blank!** This may happen if you are using
an ad-blocker. Try disabling your ad-blocker and refresh the page.

Demoing Dallinger
===============

First, make sure you have Dallinger installed:

-  :doc:`installing_dallinger_for_users`
-  :doc:`developing_dallinger_setup_guide`

To test out Dallinger, we'll run a demo experiment in debug mode. First download the `Bartlett (1932) demo <http://dallinger.readthedocs.io/en/latest/demos/bartlett1932.html>`__ and unzip it. Then run Dallinger in debug mode from within that demo directory:

::

    dallinger debug

You will see some output as Dallinger loads. When it is finished, you will
see something that looks like:

::

    ❯❯ Server is running on 0.0.0.0:5000. Press Ctrl+C to exit.

This indicates that the server is running.

@@@ Add instructions on how to open in browser once we've done story 136.

**Help, the experiment page is blank!** This may happen if you are using
an ad-blocker. Try disabling your ad-blocker and refresh the page.

Update docs on running debug server
Update docs on running debug server
