{"id":26760343,"url":"https://github.com/bird-dancer/host-from-git-repo","last_synced_at":"2026-05-07T00:31:51.532Z","repository":{"id":182047935,"uuid":"271570164","full_name":"bird-dancer/host-from-git-repo","owner":"bird-dancer","description":"push your code in a git repo and it will be deployed inside of a nginx server block","archived":false,"fork":false,"pushed_at":"2021-03-22T14:21:52.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-12-09T16:27:09.456Z","etag":null,"topics":["automation","deployment","git","hosting","nginx"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bird-dancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-11T14:38:33.000Z","updated_at":"2021-03-22T14:21:55.000Z","dependencies_parsed_at":"2023-07-18T14:48:23.378Z","dependency_job_id":null,"html_url":"https://github.com/bird-dancer/host-from-git-repo","commit_stats":null,"previous_names":["f-eliks/host-from-git-repo","bird-dancer/host-from-git-repo"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bird-dancer%2Fhost-from-git-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bird-dancer%2Fhost-from-git-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bird-dancer%2Fhost-from-git-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bird-dancer%2Fhost-from-git-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bird-dancer","download_url":"https://codeload.github.com/bird-dancer/host-from-git-repo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246069473,"owners_count":20718729,"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":["automation","deployment","git","hosting","nginx"],"created_at":"2025-03-28T17:32:10.427Z","updated_at":"2025-10-05T14:24:03.539Z","avatar_url":"https://github.com/bird-dancer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# host-from-git-repo\n![CI](https://github.com/f-eliks/host-from-git-repo/workflows/CI/badge.svg)\n\nPush your code in a git repo and it will be deployed inside of a nginx server block\n\n\n## how to use it:\n\u003e- create a new user if required\n- execute shell script as super user or owner of the `/var/www` directory\n- answer the questions\n- add the remote repository `host-address:/var/www/reponame/reponame.git` on your machine\n\n\n## how it works:\nThe pushed code will be put inside the `/var/www/.../content` because of the hook-file `post-receive`\n\nThe relevant part of the folder structure loks like:\n\nwww\u003cbr\u003e\n    └── test\u003cbr\u003e\n        ├── content\u003cbr\u003e\n        │   └── [possible backend files]\u003cbr\u003e\n        │   └── html\u003cbr\u003e\n        │       └── index.html\u003cbr\u003e\n        └── test.git\u003cbr\u003e\n            ├── hooks\u003cbr\u003e\n            │   ├── post-receive\n            \n(The repository name in this case is test)\n\nThe nginx file inside of `sites-available` has `/var/www/test/content/html` as the root paramenter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbird-dancer%2Fhost-from-git-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbird-dancer%2Fhost-from-git-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbird-dancer%2Fhost-from-git-repo/lists"}