This guide installs Gatsby on a self-hosted Linux server.
Install Node.js and a package manager such as npm.
Initialize a new site using the CLI or project template.
Run the build command to generate static files.
Host the generated public or dist folder on a web server.
See Gatsby Configuration for configuration guidance.
See Gatsby Security for hardening guidance.
Prefer automation? See these Ansible setup options:
Prefer containers? See Gatsby Docker Setup.
Stuck on a step or need custom configuration? We provide paid consulting for Gatsby deployments, from basic setups to enterprise configurations.