Using .airplaneignore to skip files when deploying
When deploying Node.js and Python tasks, the Airplane CLI bundles and uploads your source code to Airplane builders.
For security and performance reasons, certain files and directories are ignored by default:
Using an explicit
To customize this behavior and skip additional files, you can specify your own
.airplaneignorefile. This file uses the same syntax as
Rules found in the ignore file are added to the default set of rules. If the default rules skip something you want to include, you can use
!(see below) to re-include a path.
Like gitignore, patterns match within any subdirectory as long as it does not contain slashes or only ends in a slash:
Copied1# Ignores .git, node_modules in any subdirectory2.git3node_modules/
Patterns that start with a slash or contain a slash in the middle will match only relative to the root directory:
Copied1# Ignores node_modules/ but not childPackage/node_modules/2/node_modules/
You can use
!to make exceptions and re-include a path. The last line that matches a file will win:
Copied1# Ignore all paths, except the explicit paths below2*3# Include only these paths4!package.json5!package-lock.json6!src