-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tt 2.4.0 features: log, enable, --self, start -i (#4475)
- Loading branch information
Showing
8 changed files
with
112 additions
and
23 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
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,21 @@ | ||
.. _tt-enable: | ||
|
||
Adding external applications to environments | ||
============================================ | ||
|
||
.. code-block:: console | ||
$ tt enable {APPLICATION|SCRIPT} | ||
``tt enable`` adds an external Tarantool application to the current environment | ||
by creating a symlink to it in the ``instances.enabled`` directory. | ||
|
||
To add the application located in ``/home/tt-user/external_app`` to the current | ||
``tt`` environment: | ||
|
||
.. code-block:: console | ||
$ tt enable /home/tt-user/external_app | ||
Once the application is added, you can work with it the same way as with applications | ||
created in this environment. |
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,39 @@ | ||
.. _tt-log: | ||
|
||
Printing Tarantool logs | ||
======================= | ||
|
||
.. code-block:: console | ||
$ tt log [APPLICATION[:APP_INSTANCE]] | ||
``tt log`` prints the last lines of instance logs. | ||
|
||
To print 10 last log lines of all the ``app`` application instances: | ||
|
||
.. code-block:: console | ||
$ tt log app | ||
To print 50 last log lines of the ``router`` instance of the ``app`` application: | ||
|
||
.. code-block:: console | ||
$ tt log -n 50 app:router | ||
To keep printing logs of the ``app`` application instances as they grow: | ||
|
||
.. code-block:: console | ||
$ tt log -f app | ||
Options | ||
------- | ||
|
||
.. option:: -f, --follow | ||
|
||
Keep printing new lines added to the log file. | ||
|
||
.. option:: -n, --lines | ||
|
||
The number of last lines to output. Default: ``10``. |
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