Git Product home page Git Product logo

start-website's Introduction

Docusaurus 案例

中文 | English

快速开始

通过应用中心部署

您可以在阿里云 🌏 Serverless 应用中心 ,快速体验该应用:
Deploy with Severless Devs

通过命令行工具部署

在开始之前,需要先安装 Serverless Devs 开发者工具:npm install @serverless-devs/s -g,更多安装方法,可以参考Serverless Devs 安装文档 ,针对阿里云还需要配置密钥信息,配置密钥信息的方法可以参考阿里云密钥配置文档

  • 初始化项目:s init website-docusaurus -d website-docusaurus

    涉及到确定密钥的选择、服务名称的确定、函数名称的确定以及容器镜像的确定

  • 进入项目:cd website-docusaurus
  • 部署项目:s deploy -y
  • 调用函数: 根据返回的url信息,在浏览器中进行请求即可

通过阿里云CloudShell部署

如果您不想在应用中心中快速体验,也不想下载命令行工具体验,您也可以在 🚀 阿里云 CloudShell 中快速体验。

应用详情

本项目是将非常流行文档框架 Docusaurus,部署到阿里云 Serverless 平台(函数计算 FC)。

Docusaurus 将助您在极短时间内搭建优美的文档网站, 您可以专注于内容创作,仅需编写 Markdown 文件即可。

通过 Serverless Devs 开发者工具,您只需要几步,就可以体验 Serverless 架构,带来的降本提效的技术红利。

部署完成之后,您可以看到系统返回给您的案例地址,例如:

图片alt

此时,打开案例地址,就可以看到测试的应用详情:

图片alt

关于我们

start-website's People

Contributors

anycodes avatar heimanba avatar jasonlamv-t avatar xsahxl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

start-website's Issues

s deploy 报错

经调试应是 modifyProps 和 setDomainServerCertificate 这两个接口抛错

上传 显示太多

image

所有成功的显示在一行,失败的需要单独显示,或者直接退出

部署 website-base模板 报错

通过文档中提供的链接部署website-base模板 https://fcnext.console.aliyun.com/applications/create?template=website-base
在执行第4步执行部署时,出现错误。
(我在部署这个模板前,部署了一个vue-press的模板。)

错误回显 点击展开

2022-03-17 06:55:50 INFO c2d1a354-1e44-49d6-933b-13b40dc5f6e7 - FC Invoke Start RequestId: 1647500150562000

2022-03-17 06:55:50 INFO c2d1a354-1e44-49d6-933b-13b40dc5f6e7 - Begin to use Serverless Devs to deploy ...

[2022-03-17 06:55:51] [INFO] [S-CORE] - Start the pre-action
[2022-03-17 06:55:51] [INFO] [S-CORE] - Action: rm -rf ./server/public && cp -r ./base ./server/public
[2022-03-17 06:55:51] [INFO] [S-CORE] - End the pre-action

  • Downloading: [https://registry.devsapp.cn/simple/devsapp/fc-deploy/zipball/0.0.67]

devsapp_fc-deploy.zip file decompression completed

  • Downloading: [https://registry.devsapp.cn/simple/devsapp/fc-info/zipball/0.0.22]

devsapp_fc-info.zip file decompression completed
[2022-03-17 06:55:55] [WARN] [FC-DEPLOY] - Reminder remote service: error is: getaddrinfo ENOTFOUND 1627524695624015.GET http://1627524695624015./%7B%7B%20region%20%7D%7D.fc.aliyuncs.com/2016-08-15/services/website failed.(Fc will use local config.)
[2022-03-17 06:55:55] [WARN] [FC-DEPLOY] - Reminder remote function: error is: getaddrinfo ENOTFOUND 1627524695624015.GET http://1627524695624015./%7B%7B%20region%20%7D%7D.fc.aliyuncs.com/2016-08-15/services/website failed.(Fc will use local config.)
[2022-03-17 06:55:55] [WARN] [FC-DEPLOY] - Reminder remote trigger: error is: getaddrinfo ENOTFOUND 1627524695624015.GET http://1627524695624015./%7B%7B%20region%20%7D%7D.fc.aliyuncs.com/2016-08-15/services/website failed.(Fc will use local config.)
[2022-03-17 06:55:55] [WARN] [FC-DEPLOY] - Reminder remote trigger: error is: getaddrinfo ENOTFOUND 1627524695624015.GET http://1627524695624015./%7B%7B%20region%20%7D%7D.fc.aliyuncs.com/2016-08-15/services/website failed.(Fc will use local config.)

  • Downloading: [https://registry.devsapp.cn/simple/devsapp/fc-default/zipball/0.0.17]

devsapp_fc-default.zip file decompression completed
Creating Service (0s)

Creating Service (0s)

Creating Service (0s)
Project framework failed to execute:

ERROR:

getaddrinfo ENOTFOUND 1627524695624015.POST http://1627524695624015./%7B%7B%20region%20%7D%7D.fc.aliyuncs.com/2016-08-15/services failed.

TraceId: 526b9c43d5011647500162561
Environment: @serverless-devs/s: 2.0.101-beta.3, core: 0.1.32-beta.1, s-home: /root/.s, linux-x64, node-v12.16.1
Documents: https://www.serverless-devs.com
Discussions: https://github.com/Serverless-Devs/Serverless-Devs/discussions
Issues: https://github.com/Serverless-Devs/Serverless-Devs/issues

Please copy traceId: 526b9c43d5011647500162561 and join Dingding group: 33947367 for consultation.
You can run 's clean --all' to clean Serverless devs.

2022-03-17 06:56:02 ERROR c2d1a354-1e44-49d6-933b-13b40dc5f6e7 - Failed to deploy, errorMsg:[Error: - Checking Service website exists

  • Checking Service website exists
  • Checking Function website exists
  • Checking Function website exists
  • Checking Triggers
  • Checking Triggers
    Checking Service, Function, Triggers (1.59s)
  • Creating Service website...
  • Creating Service website...
  • Creating Service website...
    ]

2022-03-17 06:56:02 INFO c2d1a354-1e44-49d6-933b-13b40dc5f6e7 - FC Invoke End RequestId: 1647500150562000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.