You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The :ref:`tt create <tt-create>` command can be used to :ref:`create an application <admin-instance_config-develop-app>` from a predefined or custom template.
44
-
In this tutorial, the application layout is prepared manually:
45
-
46
-
#. Create a tt environment in the current directory using the :ref:`tt init <tt-init>` command.
47
-
48
-
#. Inside the ``instances.enabled`` directory of the created tt environment, create the ``net_box`` directory.
49
-
50
-
#. Inside ``instances.enabled/net_box``, create the ``instances.yml`` and ``config.yaml`` files:
51
-
52
-
* ``instances.yml`` specifies instances to run in the current environment. In this example, there is one instance:
To try out ``net.box`` requests in the interactive console, you need to start sample applications:
73
-
74
-
1. Start the :ref:`sample_db <getting_started_net_box_sample_db>` application using ``tt start``:
75
-
76
-
.. code-block:: console
77
-
78
-
$ tt start sample_db
79
-
80
-
2. Start the :ref:`net_box <getting_started_net_box_creating-app>` application:
81
-
82
-
.. code-block:: console
43
+
To try out ``net.box`` requests in the interactive console, you need to start the :ref:`sample_db <getting_started_net_box_sample_db>` application using ``tt start``:
83
44
84
-
$ tt start net_box
45
+
.. code-block:: console
85
46
86
-
3. Connect to ``net_box:instance001`` using ``tt connect``:
47
+
$ tt start sample_db
87
48
88
-
.. code-block:: console
49
+
Then, use the :ref:`tt run -i <tt-run>` command to start an interactive console:
89
50
90
-
$ tt connect net_box:instance001
91
-
• Connecting to the instance...
92
-
• Connected to net_box:instance001
51
+
.. code-block:: console
93
52
94
-
net_box:instance001>
53
+
$ tt run -i
54
+
Tarantool 3.0.0-entrypoint-1144-geaff238d9
55
+
type 'help' for interactive help
56
+
tarantool>
95
57
96
-
In the instance's console, you can create a ``net.box`` connection and try out data operations.
58
+
In the console, you can create a ``net.box`` connection and try out data operations.
0 commit comments