Spectivis Cloud
Terminal
Open a live shell inside your running environment, or run one-off commands from the same tab.
The Terminal tab opens a live shell inside your environment’s running app, with the environment’s variables. Use it for work that needs you to type along the way, such as php artisan tinker, a database prompt or looking around the files.
The tab has two modes. Shell is the live terminal. Command runs a single command and keeps its output.
- Any member of the organization can open a shell. Spectivis staff cannot open one in your environment.
- An open terminal keeps the environment awake, and awake time uses credit. Close it when you are done.
- A terminal closes after 15 minutes without typing, and after 4 hours at the latest. The tab warns you before each. Where the tab offers Add 4 hours, you can extend a terminal, up to 12 hours in all.
- An environment can have 2 terminals open at once, and each member 3 across the organization.
- A deploy, a resize or a rollback replaces the running app, which ends any open terminal. Open a new one afterwards.
- Static sites have no running app, so no terminal.
What is recorded
Section titled “What is recorded”The activity log records who opened a terminal, when it closed and why. Nothing you type and nothing the terminal prints is recorded or stored. If you want a record of a command and its output, run it in Command mode, which keeps output for 7 days.
What a shell can reach
Section titled “What a shell can reach”Only its own environment: its files, its variables and its database. A staging environment cannot reach production.
Changes to files outside your storage folders last until the next deploy, because every deploy starts from a fresh build. Put changes you want to keep in your repository.
Pasting
Section titled “Pasting”A paste can be up to 64 KB. When you paste several lines into a plain shell prompt, the tab asks first, because a shell runs each line as soon as it arrives.
Links in the output cannot be clicked, and programs in the shell cannot read or write your clipboard.
If the terminal is not available
Section titled “If the terminal is not available”- “The terminal opens in the deployed app” means the environment has no successful deploy yet.
- “The terminal is not available on this server yet” means Shell mode is not offered for your environment. Command mode works in the meantime.