Spectivis Cloud
Files
Browse, edit, upload and download an environment's code and storage folders, and how live sites work.
The Files tab on an environment has two parts. Code is the app’s files when it deploys from uploaded files instead of GitHub. Storage is the environment’s persistent folders, such as storage/app or pub/media.
Working with files
Section titled “Working with files”- Select files and folders with the checkboxes. Hold Shift to select a range, or press Ctrl+A (Cmd+A on a Mac) for the whole folder. Move, Copy, Compress and Delete appear in a bar at the bottom and apply to everything selected. Delete on the keyboard asks to delete the selection and Escape clears it.
- Sort by clicking Name, Size or Modified. Folders always come first.
- Right-click a row, or use the button at its end, for Open, Download, Rename, Duplicate, Move to, Copy to, Compress and Delete.
- Move by dragging a file, or the selection, onto a folder, onto a folder in the path at the top, or onto
... Move to and Copy to in a row’s menu let you pick the folder instead. - Duplicate makes a copy beside the original.
- Compress makes a
.zipin the folder you are in. Unpack here on an archive puts its files in that folder. Files with the same name are replaced and the archive stays. - New file makes an empty file and opens it in the editor. Ctrl+S or Cmd+S saves.
- Find by name looks through the folder you are in and everything below it.
File permissions cannot be changed here. Files that were executable stay executable when you upload, copy or unpack them.
Live sites
Section titled “Live sites”A PHP, WordPress, Magento or HTML app made from uploaded files is a live site. It runs straight from the files you see here, the way a classic host does:
- A change is live at once. There is no draft, no build and no deploy step.
- The whole folder is writable, so an installer can write its config file and a plugin can update itself.
- The Files tab has one part, the site’s files. They count toward the storage that comes with the environment’s size.
- The Restart button at the top starts the site again. Use it after you change the PHP version, a variable or the web root.
A live site gives up three things a built app has. There is no rollback to an earlier deploy, so keep your own copy before a risky change. Compress in the Files tab makes one quickly. A half-finished upload is live while it uploads. And the site can change its own files, so keep plugins and themes up to date.
The nightly database backup covers the database, not the site’s files. Download a copy of the files, or compress them into an archive, before a large change.
The site still runs in its own container, with the memory, CPU and storage of its size, and it cannot see another app’s files.
Laravel, Next.js and React uploads need a build to run, so they keep a draft and Deploy changes, as described below.
This part is for apps that are built: Laravel, Next.js and React uploads. Changes to the code are saved as a draft. Nothing changes on the live site until you choose Deploy changes. Discard puts the draft back to what is live.
- A draft can hold up to 100,000 files. The code, its deploys and your storage folders share the storage that comes with the environment’s size, for example 20 GB for a 1 GB instance. The Files tab shows how much is used, for example “1.2 GB of 20 GB used”.
- When that storage is full, new files are refused and nothing is deleted. Delete files, or pick a larger size in Settings. A smaller size that would not hold your files cannot be picked.
- You can upload an archive (
.zip,.tar,.tar.gz,.tar.bz2,.tar.xz,.7zor.rar) to replace the code or to unpack into a folder. An archive whose files all sit in one top folder is unpacked from inside it. Links in an archive are left out. - A large archive, deploy or copy carries on after you leave the page. The Files tab shows how far it is when you come back.
Storage
Section titled “Storage”Changes to storage folders are live at once. Files your app writes to them count toward the same storage. Storage folders unpack .zip archives only. Keep another archive as a file, or unpack it on your computer and upload the files.
Large uploads and downloads
Section titled “Large uploads and downloads”Large uploads go to your files in small pieces, so a broken connection only resends the piece it was on. Downloads come through a link that works for 30 minutes. A download manager can use it too, and resume a download that stopped.
The browser talks to a Spectivis address other than cloud.spectivis.com for these transfers. If your network only allows certain sites, allow *.spectivis.com.
When the server is busy or away
Section titled “When the server is busy or away”If the server with your files is restarting or being updated, the Files tab says so and asks you to try again in a few minutes. A new app made from an upload during that time is created at once and gets its files and first deploy when the server is back.