Learn how Envoyer deploys your projects to servers.
~/.ssh/authorized_keys
file for the users Envoyer should connect to the server as.
After you have added the SSH key to the server, click the “refresh” icon next to the server’s “Connection Status” indicator. Envoyer will attempt to connect to your server and run a few health checks on the server, such as attempting to restart PHP FPM (if it is installed on the server).
Field | Description |
---|---|
Name | Give your server a name that you can identify easily. |
Hostname / IP Address | The IPv4 address of your server. |
Port | The port Envoyer should use to connect to your server. |
Connect As | The user that Envoyer should use to connect to your server. |
Receives Code Deployments | Determines whether the server should receive code deployments. |
Project Path | The absolute path to the project’s root directory on your server. |
Reload FPM After Deployments | Determines whether the PHP-FPM service will be reloaded after each deployment. |
FreeBSD | Indicates whether the server is running the FreeBSD operating system. |
PHP Version | The version of PHP being used (also determines the version of the PHP-FPM service that will be reloaded). |
PHP Path | The absolute path to the PHP binary on your system. |
Composer Path | The absolute path to the Composer binary on your system. |
php8.0 /usr/local/bin/composer
. This setting will instruct Composer to run using PHP 8.0 instead of the system default.
forge
, unless using a Forge configured isolated user). Envoyer will use this SSH key to connect to your server and deploy your site.
storage
directory. Then, you may use the “Manage Linked Folders” feature of Envoyer to create a symbolic link from your public directory to the storage
directory. The “Manage Linked Folders” button can be found on the “Deployment Hooks” tab of your project.
If you are not using Laravel, you will essentially follow the same process. However, you will need to manually create a storage
directory in the deployment path of your application (the same directory level as the current
symbolic link).