Using your server's shell
Connect to your server's app over SSH to install or update your modules, reset a password, open the database or work in Python.
Every server on Fullfinity Deploy can open a shell inside its app, over SSH. Use it to install or update your own modules from the command line, set a password when nobody can sign in, look at the database, or try something in Python against your data.
Make a key
The shell signs you in with an SSH key, never a password. If you already have a key, skip to the next section.
- Open a terminal: Terminal on a Mac or Linux, PowerShell on Windows.
- Type ssh-keygen -t ed25519 and press Enter. Press Enter again to keep where it is saved. A passphrase is optional, but protects the key if your computer is lost. If it says the key already exists, answer n: you have one already, and replacing it would lock you out wherever it is used.
- Type cat ~/.ssh/id_ed25519.pub and copy the whole line it prints.
Add the key to your server
- Open your server from Servers and go to the Access tab.
- Under SSH keys, give the key a Name (the computer it is on, for example) and paste the line into Public key. Only the line from the file ending in .pub goes there. The other file is your private key: it stays on your computer and is never shared.
- Click Add Key.
The key opens your staging copies straight away. Production needs one more step, below.
Connect
The Connect card shows the command for each place your key opens: one for production and one for each staging copy. Copy it into your terminal and press Enter. It looks like ssh login@your-server-address.
You arrive inside your Fullfinity app, in the folder it is installed in, with a short guide to the commands that work there and the names of your databases. Type help to see the guide again, and exit to leave.
What you can do
| To | Type |
|---|---|
| Install a module | fullfinity -db <database> -i <module> --init-only |
| Apply a module's changed code | fullfinity -db <database> -u <module> --init-only |
| Set a user's password | fullfinity password --db <database> --email <email> |
| Open the database | psql <database> |
| Work in Python, with the app loaded | fullfinity shell --db <database> |
Your own modules are in /app/custom_modules. Updating a module applies its screens and data at once; changed Python code takes effect after a restart (below).
What you can't do here
The shell is inside the app, not on the server's operating system, so commands that manage the server itself, such as systemctl or sudo, are not there. Use the server's page instead:
- Restart the app: Restart in the menu beside the server's name.
- Take a backup: Back Up Now on the Backups tab.
- Move to a new Fullfinity version: Version on the Settings tab.
- Read the app's logs: Application logs on the Activity tab.
A command added to the end of the ssh line is refused: a key opens an interactive shell and nothing else.
Production and staging copies
A shell in production works on your live data: a module update or a password change there is real at once. That is why it is off until the organization's owner turns on Production shell access on the Access tab, and even then it opens only for keys ticked Production too.
Staging copies are the place to try things first: they never send email or take payments. A copy that is asleep is started when you connect, which takes a moment.