{"id":19681036,"url":"https://github.com/wang-jun-coder/wj-publish","last_synced_at":"2025-02-27T06:40:45.014Z","repository":{"id":57398537,"uuid":"207053006","full_name":"wang-jun-coder/wj-publish","owner":"wang-jun-coder","description":"upload local files to linux server and exec commonds","archived":false,"fork":false,"pushed_at":"2019-12-14T14:05:23.000Z","size":10,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-11T04:17:35.761Z","etag":null,"topics":["publish","scp","server","upload"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/wang-jun-coder.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}},"created_at":"2019-09-08T02:51:54.000Z","updated_at":"2019-09-23T06:21:03.000Z","dependencies_parsed_at":"2022-09-04T03:22:57.344Z","dependency_job_id":null,"html_url":"https://github.com/wang-jun-coder/wj-publish","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/wang-jun-coder%2Fwj-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-jun-coder%2Fwj-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-jun-coder%2Fwj-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wang-jun-coder%2Fwj-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wang-jun-coder","download_url":"https://codeload.github.com/wang-jun-coder/wj-publish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240990719,"owners_count":19889929,"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":["publish","scp","server","upload"],"created_at":"2024-11-11T18:06:47.646Z","updated_at":"2025-02-27T06:40:44.994Z","avatar_url":"https://github.com/wang-jun-coder.png","language":"JavaScript","readme":"# wj-publish\nupload local files to linux server and exec commands\n\n## 使用说明\n\n执行命令 生成配置文件\n\n`wj-publish example config.json`\n\n默认配置文件如下, 需按需修改对应配置\n```json5\n{\n        \"host\": \"192.168.1.1\",  \n        \"port\": 22,              \n        \"username\": \"home\",     \n        \"privatekey\": \"/users/xxx/desktop/xxx/ssh/xxx\",  \n        \"passphrase\": \"xxx\",    \n        \"local\": \"/users/xxx/desktop/project/xxx\",   \n        \"remote\": \"/home/xxx/\",  \n        \"ignore\": [              \n            \".idea\",\n            \".git\",\n            \"node_modules\"\n        ],\n        \"clear\": true,           \n        \"cmds\": [                \n            \"ls -al\"\n        ]\n    }\n```\n配置文件说明\n\n* host: 服务器 ip\n* port: ssh 端口号\n* username: 使用的用户名\n* privatekey: 本地私钥绝对路径\n* passphrase: 私钥密码\n* local: 本地要发布的文件/目录绝对路径\n* remote: 服务器保存的目录/文件路径\n* ignore: 忽略的目录(相对于local)\n* clear: 是否先清空服务端文件\n* cmds: 文件发布完成后, 要执行的命令\n\n\n修改对应配置后, 执行命令发布\n\n`wj-publish config.json`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwang-jun-coder%2Fwj-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwang-jun-coder%2Fwj-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwang-jun-coder%2Fwj-publish/lists"}