Skip to content

getshifter/shifter-netlify-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Shifter Deploy to Netlify

Shifter to Netlify build script.

Deploy to Netlify

How to

tl;dr: You have to set up both a Netlify and a Shifter site. They interact and conenct by using a webhook. These steps are an overview of both.

On Netlify

  1. Deploy this to Netlify
  2. Navigate to deploy settings, add a build hook
  3. Name the build hook, we called ours "Shifter Artifact Webhook", save it
  4. Copy the new build hook URL, e.g. "https://api.netlify.com/build_hooks/abc123"

On Shifter

  1. Migrate or launch a new WordPress site on Shifter
  2. Select a plan that support webhooks
  3. Navigate to webhook settings, paste your Netlify build hook URL, save it
  4. Generate a new artifact

Explained

This process does 2 things. First, it sets up a Netlify site with the required build settings and redirects. Those settings are located within the netlify.toml file and build.sh.

This is the most basic version of a deploy pipeline between Shifter and Netlify.

Search & Replace URLs

Using sed

LC_ALL=C find . -type f -exec sed -i '' -e "s/foo-bar-baz.on.getshifter.io/foo-bar-baz.netlify.app/" {} \;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages