forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: new recommend path architecture documentation (digital-asset#4795)
CHANGELOG_BEGIN CHANGELOG_END
- Loading branch information
Robin Krom
authored
Mar 9, 2020
1 parent
e3c9f36
commit 0e046d9
Showing
22 changed files
with
525 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
.. Copyright (c) 2020 The DAML Authors. All rights reserved. | ||
.. SPDX-License-Identifier: Apache-2.0 | ||
.. _deploy-generic-ledger: | ||
|
||
Deploying to a generic DAML ledger | ||
================================== | ||
|
||
DAML ledgers expose a unified administration API. This means that deploying to a DAML ledger is no | ||
different from deploying to your local sandbox. | ||
|
||
To deploy to a DAML ledger, run the following command from within your DAML project: | ||
|
||
.. code-block:: none | ||
$ daml deploy --host=<HOST> --port=<PORT> --access-token-file=<TOKEN-FILE> | ||
where ``<HOST>`` and ``<PORT>`` is the hostname and port your ledger is listening on, which defaults | ||
to port ``6564``. The ``<TOKEN-FILE>`` is needed if your sandbox runs with :ref:`authentication | ||
<authentication>` and needs to contain a JWT token with an ``admin`` claim. If your sandbox is not | ||
setup to use any authentication it can be omitted. | ||
|
||
Instead of passing ``--host`` and ``--port`` flags to the command above, you can add the following | ||
section to the project's ``daml.yaml`` file: | ||
|
||
.. code-block:: yaml | ||
ledger: | ||
host: <HOSTNAME> | ||
port: <PORT> | ||
The ``daml deploy`` command will | ||
|
||
#. upload the project's compiled DAR file to the ledger. This will make the DAML templates defined | ||
in the current project available to the API users of the sandbox. | ||
|
||
#. allocate the parties specified in the project's ``daml.yaml`` on the ledger if they are missing. | ||
|
||
For more further interactions with the ledger, use the ``daml ledger`` command. Try running ``daml | ||
ledger --help`` to get a list of available ledger commands: | ||
|
||
.. code-block:: none | ||
$ daml ledger --help | ||
Usage: daml ledger COMMAND | ||
Interact with a remote DAML ledger. You can specify the ledger in daml.yaml | ||
with the ledger.host and ledger.port options, or you can pass the --host and | ||
--port flags to each command below. If the ledger is authenticated, you should | ||
pass the name of the file containing the token using the --access-token-file | ||
flag. | ||
Available options: | ||
-h,--help Show this help text | ||
Available commands: | ||
list-parties List parties known to ledger | ||
allocate-parties Allocate parties on ledger | ||
upload-dar Upload DAR file to ledger | ||
navigator Launch Navigator on ledger |
Oops, something went wrong.