{"id":28311816,"url":"https://github.com/austin-alberd/simple-git-deployment-script","last_synced_at":"2026-05-01T04:35:29.049Z","repository":{"id":293322045,"uuid":"966328182","full_name":"austin-alberd/Simple-Git-Deployment-Script","owner":"austin-alberd","description":"A simple bash script that pulls a remote repository from github, cleans up the repository folder, and moves files into the working directory of a web server application like apache, NGINX, etc.","archived":false,"fork":false,"pushed_at":"2025-05-14T18:23:45.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T01:13:00.422Z","etag":null,"topics":["deployment","git","shell-script"],"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/austin-alberd.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,"zenodo":null}},"created_at":"2025-04-14T18:52:57.000Z","updated_at":"2025-05-14T18:23:49.000Z","dependencies_parsed_at":"2025-05-14T19:42:48.211Z","dependency_job_id":null,"html_url":"https://github.com/austin-alberd/Simple-Git-Deployment-Script","commit_stats":null,"previous_names":["austin-alberd/simple-git-deployment-script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/austin-alberd/Simple-Git-Deployment-Script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin-alberd%2FSimple-Git-Deployment-Script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin-alberd%2FSimple-Git-Deployment-Script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin-alberd%2FSimple-Git-Deployment-Script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin-alberd%2FSimple-Git-Deployment-Script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austin-alberd","download_url":"https://codeload.github.com/austin-alberd/Simple-Git-Deployment-Script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin-alberd%2FSimple-Git-Deployment-Script/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261452845,"owners_count":23160399,"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":["deployment","git","shell-script"],"created_at":"2025-05-24T14:17:27.281Z","updated_at":"2026-05-01T04:35:29.038Z","avatar_url":"https://github.com/austin-alberd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Git Automated Deployment Script\r\n![Bash Script](https://img.shields.io/badge/bash_script-%23121011.svg?style=for-the-badge\u0026logo=gnu-bash\u0026logoColor=white)\r\n![Git](https://img.shields.io/badge/git-%23F05033.svg?style=for-the-badge\u0026logo=git\u0026logoColor=white) \u003cbr\u003e\r\nA simple bash script that pulls a remote repository from github, cleans up the repository folder, and moves files into the working directory of a web server application like apache, NGINX, etc.\r\n\r\nThis service is made for web servers. However, it can be modified to do other things as well.\r\n\r\n## Syntax\r\n```\r\nbash main.sh [remote-repository-address] [target-directory] [service-to-restart]\r\n```\r\n* remote-repository-address: The address of the remote repository to pull from. i.e. https://github.com/user/repo\r\n* target-directory: Where to move the files from the remote repo.\r\n* service-to-restart: What service to restart once the files have been moved. i.e. apache2, nginx, etc\r\n  \r\n## How to use\r\n1) Setup CLI Git.\r\n   * Follow your setup instructions depending on how your repo is set up\r\n2) Run the command either using something like a cron job or other task scheduler. You can also just run this script manually.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustin-alberd%2Fsimple-git-deployment-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustin-alberd%2Fsimple-git-deployment-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustin-alberd%2Fsimple-git-deployment-script/lists"}