Sail 0.10.4

Sail 0.10.4 has been released, with a few quality-of-life improvements.

Sail Logo

Sail Rebuild

We’ve added a sail rebuild command to provision a fresh WordPress environment on an existing host. This is useful when you’d like a clean start, but also keep your existing server IP address. We highly recommend creating a full application and database backup before rebuilding, as well as make note of any domain settings — you will probably want to add these back after the rebuild.

sail backup
sail domain list
sail rebuild

Database Changes

A new sail db reset-password command is now available. It resets the MySQL/Maria database credentials and updates the wp-config.php file to reflect the change. This is extremely useful when importing an existing WordPress project into Sail, since you no longer have to worry about the correct credentials in wp-config.php.

Speaking of imports, we changed sail db import to do an atomic import using a temporary database. This will cause less disruption for existing sites, especially ones with large databases. The new routine will also identify non-standard table prefixes, and attempt to fix them by renaming tables. This command is also very useful when importing projects from other hosting providers into your Sail server.

Other Changes

A few other smaller improvements were released in this version:

  • The WordPress admin username no longer leaks the provided admin e-mail address
  • Removed the syslog configuration from Nginx for better performance
  • Updated sail logs to work with default Nginx access and error logs in addition to journald
  • Default --lines option in sail logs will now read the terminal height
  • Fixed Nginx warning on duplicate mime type declaration for font/woff
  • Added worker_rlimit_nofile to Nginx to allow more open files

For the full list of changes/commits, please refer to our GitHub repository.

Upgrade

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.

About the author

Konstantin Kovshenin

Konstantin is a WordPress Core Contributor, public speaker, DevOps engineer and consultant, theme and plugin developer, founder and maintainer of Sail for WordPress.