Skip to content

Commit

Permalink
rewrite redeploy section #9616
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Aug 9, 2023
1 parent b798ae9 commit ede473f
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions doc/sphinx-guides/source/container/dev-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,29 @@ Alternatives:
Options are the same.


Re-Deploying
------------
Redeploying
-----------

Currently, the only safe and tested way to redeploy the Dataverse application after changing the code is to recreate the containers. In the future, more options may be added here.

Redeploying from Quickstart
^^^^^^^^^^^^^^^^^^^^^^^^^^^

If you are following the :ref:`container-dev-quickstart`, which runs containers in the foreground, simply stop the containers with Ctrl-c and then start them again with the same Maven command:

.. code-block::
# Ctrl-c to stop containers (can take a moment!)
# Wait for "Container dev_dataverse Stopped", etc
# Rebuild app and start contaienrs up again
mvn -Pct clean package docker:run
Currently, the only safe and tested way to re-deploy the Dataverse application after you applied code changes is
by recreating the container(s). In the future, more options may be added here.
Redeploying Just Dataverse with Docker Compose
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If you started your containers in foreground, just stop them and follow the steps for building and running again.
The same goes for using Maven to start the containers in the background.
Please note: We're not 100% sure this works. Please let us know either way.

In case of using Docker Compose and starting the containers in the background, you can use a workaround to only
restart the application container:
If you used Docker Compose to start containers in the background (with ``-d`` for "detached" as shown above), you can rebuild and restart just the application (Dataverse) container like this:

.. code-block::
Expand Down

0 comments on commit ede473f

Please sign in to comment.