npm install -g gatsby-cli@4.7.0
npm install -g netlify-cli
npm install
netlify link
and choose 'Use current git remote origin'.Overture.bio requires NPM v^8.3.0, to ensure all dependencies are installed correctly
# If you need to update your NPM version first, use the following command:
npm i -g npm
npm start
Check your QA builds locally! (See Environments)
npm run deploy
Gatsby has two environments: development (runs a dev server with hot reloading) and production (creates a static build in the ~/public
folder).
Gatsby development and production builds are significantly different, so consider running npm run qa
(prod build) occasionally to check for issues, and before deploying to QA.
npm run dev
.env.development
npm run qa
.env.production
(overridden by netlify.toml
) (ignored by git)netlify.toml
, branch-deploy
contextnpm run prod
.env.production
(overridden by netlify.toml
) (ignored by git)netlify.toml
, production
& deploy-preview
contextsThese environments only apply when deploying to Netlify. The non-secret settings are stored in netlify.toml
.
production
: The live site at https://overture.bio, deployed automatically by Netlify when a PR is merged into the main branch.deploy-preview
: Netlify deploys that are automatically generated when there is a PR created/updated on the main branch.branch-deploy
: Other branches and PRs, deployed manually.GATSBY_
.FLAG="true"
in .env.development
and Netlify branch-deploy
context in netlify.toml
.FLAG="false"
in Netlify production
and deploy-preview
contexts in netlify.toml
.