Skip to content

Commit 997e7b0

Browse files
committed
clarify how to exclude a directory
1 parent 9515042 commit 997e7b0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,18 @@ rsconnect deploy api flask-api/ data.csv
278278

279279
Since deploying an API or application starts at a directory level, there will be times
280280
when some files under that directory subtree should not be included in the deployment
281-
or manifest. Use the `--exclude` option to specify files to exclude. The `--exclude` option may be repeated, and may include a glob pattern.
281+
or manifest. Use the `--exclude` option to specify files or directories to exclude.
282282

283283
```bash
284284
rsconnect deploy dash --exclude dash-app-venv --exclude TODO.txt dash-app/
285285
```
286286

287+
You can exclude a directory by naming it:
288+
```bash
289+
rsconnect deploy dash --exclude dash-app-venv --exclude output/ dash-app/
290+
```
291+
292+
The `--exclude` option may be repeated, and may include a glob pattern.
287293
You should always quote a glob pattern so that it will be passed to `rsconnect` as-is
288294
instead of letting the shell expand it. If a file is specifically listed as an extra
289295
file that also matches an exclusion pattern, the file will still be included in the

0 commit comments

Comments
 (0)