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: src/content/docs/developing/local/getting-started.mdx
+38-8Lines changed: 38 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,20 +37,50 @@ If you would prefer to change the default location, the user can right-click on
37
37
38
38
The user can change the deploy directory at any by using the same right-click option on another directory.
39
39
40
-
## 3. The Deploy button / Running the deployment process
40
+
## 3. Deployment
41
41
42
-
Using the 'Deploy' button on the status bar will start the deployment process. If the workspace has more than one folder, the user will have to select which folder they want to deploy.
42
+
### Running the deployment
43
+
Using the `Deploy` button on the status bar will start the deployment process. If the workspace has more than one folder, the user will have to select which folder they want to deploy.
44
+

43
45
44
-
There are five options for deployment:
46
+
Running the deployment will prompt the user to chose a deployment method amongst the [five possible options](#deployment-methods), unless a default method has been selected in the [connection settings](#setting-the-default-deployment-method).
47
+

45
48
46
-
1. Working Changes: This only works if the chosen workspace folder is a git repository. Code for IBM i will look at the git status to determine the files that have been changed since the last commit (unstaged and staged) and only uploads those files.
47
-
2. Staged Changes: The same as the "Working Changes" option, but only uploads staged / indexed files.
48
-
3. All: Will upload all files in the chosen workspace folder. Will ignore files that are part of the '.gitignore' file if it exists.
49
-
4. Changes: Will upload only files that VSCode knows have changed in the workspace since the last deploy.
50
-
5. Compare: Will compare every file in the local workspace against the deploy location and upload only those detected as different (by means of MD5 checksums). This is also the only method that will delete files from the deploy location, if they have been removed from the local workspace folder.
49
+
### Deployment methods
50
+
51
+
#### Working Changes
52
+
This only works if the chosen workspace folder is a git repository. Code for IBM i will look at the git status to determine the files that have been changed since the last commit (unstaged and staged) and only uploads those files.
53
+
54
+
#### Staged Changes
55
+
The same as the `Working Changes` option, but only uploads staged / indexed files.
56
+
57
+
#### All
58
+
Will upload all files in the chosen workspace folder.
59
+
60
+
#### Changes
61
+
Will upload only files that VSCode knows have changed in the workspace since the last deploy.
62
+
63
+
#### Compare
64
+
Will compare every file in the local workspace against the deploy location and upload only those detected as different (by means of MD5 checksums). This is also the only method that will delete files from the deploy location, if they have been removed from the local workspace folder.
51
65
52
66
The user can also define Actions that are for the 'file' (local) type to run the deploy before running the Action.
53
67
68
+
### Setting the default deployment method
69
+
Open the connection settings, go to the `Source Code` tab and select the default deployment method to apply when running a deployment.
70
+

71
+
72
+
### Ignore files during deployment with `.gitignore` and `.deployignore`
73
+
All the deployment methods will take into account the `.gitignore` file and they will not deploy files matching the patterns defined in it.
74
+
75
+
For example, this pattern, if put in `.gitignore`, will prevent all the files under the project's `images` and `assets` folders from being deployed:
76
+
```
77
+
images/**
78
+
assets/**
79
+
```
80
+
81
+
In case the patterns to ignore files during the deployment must be different from those found in `.gitignore`, a `.deployignore` file can be put at the root of the workspace folder. It will superseds `.gitignore` during the deployment to ignore files. `.deployignore` uses the same patterns as `.gitignore`.
82
+
83
+
54
84
## 4. Workspace Actions (deploy & build)
55
85
56
86
{/* Lots of this text comes from the variables.md file */}
0 commit comments