Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Latest commit

 

History

History
434 lines (328 loc) · 24.7 KB

CHANGELOG.md

File metadata and controls

434 lines (328 loc) · 24.7 KB

Release Notes for Craft Nitro

2.0.10 - 2022-05-19

Fixed

  • Fixed a bug where the create command wasn’t setting correct environment variable names for Craft 4. (#464)
  • Fixed a bug where opcache_validate_timestamps wasn’t getting set correctly. (#435)
  • Fixed a bug where the share command wasn’t working with Ngrok 3. (#466)
  • Fixed an error that could occur when executing the trust command when using WSL. (#461)

2.0.9 - 2022-02-15

Added

  • Added support for PHP 8.1.
  • Added support for more Linux distributions when installing certificates. (#380, #414)

Removed

  • Removed the blackfire command.

2.0.8 - 2021-05-18

Added

  • Added the db destroy command, for removing database engines. (#325)
  • Added the ability to extend the Nginx configuration with a nitro.conf file at the root of a project. (#18)

Changed

  • Added support for validating multiple hostnames with the alias command. (#341)
  • The stop command no longer returns an error code when no containers are running. (#336)
  • The add and create commands now set DB_USER and DB_PASSWORD variables in the .env file. (#310)
  • The ls command now outputs the internal and external ports for containers.

Deprecated

  • Deprecated the clean command. apply will automatically remove unused containers.
  • Deprecated the validate command.

Fixed

  • Fixed a bug where the apply command would not remove unused containers unless it was run twice. (#321)
  • Fixed a bug where the container new command didn’t allow entering a port. (#318)

2.0.7 - 2021-04-06

Added

  • Added the container remove command. (#303)
  • Added the ls command, which outputs useful information about Nitro.
  • Added support for local certificates on Fedora, CentOS, and RHEL distributions.

Changed

  • The blackfire, bridge, iniset, remove, restart, share, ssh, start, stop, xoff, and xon commands now accept a site argument. (#283, #320)
  • The iniset command now supports the opcache_validate_timestamps setting. (#302)
  • The db import command now accepts a --name flag. (#293)
  • The proxy container now exposes ports 3000 and 3001, for webpack dev server routes.
  • Improved support for Linux users and file permissions. (#308, #280, #264)
  • Improved various commands’ output. (#316, #322)

Fixed

  • Fixed a bug where the craft and queue commands weren’t forwarding command flags to Craft. (#301)
  • Fixed a bug where sites’ Nginx configs weren’t getting updated when their web root was changed in nitro.yaml. (#326)

2.0.6 - 2021-03-17

Fixed

  • Fixed a bug where the initset command wasn’t updating OPcache settings. (#298)
  • Fixed an error that was preventing Linux users from using Xdebug. (#288)
  • Fixed a bug where the trust command output was mangled for Windows users. (#291)
  • Fixed a bug where command completion wasn’t working for ZSH shells. (#295)

2.0.5 - 2021-03-09

Added

  • Added the php command, for executing PHP commands within a site container. (#276)

Fixed

  • Fixed a bug where MySQL permissions weren’t getting set properly. (#275)
  • Fixed an error that could occur when paths included spaces. (#277)
  • Fixed certificate installation for POP!_OS Linux.

2.0.4 - 2021-03-04

Changed

  • Nitro will now verify and start containers automatically if not running.

Fixed

  • Fixed an error that could occur when the version command was executed before init. (#270)
  • Fixed an error that could occur if Nitro wasn’t able to detect the database engine from a backup. (#269)

2.0.3 - 2021-03-03

Fixed

  • Fixed a bug where the iniset command was not updating PHP settings for sites. (#268)

2.0.2 - 2021-03-02

Fixed

  • Fixed a bug that could occur when executing the nitro add command before nitro init.

2.0.1 - 2021-03-02

Fixed

  • Fixed a bug where the self-update command was not updating.

2.0.0 - 2021-03-02

Added

  • Nitro now runs on Docker rather than Multipass. (#224, #222, #215, #205, #182, #181, #180, #152, #22, #18, #216)
  • Added support for Arm CPUs, including M1 Macs.
  • PHP versions and settings are now applied on a per-site basis. (#200, #105, #225)
  • Xdebug is now applied on a per-site basis.
  • Added support for SSL. (#10)
  • Added support for PHP 8.
  • Added support for Xdebug 3 when using PHP 7.2 or later.
  • Added the alias command.
  • Added the blackfire on and blackfire off commands.
  • Added the bridge command, for sharing a site over a local network.
  • Added the clean command.
  • Added the composer command.
  • Added the container new command, which creates new containers based on any available Docker image. (#170)
  • Added the container ssh command.
  • Added the craft command, which will run craft commands within a site’s container. (#189)
  • Added the db new command, which creates new database engine containers.
  • Added the db ssh command.
  • Added the enable and disable commands.
  • Added the extensions command.
  • Added the iniset command.
  • Added the npm command.
  • Added the portcheck command.
  • Added the queue command. (#189)
  • Added the share command, which shares a site via Ngrok. (#2)
  • Added the trust command.
  • Added the validate command.
  • Added the version command.

Changed

  • Improved Linux and Windows support.
  • Nitro now has a single ~/.nitro/nitro.yaml file to manage everything, instead of a YAML file per machine.
  • Most Nitro commands are now context aware of the directory they are executed in. (#167)
  • All commands that rely on an existing config file now prompt to run the init command if no config file is found.
  • The apply command will only update the hosts file if it has changed. (#117)
  • The create command now accepts custom GitHub repositories and installs Composer and Node dependencies automatically. (#101)
  • The db import command can now import database backups that live outside the project directory.
  • The destroy command now removes entries from the hosts file. (#235)
  • The init command will now use MariaDB rather than MySQL on Arm-based computers. (#234)
  • The init command now has a --skip-trust flag, which skips importing Nitro's root certificate.
  • The ssh command now has a --root flag, which will SSH into the container as the root user.
  • It’s now possible to set the default ports for HTTP, HTTPS, and the API to avoid any port collisions using NITRO_HTTP_PORT, NITRO_HTTPS_PORT, and NITRO_API_PORT.
  • Nitro will now check for port collisions during init and when adding database engines.
  • Sites’ containers’ hosts files now list their own host names. (#150)
  • Windows users are now prompted to update their hosts file.
  • Xdebug is no longer supported for PHP 7.0.

1.1.0 - 2020-10-06

Added

  • Added the nitro create command, which will set up a new Craft installation without PHP or Composer installed locally. (#101)
  • Added the --silent flag to the xon, xoff, and php iniset commands.

Changed

  • The db import command can now import zip and gzip files.
  • The db import command will now detect the database backup type and automatically select the appropriate database engine, if the backup file was uncompressed. (#132)
  • The db import and db add commands now replaces dashes (-) with underscores (_) in the specified database name, to work around a SQL error. (#212)
  • The php iniset command can now set the display_errors config setting. (#172)
  • The display_errors config setting is now set to On by default.

Fixed

  • Fixed a bug where php iniset memory_limit was listed as an available command.
  • Fixed a bug where php iniset commands weren’t always setting the correct values. (#207)
  • Fixed a bug where php iniget commands weren’t always returning the correct values.
  • Fixed a bug where the system’s hosts file wasn’t getting updated on Linux machines. (#213)

1.0.1 - 2020-08-12

Changed

  • Composer is now installed by default on new machines.
  • The default Nginx site is now a friendly landing page with helpful links.

Fixed

  • Fixed an error that occurred when checking for the latest version of Nitro. (#199)

1.0.0 - 2020-08-11

Added

  • Added the support command to quickly create GitHub issues pre-populated with environment info.

Changed

  • The info command now displays additional info such as IP, PHP version, and links to common tasks.

Fixed

  • Fixed a bug confirmation prompts would take just about any input as a “yes”. (#190)

1.0.0-RC1.1 - 2020-08-07

Fixed

  • Fixed an issue that occurred when creating new machines.

1.0.0-RC1 - 2020-08-07

Added

  • Added the nginx start, nginx stop, and nginx restart commands.
  • Added the php start, php stop, and php restart commands. (#57)
  • Added the php iniget command, which can be used to see current php.ini values.
  • Added the php iniset command, which can be used to modify the max_execution_time, max_input_vars, max_input_time, upload_max_filesize, max_file_uploads, and memory_limit php.ini settings. (#138)
  • Added the xon and xoff commands, which are shortcuts for xdebug on and xdebug off.
  • Added the nitrod daemon that runs in the virtual machine and exposes a gRPC API on port 50051.
  • Enabling and disabling Xdebug is now performed via the gRPC API, and is much faster now.

Changed

Improved Composer performance when run from inside the virtual machine. (#186)

Fixed

  • Fixed a bug where the default PHP version was not getting updated when running the apply command. (#192)
  • Fixed command completion when pressing the Tab key.

1.0.0-beta.10 - 2020-06-04

Added

  • Added support for a NITRO_EDIT_HOSTS environment variable so that when set to false, Nitro will never edit the host machine’s hosts file.

Changed

  • The destroy command now has a --skip-hosts option.

1.0.0-beta.9 - 2020-06-02

Changed

  • The add now has a --skip-hosts option. (#163)
  • The db add command now validates the database name. (#160)

Fixed

  • Fixed a bug with the Nginx config template (run nitro refresh for the change to take effect).

1.0.0-beta.8 - 2020-06-01

Changed

Fixed

  • Fixed an error that could remove mounted sites. (#162)
  • Fixed a bug where the apply command wasn’t removing deleted sites’ hostnames from the hosts file. (#161)
  • Fixed a bug where the apply command wasn’t removing deleted sites’ Nginx configurations from the virtual machine.

1.0.0-beta.7 - 2020-05-27

Fixed

  • Fixed a bug where keys transferred into the machine did not have the proper permissions. (#154)
  • Fixed a bug where the init command was not editing the hosts file. (#155) (#156)
  • Fixed a bug where the db import command was not working on PostgreSQL.

1.0.0-beta.6 - 2020-05-26

Changed

  • Removed an unnecessary debug command.

1.0.0-beta.5 - 2020-05-26

Added

  • Added Windows support.
  • Added support for MySQL 8.0. (#97)
  • The PostgreSQL and MySQL client tools are now installed on new machines. (#54, #139)
  • Added the install postgres, install mysql, install composer, and install mailhog commands.

Changed

  • New machines now use Ubuntu 20 LTS.
  • Renamed the --no-backups option to --skip-backup for the destroy command.
  • Composer is no longer installed on machines by default, but can be installed by running nitro install composer.
  • The init command now sets the default CPU count based on the number of CPUs on the host machine.
  • MySQL 5 and 8 now use version-specific configuration directories (/home/ubuntu/.nitro/databases/mysql/conf.d/<version>/).
  • Removed the xdebug configure command, and moved its logic into the xdebug on command.

Fixed

  • Fixed a bug where Nitro wasn’t removing Nginx server configs when removing sites.
  • Fixed a bug where the apply command wasn’t removing deleted mounts’ root directories within the machine. (#96)
  • Fixed a bug where the init command could return an exit code of 100. (#96)
  • The OPcache extension is no longer installed by default. (#129)

1.0.0-beta.4 - 2020-05-21

Added

  • Added the keys command which prompts which keys should be imported into a machine. (#141)
  • Added the --no-backups flag to destroy which will skip database backups.
  • Added completion commands for bash and zshrc.

Changed

  • The destroy command creates individual databases backups. (#146)
  • The mysql system database is no longer backed up using db backup or destroy. (#147)

Fixed

  • Fixed a bug where the refresh command was failing silently.
  • Fixed a permissions issue. (#145)
  • Fixed an issue when importing mysql databases using db import.
  • Fixed an issue installing composer on new machines. (#149)

1.0.0-beta.3 - 2020-05-19

Added

  • Added the --skip-hosts option to the apply command. (#110)
  • The add command will now prompt to create a machine if it does not exist. (#103)
  • The init command will edit the hosts file if sites are present in the config. (#123)
  • Added the db restart, db stop, db add, db remove, and db backup commands. The import command has also been renamed to db import.
  • Added the refresh command, which helps keep scripts and configs updated between versions of Nitro.
  • Databases now support custom configuration files. (#133)

Changed

  • Nginx is now configured to allow file uploads up to 100MB. (#126)
  • Databases are now backed up automatically when a machine is destroyed. (#136)
  • When creating a new machine, the DB_USER and DB_PASSWORD are automatically set in the environment. (#119)
  • The default database is now called nitro for MySQL engines, to be consistent with PostgreSQL.
  • The destroy command now prompts for confirmation. (#116)
  • The init command now prompts to initialize a new machine if there is no config file.
  • The add command now mounts project files in /home/ubuntu/sites/<name> instead of /nitro/sites/<name>. (#134)
  • The apply command now provides more information. (#95)
  • The init command now checks if the machine already exists before prompting for input (#102)

Fixed

  • Fixed a bug where the self-update command would non-interactively prompt to initialize the primary machine. (#115)
  • Fixed a bug where import --help didn’t show the required SQL file argument in the usage example. (#124)
  • Fixed a bug where the apply command wasn’t applying changes to sites’ web roots. (#113)

1.0.0-beta.2 - 2020-05-06

Fixed

  • Fixed an error when using the select prompt. (#104)

1.0.0-beta.1 - 2020-05-05

Changed

Removed

  • Removed MySQL 8.0 support for now.
  • Removed PHP 7.0 and 7.1 support.

Fixed

  • Fixed a potential permission error when installing/updating.

0.11.4 - 2020-05-04

Fixed

  • Fixed a broken test which prevented a release.

0.11.3 - 2020-05-04

Changed

  • The GMP and BCMath PHP extensions are now installed by default.
  • Composer is now installed globally on machines. (#92)

Fixed

  • Fixed a permission error when provisioning a PostgreSQL database.
  • Fix a bug where the import command wasn’t importing.
  • Fixed an issue where the machine DNS was not resolving in some environments. (#91)
  • Fixed an error when trying to create a database during PostgreSQL import. (#94)

0.11.2 - 2020-04-09

Changed

  • The init command now prompts for how many CPU cores should be assigned to the machine.

0.11.0 - 2020-04-29

Added

  • Added the rename command to allow users to quickly rename sites.

Changed

  • The destroy command now has a --clean option which will delete a config file after destroying the machine.
  • The nitro database user now has root privileges for mysql and postgres databases. (#79)
  • Added the php option back to the config file.
  • All commands that perform config changes (e.g. add, remove, and rename) now use the same logic as the apply command.
  • When importing a database using the import command, users will be prompted for the database name which will be created if it does not exist.
  • The apply command will automatically update the machine's hosts file.
  • The destroy command will now remove any sites in the machine config from the hosts file.
  • The init command will use an existing config file and recreate the entire environment.
  • Commands now output more statuses where possible to provide the user more feedback.

Fixed

  • When using the add command, the config file checks for duplicate sites and mounts. (#86)
  • Fixed an issue when using some commands on Windows. (#88)
  • Fixed an issue in the apply command that would not detect new changes to the config file.

0.10.0 - 2020-04-23

Warning: This release contains breaking changes. See the upgrade notes for details.

Added

  • Added the init command, which initializes new machines.
  • Added the remove command, which removes a site from a machine.

Changed

  • All machine configs are now stored saved in ~/.nitro/.
  • All commands now have an -m option, which can be used to specify which machine to work with. (The -f option has also been removed.)
  • The apply command now creates any new database servers that it finds in the config file.
  • The machine destroy command has been renamed to destroy, and it now permanently destroys the machine (as opposed to archiving it), and removes any hostnames added to your hosts file that point to its IP address.
  • The machine restart command has been renamed to restart.
  • The machine start command has been renamed to start.
  • The machine stop command has been renamed to stop.
  • Renamed get.sh to install.sh.

Removed

  • Removed the machine create command. Use the new init command to create new machines instead.

Fixed

  • Fixed a bug where users could get a segfault when adding a site. (#78)
  • Fixed a bug where it wasn’t possible to import databases using relative paths. (#75)
  • Fixed a bug where the machine create command listed MySQL 5.8 as an option.
  • Fixed a bug where php-fpm wouldn’t restart after running the xdebuf off command.

0.9.3 - 2020-04-20

Fixed

  • Fixed an issue when importing database backups using relative paths (#75)

0.9.2 - 2020-04-20

Added

  • Added import command to let users import a database backup from their system into nitro. (#1)

Changed

  • Nitro now installs the PHP SOAP extension by default.
  • Nitro will now walk users through the creation of a machine when no config file is present (#44).
  • Nitro now prompts you to modify your hosts file after using add (#40).

0.9.1 - 2020-04-18

Added

  • Added edit command to edit a nitro.yaml config. (#70)
  • Added logs command to check nginx, database, and docker logs.

Fixed

  • apply now checks if sites are setup in the machine and configures them if they are missing.

0.7.5 - 2020-04-12

Added

  • Added checksum support for get.sh when downloading and updating. (#56)