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/content/guides/7.multistore/2.tooling-and-concepts/3.deployment/6.deployment.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Ever wondered how Alokai transforms your codebase into a live, running applicati
13
13
Ready to deploy your store? It all starts with a single command:
14
14
15
15
```bash
16
-
yarn store deploy
16
+
yarn alokai store deploy
17
17
```
18
18
19
19
While this command is typically executed in your [continuous delivery pipeline](/guides/multistore/tooling-and-concepts/deployment/ci-cd), you can also run the deployment locally on your machine.
With either approach, you'll only need to specify the store-id:
206
206
```bash
207
-
yarn store deploy --store-id=fashion-brand
207
+
yarn alokai store deploy --store-id=fashion-brand
208
208
```
209
209
::
210
210
211
211
That's it! The CLI handles all the complexity of building, packaging, and deploying your store. You can also add `--verbose` flag to see detailed logs:
212
212
213
213
```bash
214
-
yarn store deploy --store-id=fashion-brand \
214
+
yarn alokai store deploy --store-id=fashion-brand \
215
215
--verbose # Optional: see detailed deployment logs
Copy file name to clipboardExpand all lines: docs/content/guides/7.multistore/2.tooling-and-concepts/3.deployment/8.cd.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ The `store deploy` command handles both building and deploying your stores. Ther
74
74
steps:
75
75
- name: Deploy stores
76
76
run: |
77
-
yarn store deploy \
77
+
yarn alokai store deploy \
78
78
--cloud-username ${{ vars.CLOUD_USERNAME }} \
79
79
--cloud-password ${{ secrets.CLOUD_PASSWORD }} \
80
80
$storeIdsFlag \
@@ -94,7 +94,7 @@ jobs:
94
94
steps:
95
95
- name: Deploy store
96
96
run: |
97
-
yarn store deploy \
97
+
yarn alokai store deploy \
98
98
--cloud-username ${{ vars.CLOUD_USERNAME }} \
99
99
--cloud-password ${{ secrets.CLOUD_PASSWORD }} \
100
100
--store-id ${{ matrix.store_id }} \
@@ -105,7 +105,7 @@ jobs:
105
105
106
106
### Understanding Change Detection
107
107
108
-
The change detection system is a core part of our CI/CD pipeline, implemented in the CLI, with `yarn store changed` command, to ensure consistent behavior across different CI platforms. Here's how it works:
108
+
The change detection system is a core part of our CI/CD pipeline, implemented in the CLI, with `yarn alokai store changed` command, to ensure consistent behavior across different CI platforms. Here's how it works:
109
109
110
110
The change detection system analyzes git differences and determines which stores are affected based on several rules:
111
111
@@ -138,10 +138,10 @@ The change detection system analyzes git differences and determines which stores
138
138
- Affected: All stores
139
139
140
140
5. **Global Dependencies**
141
-
Changes to globally configured paths (e.g., shared packages) affect all stores. You can mark global dependencies for the `yarn store changed` command by adding the `--global-dependencies` flag. For example:
141
+
Changes to globally configured paths (e.g., shared packages) affect all stores. You can mark global dependencies for the `yarn alokai store changed` command by adding the `--global-dependencies` flag. For example:
142
142
```bash
143
143
# Mark all packages in the packages directory as global dependencies
144
-
yarn store changed --global-dependencies="packages/**"
144
+
yarn alokai store changed --global-dependencies="packages/**"
145
145
```
146
146
147
147
6. **File Overrides**
@@ -159,7 +159,7 @@ The system provides detailed information about why each store was affected:
159
159
- `GLOBAL_DEPENDENCIES_CHANGED`: Changes in globally configured paths
160
160
161
161
::tip
162
-
When debugging why a particular store was affected, run the `yarn store changed` command without the `--condensed` flag to see the detailed change report. You can also run the command locally to debug the changes.
162
+
When debugging why a particular store was affected, run the `yarn alokai store changed` command without the `--condensed` flag to see the detailed change report. You can also run the command locally to debug the changes.
163
163
::
164
164
165
165
::info Why not use Turbo for change detection?
@@ -218,7 +218,7 @@ We use a single CLI command:
218
218
```yaml
219
219
# Do this instead
220
220
- name: Detect changes
221
-
run: yarn store changed --since $SINCE_SHA --to $TO_SHA
221
+
run: yarn alokai store changed --since $SINCE_SHA --to $TO_SHA
222
222
```
223
223
224
224
This approach makes it easy to implement our CI/CD pipeline in any CI system that can run shell commands.
0 commit comments