SSH access
# Get ready
- You need to have setup SSH keys to authenticate.
- See the direct code access intro for uses cases and limits.
# Accessing SSH
Each environment has it's own SSH access. Execute the following in your terminal to login:
# Connect to your environment via SSH $ ssh {{app-env-id}}@ssh.{{region}}.frbit.appshell
If the login went well, you will see a small welcome message:
––––––––––––––––––––––– ∙ƒ –––––––––––––––––––––––raw
# Executing PHP scripts
If you want to execute PHP scripts, including artisan and it's like, make sure to specify the PHP interpreter explicitly:
# will work $ php artisan some:command $ php some-script.php # will _not_ work: $ ./artisan some:command $ ./some-script.phpshell
# Using Composer
Using Git deployment will trigger Composer automatically. Therefore, it should not be necessary to run Composer from the environment. If you still need to run Composer manually on the App, you can. Please think twice before using composer update, because that will bring your local code out of sync which is likely to cause issues. Use composer install instead. Again, running Composer directly on the App is probably not what you want to do.
# Limitations
- This is not a root shell, so you can't install or remove software packages
- Mind that you are using the same runtime as your web application: resource intensive operations will drain memory and CPU from the web execution
- Worker and cron jobs are managed via the dashboard, not the shell
Found a tpyo?Edit