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

Preconfigured with Phoenix
Search for templates
Quick add:
Selected1
Phoenix
Selected Templates (1)
.gitignore
8 rules
### 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
24 lines•UTF-8
Deterministic

Raw Phoenix .gitignore

Crawlable upstream source template
elixir-phoenix.gitignore•23 lines•UTF-8
# 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 & Package Registries

External libraries and package manager directories installed locally rather than stored in version control.

/node_modules/assets/node_modules

Build Outputs & Compiled Artifacts

Generated binary files, compilation targets, and distribution bundles that can be reliably reproduced from source.

/installer/_build

Execution Caches & Runtime Logs

Diagnostic logs, runtime metadata, test coverage reports, and incremental compiler caches that cause noisy repository diffs.

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