SSH access

# Get ready

# Accessing SSH

Each environment has it's own SSH access. Execute the following in your terminal to login:

Log in to see the link here.
# Connect to your environment via SSH
$ ssh {{app-env-id}}@ssh.{{region}}.frbit.app
shell

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.php
shell

# 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