{"id":22509703,"url":"https://github.com/getshifter/shifter-netlify-build","last_synced_at":"2025-03-28T00:24:37.098Z","repository":{"id":101049491,"uuid":"222017230","full_name":"getshifter/shifter-netlify-build","owner":"getshifter","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-16T20:59:30.000Z","size":1,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-02T02:22:29.235Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getshifter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-15T23:04:02.000Z","updated_at":"2022-02-16T20:59:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"521d04e4-ba21-4dbb-a0e3-daea23eefd49","html_url":"https://github.com/getshifter/shifter-netlify-build","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fshifter-netlify-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fshifter-netlify-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fshifter-netlify-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fshifter-netlify-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getshifter","download_url":"https://codeload.github.com/getshifter/shifter-netlify-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245945716,"owners_count":20698298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T01:30:19.538Z","updated_at":"2025-03-28T00:24:37.049Z","avatar_url":"https://github.com/getshifter.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shifter Deploy to Netlify\n\nShifter to Netlify build script.\n\n\u003ca href=\"https://app.netlify.com/start/deploy?repository=https://github.com/getshifter/shifter-netlify-build\"\u003e\u003cimg src=\"https://www.netlify.com/img/deploy/button.svg\" alt=\"Deploy to Netlify\"\u003e\u003c/a\u003e\n\n# How to\n\ntl;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.\n\n## On Netlify\n1. Deploy this to Netlify\n1. Navigate to deploy settings, add a build hook\n1. Name the build hook, we called ours \"Shifter Artifact Webhook\", save it\n1. Copy the new build hook URL, e.g. \"https://api.netlify.com/build_hooks/abc123\"\n\n## On Shifter\n1. Migrate or launch a new WordPress site on Shifter\n1. Select a plan that support webhooks\n1. Navigate to webhook settings, paste your Netlify build hook URL, save it\n1. Generate a new artifact\n\n## Explained\nThis 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`.\n\nThis is the most basic version of a deploy pipeline between Shifter and Netlify.\n\n## Search \u0026 Replace URLs\n\nUsing sed\n```\nLC_ALL=C find . -type f -exec sed -i '' -e \"s/foo-bar-baz.on.getshifter.io/foo-bar-baz.netlify.app/\" {} \\;\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetshifter%2Fshifter-netlify-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetshifter%2Fshifter-netlify-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetshifter%2Fshifter-netlify-build/lists"}