跳转到主要内容

Square Cloud 服务 🚀

Square Cloud 从设计之初就致力于打造一个对开发者友好的平台。该平台由多种服务组成,可用于快速且安全地部署应用。

机器人托管。

将你的机器人部署到 Square Cloud,获得最佳的机器人托管解决方案。 Square 为最知名的平台提供了战略性的地理位置,确保低延迟和高可用性。

Web 托管。

将你的 Web 应用部署到 Square Cloud,获得最佳的 Web 托管解决方案。 我们提供优质的 Cloudflare 集成、快速的 DNS,以及 Web 应用防火墙(WAF),以确保最佳的性能和安全性。

Serverless 存储,Blob Storage。

使用 Square Cloud 存储你的数据,享受 serverless 存储带来的优势。 我们的存储服务设计简单、可扩展且经济高效。

开始之前

要开始使用,请先创建一个 Square Cloud 账户。然后你可以选择适合你的方案

注册

如果你以前从未使用过 Square,请注册以开始使用。

登录

如果你已经拥有账户,请登录以开始使用。

上传你的项目 😁

你可以通过以下几个简单步骤将项目上传到 Square Cloud:
1

首先,阅读关于你所用语言的说明:

JavaScript

Python

Java

Rust

Elixir

PHP

Go

C#

Ruby

在本示例中,我们将使用 JavaScript(Node.js)语言。
2

然后,创建你的 Square Cloud 配置文件。

访问控制面板后,你需要创建一个配置文件。你可以阅读这篇文章来创建配置文件
Example of a config file for a bot
MAIN=index.js
MEMORY=512
VERSION=recommended
DISPLAY_NAME=Batman bot
DESCRIPTION=This bot is the dark knight of the night.
Example for website. (URL: "batman.squareweb.app")
MAIN=index.js
MEMORY=512
VERSION=recommended
SUBDOMAIN=batman
START=npm run build && npm run start
DISPLAY_NAME=Batman website
DESCRIPTION=This website is the dark knight of the night.
3

接着,将你的项目打包成 ZIP。

创建配置文件后,你需要将项目压缩成 zip。
1. Locate the file or folder that you want to zip.
2. Press and hold (or right-click) the file or folder, select (or point to) Send to, and then select Compressed (zipped) folder.
3. A new zipped folder with the same name is created in the same location. To rename it, press and hold (or right-click) the folder, select Rename, and then type the new name.
1. Locate the file or folder that you want to zip.
2. Right-click the file or folder, then choose Compress from the shortcut menu.
3. A new zipped folder with the same name is created in the same location. To rename it, press and hold (or right-click) the folder, select Rename, and then type the new name.
1. Locate the file or folder that you want to zip.
2. Control-click the file or folder, then choose Compress from the shortcut menu.
3. A new zipped folder with the same name is created in the same location. To rename it, press and hold (or right-click) the folder, select Rename, and then type the new name.
4

最后,上传你的项目。😉

上传项目后,点击 “Add New” 按钮来部署你的项目。