{"id":22509716,"url":"https://github.com/getshifter/shifter-netlify-build-subdir","last_synced_at":"2025-08-11T23:07:42.636Z","repository":{"id":101049505,"uuid":"221983396","full_name":"getshifter/shifter-netlify-build-subdir","owner":"getshifter","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-15T20:09:22.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T00:28:36.926Z","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-15T18:43:14.000Z","updated_at":"2019-11-15T20:09:24.000Z","dependencies_parsed_at":"2023-09-16T01:38:13.296Z","dependency_job_id":null,"html_url":"https://github.com/getshifter/shifter-netlify-build-subdir","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/getshifter/shifter-netlify-build-subdir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fshifter-netlify-build-subdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fshifter-netlify-build-subdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fshifter-netlify-build-subdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fshifter-netlify-build-subdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getshifter","download_url":"https://codeload.github.com/getshifter/shifter-netlify-build-subdir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getshifter%2Fshifter-netlify-build-subdir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269970120,"owners_count":24505466,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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:22.382Z","updated_at":"2025-08-11T23:07:42.607Z","avatar_url":"https://github.com/getshifter.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shifter Deploy to Netlify as a Subdirectory\n\nNetlify build script and redirects for deploying a static WordPress site from Shifter to Netlify in a subdirectory.\n\n\u003ca href=\"https://app.netlify.com/start/deploy?repository=https://github.com/getshifter/netlify-build-subdir\"\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\nThe `build.sh` includes a few necessary search and replace scripts to enable support for a subdirectory site install such as `example.com/blog`.\n\nThe `netlify.toml` file includes the redirects and subdirectory path. In this example, we're using `/blog/`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetshifter%2Fshifter-netlify-build-subdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetshifter%2Fshifter-netlify-build-subdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetshifter%2Fshifter-netlify-build-subdir/lists"}