Sail 0.10.7 has been released! This version includes domain import/export commands, remote login support, and an updated server base image with PHP 8.1 as the default.
New servers initialized with version 0.10.7 will use the newer Ubuntu 22.10 base image, which contains updates to multiple packages, most notably PHP 8.1. If you’re still running PHP 7.4 or 8.0 and haven’t tested your application with 8.1 yet, we highly recommend doing that before making the switch.
Note that this change does not affect creating new applications in existing environments using namespaces. Those will be created with whatever version is already configured for the existing environment.
One of the most tedious tasks during migrations is moving domains from one server to another, especially if they have existing SSL certificates. We made it easier for Sail users to move domains between environments, retaining all SSL certificates and Let’s Encrypt renewal configurations, with the new sail domain export command:
$ sail domain export Exporting domains Copying /etc/letsencrypt/live/blog.sailed.io Copying /etc/letsencrypt/renewal/blog.sailed.io.conf Copying /etc/letsencrypts/accounts Writing configuration to domains.json Archiving and compressing files Success: Export completed at .backups/2023-03-15-195422.domains.tar.gz
Importing the archive to a new Sail application is just as easy:
$ sail domain import .backups/2023-03-15-195422.domains.tar.gz
This command will import the SSL certificates, update Let’s Encrypt and Nginx configurations, and finally update any DNS records on your DigitalOcean account, to point these domains to the new server. You can learn more about these two commands in the knowledgebase.
The exported archive itself is also usable outside of Sail. For example, if you’re migrating a site to a new hosting provider, you should be able to use the certificate files from the export to avoid downtime or service disruption when moving domains.
We’ve updated the sail admin command to log you into wp-admin right away, instead of just pointing your browser to the login page. It does so securely, by generating a single-use authentication token, directly on the server using SSH and WP-CLI, then using that token in the browser.
Note that only servers provisioned or rebuilt with version 0.10.7 and higher will inherit this new feature. Earlier versions will continue to open the browser at the login page.
To upgrade Sail to the latest version, use the following command:
curl -sSLf https://sailed.io/install.sh | bash
If you’ve installed Sail using other methods, such as Homebrew or PyPI, please refer to our installation/upgrade guide in the Knowledgebase. If you have any questions or problems with upgrading or using Sail, don’t hesitate to get in touch.