Upload once, commit after
This is the one rule to remember:See logs and status
- Dashboard
- CLI
Open the application. Overview shows its status and resource usage, and the Realtime console streams what the application prints. Logs keeps the saved output.
Update your code
- Dashboard
- CLI
- GitHub
Open Files and click Commit files. Send the changed files or a
.zip of up to 100 MB, which is extracted in place, and tick the option to restart the application so the new code runs.Start, stop and restart
- Dashboard
- CLI
The Start, Stop and Restart buttons are on the application’s Overview.
Change RAM and settings
Settings → General changes the name, the description, the start command, the memory and Auto Restart. The RAM you give an application comes out of your plan’s total: see how the RAM is shared. The main file, the runtime and its version can’t be changed on an existing application. To change one of them, upload the project as a new application and delete the old one. The configuration file reference lists what is editable.Environment variables
Tokens, passwords and connection strings live in Settings → Environment Variables, not in the code. They survive restarts and commits. After changing one, restart the application to load it. See Environment variables.Snapshots
A snapshot is a copy of the application’s files at one moment, which you can download as a.zip or restore.
- Take one before a risky change: open Snapshots and click Take snapshot, or run
squarecloud app snapshot create. - Restore replaces the application’s files with the snapshot’s and starts the application again. What was written after the snapshot is gone.
- Automatic daily snapshots of applications come with the Pro and Enterprise plans. On Hobby and Standard, take them yourself.
- Retention: the newest snapshot of each application is kept for 30 days; older ones for 7 days.
squarecloud app snapshot for the commands.
Grow
- Your own domain: from the Standard plan, attach a domain you already own to a website. See Website hosting.
- More than one application on the same domain: balance the traffic between them with a load balancer.
- A database: create a managed PostgreSQL, MySQL, MongoDB or Redis and put its connection URL in an environment variable.
- Files: store uploads and media in Blob Storage instead of the application’s disk.
Delete an application
Settings → Danger Zone → Delete application, orsquarecloud app delete. A deleted application cannot be brought back as it was.
Frequently asked questions
I uploaded again and now I have two applications. What do I do?
I uploaded again and now I have two applications. What do I do?
Delete the one you don’t want, in its Settings → Danger Zone. From now on, update with a commit: Files → Commit files in the dashboard, or
squarecloud commit.I committed, but the old code is still running.
I committed, but the old code is still running.
A commit doesn’t restart the application. Restart it, or commit with the restart option (
squarecloud commit --restart).Does my application sleep when nobody is using it?
Does my application sleep when nobody is using it?
No. An application runs around the clock until you stop it. Turn on Auto Restart to bring it back after a crash.
Can I run commands on the server?
Can I run commands on the server?
No. There is no shell: the console only shows what your application prints. Dependencies are installed from your dependency file at start, and the start command is set by
START in the configuration file or in Settings → General.How do I download my whole project?
How do I download my whole project?
Take a snapshot and download it: it is a
.zip of the application’s files.
