-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfaq.html
502 lines (486 loc) · 26.6 KB
/
faq.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
<!DOCTYPE html>
<html lang="zxx">
<head>
<!--====== Required meta tags ======-->
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--====== Title ======-->
<title> 常见问题 - Serverless Registry - Serverless package management platform </title>
<!--====== Bootstrap css ======-->
<link rel="stylesheet" href="static/css/bootstrap.min.css">
<!--=== Owl-Carousel ===-->
<link rel="stylesheet" href="static/css/owl.carousel.min.css">
<!--====== Magnific ======-->
<link rel="stylesheet" href="static/css/magnific-popup.css">
<!--===nice-select===-->
<link rel="stylesheet" href="static/css/nice-select.css">
<!--====== Animate CSS ======-->
<link rel="stylesheet" href="static/css/animate.min.css">
<!--====== Font Awesome ======-->
<link rel="stylesheet" href="static/css/font-awesome.min.css">
<!--====== Main Css ======-->
<link rel="stylesheet" href="static/css/style.css">
<!--====== Responsive Css ======-->
<link rel="stylesheet" href="static/css/responsive.css">
<script src="https://res.zvo.cn/translate/translate.js"></script>
<script>
function alertfun(){
const alerted = localStorage.getItem("alerted") || "none";
if (alerted != 'ok') {
localStorage.setItem("alerted", 'ok')
alert("Reminder: English information of some content is automatically presented through machine translation. The machine translation process may cause some semantic and other content problems. If you find any, please feedback to the community maintainer email liuyu@xmail.tech")
}
}
</script>
</head>
<body>
<!--====== Preloader Start ======-->
<div id="preloader">
<div class="loader-cubes">
<div class="loader-cube1 loader-cube"></div>
<div class="loader-cube2 loader-cube"></div>
<div class="loader-cube4 loader-cube"></div>
<div class="loader-cube3 loader-cube"></div>
</div>
</div>
<!--====== Preloader End ======-->
<!--====== Header Part Start ======-->
<header class="header-one sticky-header">
<div class="header-navigation" style="padding-top: 10px;padding-bottom: 7px">
<div class="container-fluid d-flex align-items-center justify-content-between container-1470">
<div class="header-left">
<h1 href="index.html" style="color: black">Serverless Registry</h1>
</div>
<div class="header-right d-flex align-items-center justify-content-end">
<div class="site-nav-menu">
<ul class="primary-menu">
<li>
<a class="nav-link" href="index.html">首页</a>
</li>
<li>
<a class="nav-link" href="application.html">应用</a>
</li>
<li>
<a class="nav-link" href="component.html">组件</a>
</li>
<li>
<a class="nav-link" href="plugin.html">插件</a>
</li>
<li>
<a class="nav-link" href="https://github.com/Serverless-Devs/Serverless-Devs/blob/master/spec/zh/0.0.2/serverless_registry_model/readme.md" target="_blank">规范</a>
</li>
<li class="current">
<a class="nav-link" href="faq.html">常见问题</a>
</li>
<li>
<a href="javascript:translate.changeLanguage('chinese_simplified');" class="ignore">中文</a>
</li>
<li>
<a href="javascript:translate.changeLanguage('english');" onclick="alertfun()" class="ignore">English</a>
</li>
</ul>
<a href="#0" class="nav-close"><i class="fal fa-times"></i></a>
</div>
<div class="header-extra d-flex align-items-center">
<div class="search-widget">
<a href="#0" class="search-icon"><i class="fal fa-search"></i></a>
<div class="search-form">
<form action="search.html" method="GET">
<input type="search" placeholder="请输入要搜索的 Serverless Package 关键词" name="keyword">
</form>
<a href="#0" class="search-close"><i class="fal fa-times"></i></a>
</div>
</div>
<div class="offcanvas-widget d-none">
<div class="offcanvas-icon">
<span></span><span></span><span></span>
</div>
</div>
<div class="nav-toggler">
<span></span><span></span><span></span>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<!--====== Header Part End ======-->
<!--====== Banner Start ======-->
<section class="breadcrumb-area">
<div class="container">
<div class="content">
<h2 class="breadd wow fadeInUp">
常见问题
</h2>
<ul class="breadcrumb-list wow fadeInUp">
<li><a href="index.html">首页 /</a></li>
<li>常见问题</li>
</ul>
</div>
</div>
</section>
<!--====== Banner End ======-->
<!--====== FAQ Area Start ======-->
<div class="faq">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-10">
<div class="accordion" id="accordionExample">
<div class="card wow fadeInUp">
<div class="card-header" id="headingOne">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse"
data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<span></span>
在 Serverless Devs 开发者工具上,如何配置 Serverless Registry?
</button>
</h2>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne"
data-parent="#accordionExample">
<div class="card-body">
<p class="text">
Serverless Devs 开发者工具,可以根据需求进行 Serverless 源的配置,在下载和安装 Serverless Devs 之后,默认的源配置就是
Serverless Registry,如果因为后期的一些原因,切换了该配置,可以通过以下命令进行切回:
<pre>s set registry https://registry.devsapp.cn/simple</pre>
</p>
</div>
</div>
</div>
<div class="card wow fadeInUp">
<div class="card-header" id="headingFive">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button"
data-toggle="collapse" data-target="#collapseFive" aria-expanded="false"
aria-controls="collapseFive">
<span></span>
什么是 Serverless Registry?有没有比较容易理解的概念解释方法?
</button>
</h2>
</div>
<div id="collapseFive" class="collapse" aria-labelledby="headingFive"
data-parent="#accordionExample">
<div class="card-body">
<p class="text">
为了让大家更简单的理解 Serverless Registry, 可以通过与 Python Pypi, Nodejs NPM 的对比,进行深入探索:
<table border="1">
<th>
<td align="center">Serverless Reigstry</td>
<td align="center">Python Pypi</td>
<td align="center">Nodejs NPM</td>
</th>
<tr>
<td align="center">
存储内容
</td>
<td align="center">
Serverless packages<br>
(包括 Components 和 Application)
</td>
<td align="center">
Python packages
</td>
<td align="center">
Nodejs packages
</td>
</tr>
<tr>
<td align="center">
是否开放标准
</td>
<td align="center">
是
</td>
<td align="center">
是
</td>
<td align="center">
是
</td>
</tr>
<tr>
<td align="center">
官方源
</td>
<td align="center">
registry.devsapp.cn/simple
</td>
<td align="center">
pypi.python.org
</td>
<td align="center">
registry.npmjs.org
</td>
</tr>
<tr>
<td align="center">
其它源举例
</td>
<td align="center">
Github registry<br>
Gitee registry
</td>
<td align="center">
清华源<br>
豆瓣源
</td>
<td align="center">
tnpm<br>
cnpm
</td>
</tr>
<tr>
<td align="center">
是否支持私有化
</td>
<td align="center">
支持
</td>
<td align="center">
支持
</td>
<td align="center">
支持
</td>
</tr>
<tr>
<td align="center">
配套工具
</td>
<td align="center">
Serverless Devs 开发者工具
</td>
<td align="center">
Python包管理工具(pip)
</td>
<td align="center">
Node.js打包管理工具(npm)
</td>
</tr>
<tr>
<td align="center">
配套命令
</td>
<td align="center">
s
</td>
<td align="center">
pip
</td>
<td align="center">
npm
</td>
</tr>
<tr>
<td align="center">
如何使用
</td>
<td align="center">
在s.yaml中直接引用
</td>
<td align="center">
安装之后,在代码中引用
</td>
<td align="center">
安装之后,在代码中引用
</td>
</tr>
</table>
</p>
</div>
</div>
</div>
<div class="card wow fadeInUp">
<div class="card-header" id="headingTwo">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button"
data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false"
aria-controls="collapseTwo">
<span></span>
是否可以基于 Serverless Devs Model 建设自己的私有源?
</button>
</h2>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo"
data-parent="#accordionExample">
<div class="card-body">
<p class="text">
<a href="https://github.com/Serverless-Devs/Serverless-Devs/blob/master/spec/readme.md"
target="_blank">Serverless Devs Model</a> 包括了三个部分 Serverless Registry
Model,Serverless User Model 以及 Serverless Package Model。开发者可以基于这三个规范,进行相对应的能力的开发,例如:
<li>
Serverless Registry Model:通过该规范,开发者可以开发自己的 Serverless
Registry,只需要按照规范提供对外的接口,即可轻松实现与 Serverless Devs 工具的对接,完成私有源的建设;
</li>
<li>
Serverless User Model:通过该规范,开发者可以基于 Serverless Devs Model 规范开发属于自己的 Serverless
项目,并通过 Serverless Devs 开发者工具部署到不同的平台服务上;
</li>
<li>
Serverless Package Model:通过该规范,开发者可以以贡献者身份,开发应用案例、组件、插件等相关内容,并发布到 Serverless
Registry,供更多人学习和使用,进一步繁荣 Serverless 社区生态;
</li>
</p>
</div>
</div>
</div>
<div class="card wow fadeInUp">
<div class="card-header" id="headingThree">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button"
data-toggle="collapse" data-target="#collapseThree" aria-expanded="false"
aria-controls="collapseThree">
<span></span>
除了 Serverless Registry 还有那些推荐的源?
</button>
</h2>
</div>
<div id="collapseThree" class="collapse" aria-labelledby="headingThree"
data-parent="#accordionExample">
<div class="card-body">
<p class="text">
目前 Serverless Devs 的官方源是 Serverless Registry,除此之外,系统中还有 GitHub 源和 Gitee
源,开发者可以通过以下命令进行选择和切换:
<pre>s set registry</pre>
关于其他更多的源,目前还没有统一记录,但是如果有小伙伴开发了自己的源,想要贡献给社区,可以在Serverless Devs 下发一个 <a
href="https://github.com/Serverless-Devs/Serverless-Devs/issues" target="_blank">
Issue </a>,会有专人跟踪处理
</p>
</div>
</div>
</div>
<div class="card wow fadeInUp">
<div class="card-header" id="headingFour">
<h2 class="mb-0">
<button class="btn btn-link btn-block text-left collapsed" type="button"
data-toggle="collapse" data-target="#collapseFour" aria-expanded="false"
aria-controls="collapseFour">
<span></span>
开发完的 Package 如何发布到 Serverless Registry?
</button>
</h2>
</div>
<div id="collapseFour" class="collapse" aria-labelledby="headingFour"
data-parent="#accordionExample">
<div class="card-body">
<p class="text">
当开发者以贡献者身份,开发完成符合 Serverless Package Model 规范的 Package 后,可以通过 Serverless Devs 的
Registry 组件进行发布。具体文章可以参考:<br>
文章:<a href="https://github.com/Serverless-Devs/Serverless-Devs/discussions/439"
target="_blank">快速完成 Serverless Devs 应用开发并发布到 Registry</a><br>
视频:
<a href="https://example-static.oss-cn-beijing.aliyuncs.com/video/202203231823.mp4"
class="popup mfp-iframe video-button">
点击 <i class="fas fa-play"></i> 可以播放视频
</a><br>
除此之外还可以参考 <a href="https://github.com/Serverless-Devs/registry">Registry 组件</a>所提供的各种能力。
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--====== FAQ Area End ======-->
<!--====== Footer Area START ======-->
<footer class="footer-area two">
<div class="container">
<div class="row justify-content-between">
<div class="col-lg-4 col-md-6 wow fadeInUp" data-wow-delay="0.2s">
<div class="footer-box one">
<div class="logo">
<h1 style="color: white">Serverless Registry</h1>
</div>
<p class="text">Serverless Registry 是 Serverless Devs 社区的衍生品,遵循 Serverless Devs Model 规范,为打造
Serverless 生态基础,繁荣 Serverless 开源生态而努力。正在为成为好用的 Serverless 领域的 NPM,Pypi ... 而努力。 </p>
<div class="social">
<a href="https://github.com/serverless-devs/serverless-devs"><i class="fab fa-github"></i></a>
<a href="https://gitee.com/serverless-devs/Serverless-Devs"><i class="fab fa-git"></i></a>
<a href="https://www.serverless-devs.com"><i class="fab fa-page4"></i></a>
</div>
</div>
</div>
<div class="col-lg-2 col-md-6 wow fadeInUp" data-wow-delay="0.3s">
<div class="footer-box two">
<h4 class="lasthead">相关资源</h4>
<div class="footer-list">
<ul>
<li><a href="about.html"> 关于我们 </a></li>
<li><a href="https://github.com/serverless-devs/serverless-devs"> Serverless Devs 仓库 </a>
</li>
<li><a href="https://github.com/Serverless-Devs/Serverless-Devs/blob/master/spec/readme.md">
SDM 规范文档 </a></li>
<li><a href="https://github.com/Serverless-Devs/Serverless-Devs/discussions"> Serverless
Devs 社区 </a></li>
<li>
<a href="https://github.com/Serverless-Devs/Serverless-Devs/blob/master/CONTRIBUTORS.md">
贡献者列表 </a></li>
</ul>
</div>
</div>
</div>
<div class="col-lg-2 col-md-6 wow fadeInUp" data-wow-delay="0.4s">
<div class="footer-box three">
<h4 class="lasthead">钉钉交流群</h4>
<div class="footer-list">
<img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1648814797378_20220401120637498673.png">
</div>
</div>
</div>
<div class="col-lg-2 col-md-6 wow fadeInUp" data-wow-delay="0.5s">
<div class="footer-box none">
<h4 class="lasthead">微信公众号</h4>
<div class="footer-list">
<img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1648814758343_20220401120558862369.png">
</div>
</div>
</div>
</div>
</div>
</footer>
<div class="copyright two">
<div class="container">
<div class="row">
<div class="col-12 wow fadeInUp text-center">
<p class="text">Copyright © 2022. Serverless Devs
</p>
</div>
</div>
</div>
</div>
<!--====== Footer Area END ======-->
<!--====== Back to top start ======-->
<div class="back-to-top">
<a href="#0"> <i class="fas fa-arrow-up"></i> </a>
</div>
<!--====== Back to top start ======-->
<!--====== Jquery ======-->
<script src="static/js/jquery-3.6.0.min.js"></script>
<!--====== Bootstrap ======-->
<script src="static/js/bootstrap.bundle.min.js"></script>
<!--=== Owl-Carousel ===-->
<script src="static/js/owl.carousel.min.js"></script>
<!--====== Nice Select ======-->
<script src="static/js/jquery.nice-select.min.js"></script>
<!--====== Magnific ======-->
<script src="static/js/jquery.magnific-popup.min.js"></script>
<!--====== Wow ======-->
<script src="static/js/wow.min.js"></script>
<!--====== Main JS ======-->
<script src="static/js/main.js"></script>
<script>
//translate.ignore.tag.push('span'); //翻译时追加上自己想指定忽略的tag标签,凡是在这里面的,都不进行翻译。
//translate.ignore.class.push('test'); //翻译时指定忽略的class name,凡是class name 在这里面的,都不进行翻译。如果不设置默认只有 ignore 这一个
//translate.setAutoDiscriminateLocalLanguage(); //设置用户第一次用时,自动识别其所在国家的语种进行切换
translate.setUseVersion2(); //设置使用v2.x 版本
translate.language.setLocal('chinese_simplified');
translate.selectLanguageTag.show = false;
translate.execute(); //执行翻译初始化操作,显示出select语言选择
</script>
</body>
</html>