Skip to content
framework8 active rulesVerified 2026-09-30

Phoenix .gitignore Template

Phoenix Elixir web assets, digest files, and Mix build targets. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.

Interactive Stack Generator

Open in Full Generator
Search for templates
Quick add:
Selected1
Phoenix
Selected Templates (1)
.gitignore
### Phoenix ###
# gitignore template for Phoenix projects
# website: http://www.phoenixframework.org/
#
# Recommended template: Elixir.gitignore
# Temporary files
/tmp
# Static artifacts
/node_modules
/assets/node_modules
# Since we are building assets from web/static,
# we ignore priv/static. You may want to comment
# this depending on your deployment strategy.
/priv/static/
# Installer-related files
/installer/_build
/installer/tmp
/installer/doc
/installer/deps
8 rules1 template24 lines
Deterministic

Raw Phoenix .gitignore

Crawlable upstream source template
elixir-phoenix.gitignore23 lines
# gitignore template for Phoenix projects
# website: http://www.phoenixframework.org/
#
# Recommended template: Elixir.gitignore
# Temporary files
/tmp
# Static artifacts
/node_modules
/assets/node_modules
# Since we are building assets from web/static,
# we ignore priv/static. You may want to comment
# this depending on your deployment strategy.
/priv/static/
# Installer-related files
/installer/_build
/installer/tmp
/installer/doc
/installer/deps

Key Pattern Breakdown

Dependencies & Packages

Excludes installed package directories and third-party vendor files that should be restored via package managers.

/node_modules/assets/node_modules

Build & Compilation Artifacts

Ignores compiled binaries, intermediate object files, and build output directories generated during development.

/installer/_build

Cache & Temporary Files

Ignores compiler caches, test runner coverage data, and transient temporary scratch files.

/tmp/installer/tmp

Source & Verification

License:: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.