How to create your squarecloud.app config file
Learn how to create your Square Cloud configuration file
Configuration file? What is it? ๐ค
The configuration file is a file that contains the parameters of your application, such as the main file, memory, version, and other parameters. This file is used to configure and deploy your application on the Square Cloud platform.
Creating the configuration file
Itโs very simple to create the configuration file, just create a file with the name squarecloud.app
or squarecloud.config
and put the configuration parameters inside it.
Select extension
The configuration file can have two extensions: .app or .config. You can choose the extension you prefer. Tip: use .app to help promote Square (squarecloud.app). ๐
Create file
Create a file with the extension you selected and put the configuration parameters inside it.
Configuration parameters
Below you can see the configuration parameters that you can use in your configuration file.
MAIN [*]
The MAIN parameter is used to define the main file of your application.
MEMORY [*]
The MEMORY parameter is used to define the amount of memory that your application will use on the Square Cloud platform.
VERSION [*]
The VERSION parameter is used to define the version of your application.
Language | Version recommended | Version latest |
---|---|---|
JavaScript [Node.js] | 22.11.0 | 23.1.0 |
Python | 3.13.0 | 3.13.0 |
Java | JDK 17 | JDK 22 |
Elixir | 1.17.3 | 1.17.3 |
Rust | 1.82.0 | 1.82.0 |
PHP | 8.3.13 | 8.3.13 |
Go | 1.23.3 | 1.23.3 |
C# | 8.0.10 | 8.0.10 |
HTML/CSS | Build 08-11-2024 | Build 08-11-2024 |
recommended
version as our team has performed extensive testing on all recommended versions.DISPLAY_NAME [*]
The DISPLAY_NAME parameter is used to define the name of your application.
DESCRIPTION
The DESCRIPTION parameter is used to define the description of your application.
AUTORESTART
The AUTORESTART parameter is used to define if your application should restart automatically if it crashes.
false
.SUBDOMAIN
The SUBDOMAIN parameter is used to define the subdomain of your website.
START
The START parameter is used to define a custom startup command for your application.
Examples of configuration for bots
We have some examples of configurations for bots, below you can see some examples.
Examples of configuration for websites
We have some examples of configurations for websites, below you can see some examples.
next.config.js
used only to system recognize the project as a JavaScript project or TypeScript project (another .ts/.tsx file)Reforcing the limits
For security and performance reasons, there are limits on the configuration parameters, below you can see the limits of each parameter.
Parameter | Character limit |
---|---|
MAIN | 32 characters |
DISPLAY_NAME | 32 characters |
DESCRIPTION | 280 characters |
START | 128 characters |
SUBDOMAIN | 63 characters |
Was this page helpful?