Skip to content

Commit 4927318

Browse files
committed
Added more details about the deployment + .deployignore
Signed-off-by: Seb Julliand <sjulliand@arcadsoftware.com>
1 parent c0bc0b5 commit 4927318

File tree

4 files changed

+38
-8
lines changed

4 files changed

+38
-8
lines changed

src/assets/deploy_01.png

887 Bytes
Loading

src/assets/deploy_02.png

9.56 KB
Loading

src/assets/deploy_03.png

6.2 KB
Loading

src/content/docs/developing/local/getting-started.mdx

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,50 @@ If you would prefer to change the default location, the user can right-click on
3737

3838
The user can change the deploy directory at any by using the same right-click option on another directory.
3939

40-
## 3. The Deploy button / Running the deployment process
40+
## 3. Deployment
4141

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+
![](../../../../assets/deploy_01.png)
4345

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+
![](../../../../assets/deploy_02.png)
4548

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.
5165

5266
The user can also define Actions that are for the 'file' (local) type to run the deploy before running the Action.
5367

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+
![](../../../../assets/deploy_03.png)
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+
5484
## 4. Workspace Actions (deploy & build)
5585

5686
{/* Lots of this text comes from the variables.md file */}

0 commit comments

Comments
 (0)