{"id":22433830,"url":"https://github.com/gavinning/fast-deploy","last_synced_at":"2025-03-27T07:46:18.811Z","repository":{"id":36472878,"uuid":"227072083","full_name":"gavinning/fast-deploy","owner":"gavinning","description":"快速部署测试项目","archived":false,"fork":false,"pushed_at":"2022-12-06T15:35:31.000Z","size":85,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T12:46:44.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/gavinning.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}},"created_at":"2019-12-10T08:57:21.000Z","updated_at":"2019-12-11T12:45:26.000Z","dependencies_parsed_at":"2023-01-17T01:48:49.565Z","dependency_job_id":null,"html_url":"https://github.com/gavinning/fast-deploy","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/gavinning%2Ffast-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Ffast-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Ffast-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Ffast-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavinning","download_url":"https://codeload.github.com/gavinning/fast-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806392,"owners_count":20675296,"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-05T22:16:01.408Z","updated_at":"2025-03-27T07:46:18.785Z","avatar_url":"https://github.com/gavinning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"fast-deploy\n---\n\n### Usage\nin server\n```sh\ng clone https://github.com/gavinning/fast-deploy.git\n\ncd fast-deploy\nnpm i\nnpm run prd\n```\n\n### 本地项目\n在项目根目录下创建``deploy.sh``\n```sh\n#!/bin/bash\n\nfolder=\"app/fe\"\nserver=\"http://127.0.0.1:9500\"\n# cmd=\"npm%20i%20\u0026\u0026%20npm%20run%20build\"\n# cmd=\"npm%20install%20%26%26%20pm2%20startOrReload%20ecosystem.config.dev.json\"\ncmd=\"\"\n\nmkdir -p .deploy/\nrm -f .deploy/**.tgz\nfile=`npm pack`\nmv ${file} ./.deploy/\n\necho\necho \"PACK: $file\"\necho \"FOLDER: $folder\"\necho \"CMD: ${cmd}\"\necho\necho UPLOADING...\necho\n\ncurl -F \"file=@./.deploy/${file}\" \\\n\"${server}/deploy?afterRun=${cmd}\u0026folder=${folder}\"\n\necho ---\necho \"[deploy]: $server\"\necho \"[server]: $server\"\necho\n```\n\n### 发布\n发布项目到测试环境\n```sh\nsh ./deploy.sh\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Ffast-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinning%2Ffast-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Ffast-deploy/lists"}