{"id":152739,"date":"2020-09-07T20:25:45","date_gmt":"2020-09-07T12:25:45","guid":{"rendered":"http:\/\/4563.org\/?p=152739"},"modified":"2020-09-07T20:25:45","modified_gmt":"2020-09-07T12:25:45","slug":"%e7%94%a8-leanclooud-%e5%86%99%e4%ba%86%e4%b8%aa%e7%ae%80%e5%8d%95%e7%9a%84%e5%bc%80%e6%ba%90%e5%8d%9a%e5%ae%a2%e7%b3%bb%e7%bb%9f%ef%bc%8c%e5%8f%af%e4%bb%a5%e8%87%aa%e5%ae%9a%e4%b9%89%e4%b8%bb","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=152739","title":{"rendered":"\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 2jeodiong <\/span>  <span><i><\/i> 18<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h1>\u7b80\u4ecb<\/h1>\n<p> <\/p>\n<p>oh my blog \u662f\u4e00\u4e2a\u57fa\u4e8e leancloud \u7684 serverless \u5f00\u6e90\u535a\u5ba2\u6846\u67b6\u3002 \u73b0\u5df2\u63d0\u4f9b\u4e00\u4e0b\u529f\u80fd\uff0c\u66f4\u591a\u529f\u80fd\u5f00\u53d1\u4e2d\uff0c\u5373\u5c06\u4e0a\u7ebf\uff5e<\/p>\n<ul>\n<li>\u7528\u6237\u6ce8\u518c \/\u767b\u5f55\u7cfb\u7edf<\/li>\n<li>\u6587\u7ae0\u7ba1\u7406<\/li>\n<li>\u8d44\u6e90\u7ba1\u7406<\/li>\n<li>\u8bc4\u8bba\u7cfb\u7edf<\/li>\n<li>\u53d1\u5e03\u52a8\u6001<\/li>\n<li>\u652f\u6301\u4e3b\u9898\u81ea\u5b9a\u4e49<\/li>\n<\/ul>\n<p>\u5b98\u7f51\u5730\u5740\uff1a https:\/\/omb.jser.blog<\/p>\n<p>Github \u5730\u5740\uff1a https:\/\/github.com\/joe-lz\/oh-my-blog<\/p>\n<h1>\u5feb\u901f\u5f00\u59cb<\/h1>\n<p> <\/p>\n<h2>\u51c6\u5907\u670d\u52a1\u5668<\/h2>\n<h3>\u6ce8\u518c leancloud<\/h3>\n<p>\u6ce8\u518c leancloud\u56fd\u5185\u7248\u6216\u56fd\u9645\u7248 \u533a\u522b\uff1a\u56fd\u5185\u7248\u8bbf\u95ee\u901f\u5ea6\u5feb\uff0c\u57df\u540d\u8981\u5907\u6848<\/p>\n<h3>\u51c6\u5907\u57df\u540d<\/h3>\n<ul>\n<li>\u65b9\u6848\u4e00\uff1a\u6ce8\u518c\u57df\u540d<\/li>\n<li>\u65b9\u6848\u4e8c\uff1a\u7533\u8bf7 jser.blog \u514d\u8d39\u5b50\u57df\u540d\uff08\u8be5\u57df\u540d\u672a\u5907\u6848\uff0c\u56e0\u6b64\u4ec5\u652f\u6301\u56fd\u9645\u7248\uff09<\/li>\n<\/ul>\n<h3>\u521b\u5efa leancloud \u9879\u76ee<\/h3>\n<p>\u521b\u5efa\u5f00\u53d1\u7248\u5373\u53ef\uff0c\u6709\u514d\u8d39\u8d60\u9001\u4f7f\u7528\u91cf<\/p>\n<h3>\u7ed1\u5b9a\u57df\u540d<\/h3>\n<p>[leancloud=&gt;\u9879\u76ee=&gt;\u8bbe\u7f6e=&gt;\u57df\u540d\u7ed1\u5b9a] \u6ce8\u610f\u26a0\ufe0f\uff1a<\/p>\n<ul>\n<li>\u56fd\u5185\u7248\u672c\u9700\u8981\u7ed1\u5b9a 3 \u4e2a\u57df\u540d\uff0c\u56fd\u9645\u7248\u672c 2 \u4e2a\u57df\u540d<\/li>\n<li>\u4e91\u5f15\u64ce\u57df\u540d\u5c31\u662f\u4f60\u7684\u7f51\u7ad9\u57df\u540d<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f57401552f23.jpg\" alt=\"\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d\" \/><\/p>\n<h3>\u521b\u5efa Class<\/h3>\n<p>[leancloud=&gt;\u9879\u76ee=&gt;\u5b58\u50a8=&gt;\u521b\u5efa class]<\/p>\n<ul>\n<li>CMS_Articles<\/li>\n<li>CMS_Collects<\/li>\n<li>CMS_Comments<\/li>\n<li>CMS_Likes<\/li>\n<li>CMS_Menus<\/li>\n<li>CMS_Posts<\/li>\n<li>CMS_Profile<\/li>\n<li>CMS_Topics<\/li>\n<li>CMS_UserInfo<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f5740196f07b.jpg\" alt=\"\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d\" \/><\/p>\n<h3>\u8bbe\u7f6e Web \u5b89\u5168\u57df\u540d<\/h3>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f57401eaa5e9.jpg\" alt=\"\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d\" \/><\/p>\n<h3>\u81ea\u52a8\u90e8\u7f72\u8bbe\u7f6e<\/h3>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f574023961ae.jpg\" alt=\"\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d\" \/><\/p>\n<h2>\u51c6\u5907\u4ee3\u7801<\/h2>\n<h3>fork \u4ed3\u5e93<\/h3>\n<p>https:\/\/github.com\/joe-lz\/oh-my-blog<\/p>\n<h3>\u4fee\u6539\u4ee3\u7801\u90e8\u5206\u914d\u7f6e\u53c2\u6570<\/h3>\n<ul>\n<li>\u66ff\u6362.leancloud\/current_app_id \u4e3a\u81ea\u5df1\u9879\u76ee id [leancloud=&gt;\u9879\u76ee=&gt;\u8bbe\u7f6e=&gt;\u5e94\u7528 keys]<\/li>\n<li>\u66ff\u6362 next.config.js \u4e2d\u7684\u914d\u7f6e [leancloud=&gt;\u9879\u76ee=&gt;\u8bbe\u7f6e=&gt;\u5e94\u7528 keys] <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f5740273cbff.jpg\" alt=\"\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d\" \/><\/li>\n<li>\u5982\u679c\u4f60\u4f7f\u7528\u56fd\u5185\u7248 leancloud\uff0c\u8bf7\u66ff\u6362.github\/workflows\/deploy.yml \u4e2d\u7684\u89e6\u53d1\u81ea\u52a8\u90e8\u7f72\u7684\u5730\u5740 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f57402bd1907.jpg\" alt=\"\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d\" \/><\/li>\n<\/ul>\n<h3>\u521b\u5efa Github Secrets<\/h3>\n<ul>\n<li>\n<p>\u521b\u5efa LEANCLOUD_DEPLOY_TOKEN<\/p>\n<p>1 \u3001\u53d6\u81ea\uff1a[leancloud=&gt;\u9879\u76ee=&gt;\u4e91\u5f15\u64ce=&gt;\u90e8\u7f72=&gt;\u81ea\u52a8\u90e8\u7f72=&gt;deploy token] <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f574031e2767.jpg\" alt=\"\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d\" \/><\/p>\n<p>2 \u3001\u521b\u5efa\uff1a[github=&gt;\u9879\u76ee=&gt;Settings=&gt;Secrets] <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f574036c4ad5.jpg\" alt=\"\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d\" \/><\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa PERSONAL_ACCESS_TOKEN\uff1aa Github personal access token<\/p>\n<\/li>\n<\/ul>\n<h3>\u63d0\u4ea4\u53d8\u52a8\u4ee3\u7801\u81f3 master\uff0c\u81ea\u52a8\u51fa\u53d1\u90e8\u7f72<\/h3>\n<h1>\u4e3b\u9898<\/h1>\n<p> <\/p>\n<h2>\u5982\u4f55\u66f4\u6362\u4e3b\u9898\uff1f<\/h2>\n<p>\u4fee\u6539 omb.config.js \u6587\u4ef6\uff0c\u5c06\u5bf9\u5e94\u7684\u524d\u540e\u53f0\u66ff\u6362\u4e3a\u76f8\u5e94\u4e3b\u9898\u7684 github \u540d\u79f0\u5373\u53ef <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f57403b2db15.jpg\" alt=\"\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80\u5355\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u6709\u4e9b\u529f\u80fd\u8fd8\u5728\u5f00\u53d1\u4e2d\" \/><\/p>\n<h2>\u5982\u4f55\u5f00\u53d1\u4e3b\u9898\uff1f<\/h2>\n<p>\u8bf7\u53c2\u8003\uff1a<\/p>\n<ul>\n<li>\u524d\u53f0\u9875\u9762\u9ed8\u8ba4\u4e3b\u9898joe-lz\/ombTheme-simple-www<\/li>\n<li>\u540e\u53f0\u9875\u9762\u9ed8\u8ba4\u4e3b\u9898joe-lz\/ombTheme-white-admin<\/li>\n<\/ul>\n<h1>\u5e38\u7528\u5730\u5740<\/h1>\n<p> <\/p>\n<ul>\n<li>\u524d\u53f0\u5730\u5740\uff1a https:\/\/your-domain \u6216 https:\/\/your-domain\/www\/home<\/li>\n<li>\u540e\u53f0\u5730\u5740\uff1a https:\/\/your-domain\/admin\/home<\/li>\n<\/ul>\n<p>\u2b50\ufe0f \u89c9\u5f97\u4e0d\u9519\u7559\u4e2a Start \u5457\uff5e\u2b50\ufe0f Github \u5730\u5740<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u7528 leanclooud \u5199\u4e86\u4e2a\u7b80&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152739"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=152739"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152739\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=152739"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=152739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}