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
Copy file name to clipboardExpand all lines: docs/hypernode-platform/tools/hypernode-brancher.md
+53-19Lines changed: 53 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,13 +100,22 @@ The appname specified in the request url is the appname on which the Brancher no
100
100
101
101
Once the Brancher node becomes available, you can control it via the `/v2/app/<appname>-eph123456` endpoint just like a regular Hypernode.
102
102
103
-
### Hypernode-deploy
103
+
To specify `labels` and/or `clear_services` in the API call, you can set the header `Content-Type: application/json` with a content body like:
104
104
105
-
Hypernode-deploy is our recommended way of deploying your webshop to Hypernode. which makes it easier for you to manage your application’s codebase. This platform is fully integrated with Hypernode Brancher, which makes it a breeze for you to try out upgrade scenarios, or pushes to the Staging environment.
Once you set up your Hypernode to make use of Hypernode-deploy, you can run your tests against a Brancher node with just a single command. This will then run against your fresh Branched version of the Node, making sure that your tests are passing before deploying to production.
114
+
Hypernode Deploy is our recommended way of deploying your webshop to Hypernode. which makes it easier for you to manage your application’s codebase. This platform is fully integrated with Hypernode Brancher, which makes it a breeze for you to try out upgrade scenarios, or pushes to the Staging environment.
108
115
109
-
You can use Brancher in your Hypernode-deploy deploy.php file like this:
116
+
Once you set up your Hypernode to make use of Hypernode Deploy, you can run your tests against a Brancher node with just a single command. This will then run against your fresh Branched version of the Node, making sure that your tests are passing before deploying to production.
117
+
118
+
You can use Brancher in your Hypernode Deploy `deploy.php` file like this:
This will automatically create a Brancher node based on the parent Hypernode and push to it, allowing you to test the changes before making them on the production Hypernode.
130
140
141
+
In this example, we also set the label `stage=test` and the setting `clear_services` with value `cron` and `supervisor`, which means that the `cron` and `supervisor` configurations found on `example` will not be actively present on the Brancher instance.
142
+
131
143
### Hypernode-systemctl brancher
132
144
133
-
You can use the command hypernode-systemctl brancher tool to quickly interact with the Hypernode API in a validated and controlled manner. Creating a Brancher node goes like this:
145
+
You can use the command hypernode-systemctl brancher tool to quickly interact with the Hypernode API in a validated and controlled manner.
146
+
147
+
```{note}
148
+
There's an alias `hypernode-brancher` for the command `hypernode-systemctl brancher`, this might save you some keystrokes :).
149
+
```
150
+
151
+
#### Creating a Brancher node
134
152
135
153
```console
136
154
$ hypernode-systemctl brancher --create
137
-
Brancher App created for app 'testalex'. See hypernode-systemctl brancher --list for the progress
138
-
app_name: testalex-eph123456
139
-
parent: testalex
140
-
Host: testalex-eph123456.hypernode.io
155
+
Brancher App created for app 'example'. See hypernode-systemctl brancher --list for the progress
156
+
app_name: example-eph123456
157
+
parent: example
158
+
Host: example-eph123456.hypernode.io
159
+
Labels: None
160
+
Services with data to be cleared: cron
141
161
IP: will become available in a couple of minutes
142
162
```
143
163
144
-
You can then list the available Brancher nodes:
164
+
In the above example you see the details of the created Brancher instance. The output also contains the given labels and services to be cleared, which have the respective defaults of `None` and `cron`.
165
+
166
+
To apply one or more label(s) to the Brancher instance, you can specify one or more `--label` options when creating the instance:
0 commit comments