{"id":20475414,"url":"https://github.com/setnemo/zbir","last_synced_at":"2025-07-30T23:37:39.790Z","repository":{"id":205476753,"uuid":"714284679","full_name":"setnemo/zbir","owner":"setnemo","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-22T02:31:03.000Z","size":187,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T23:39:23.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/setnemo.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":"2023-11-04T13:12:41.000Z","updated_at":"2023-11-04T13:15:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d98ef06-90e7-4d0b-bd23-276825ee8da4","html_url":"https://github.com/setnemo/zbir","commit_stats":null,"previous_names":["setnemo/zbir"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/setnemo/zbir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fzbir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fzbir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fzbir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fzbir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setnemo","download_url":"https://codeload.github.com/setnemo/zbir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setnemo%2Fzbir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267960967,"owners_count":24172513,"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-07-30T02:00:09.044Z","response_time":70,"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-11-15T15:15:56.493Z","updated_at":"2025-07-30T23:37:39.754Z","avatar_url":"https://github.com/setnemo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://laravel.com\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg\" width=\"400\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\n[![Github actions Build](https://github.com/setnemo/laravel-template/workflows/dev/badge.svg)](//github.com/setnemo/laravel-template/actions)\n\n\u003c/p\u003e\n\n## Laravel template\n\nModern php application with automatically deploy via ssh by GitHub Actions\n\n## Steps for using\n\n1. [Fork](https://github.com/setnemo/laravel-template/fork) this project and clone it\n2. `cp -r laravel-template YOUR_NAME \u0026\u0026 cd YOUR_NAME/ \u0026\u0026 rm -rf .git`\n3. Use `make up` for run docker containers\n4. Run `make bash` for open docker container with application\n5. Run `composer update`\n6. Create new repo on GitHub, run `git init`, add remote, push it to GitHub\n7. [Generate](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) new SSH key for access to server\n8. If this is the README of your fork, click [this link](../../settings/secrets/actions) to go to the \"Secrets\" page.\n9. Create new secret hash for waiting finish of current deploy process, create .env and update DEV_HASH (using by [app/Http/Middleware/Development.php](app/Http/Middleware/Development.php))\n10. Add new secrets:\n    - DEPLOY_URL: url of your website\n    - DEV_HASH: secret dev hash for access to deploy route\n    - DEPLOY_HOST: server's IP for SSH connection\n    - DEPLOY_PATH: path to website on server, `/var/www/html/something`\n    - DEPLOY_PORT: server's port for SSH connection\n    - DEPLOY_USER: server's username for SSH connection\n    - DEPLOY_KEY_PASS: server's SSH public key passphrase\n11. Push new code to main branch and check GitHub Actions status \n\n## How it's work\n\nMain idea is to create basic deploy (via rsync) to remote server over SSH with waiting finish of current deploy process.\nGitHub Action is very simple, you can check [.github/workflows/dev.yml](.github/workflows/dev.yml). Step 'Check previous deploy'\ncall specific url /deploy, which has response status. If we have deploy process, script waiting finish of process. For deploy\nwe use burnett01/rsync-deployments@5.2, which use rsync for pushing files to remote server, where supervisor has [cron tak](supervisor/deploy.conf)\nThis cron task run every 60 sec and apply migrations, remove deploy pid file, etc.\n\n## License\n\nThe Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetnemo%2Fzbir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetnemo%2Fzbir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetnemo%2Fzbir/lists"}