Skip to content

Releases: scandipwa/create-magento-app

v1.6.0

18 Jun 15:10

Choose a tag to compare

What's New

  • Import db command now has --remote-db option to import database dumps from remote servers.
    Usage example:

    yarn run import-db --remote-db ssh://[email protected]

    Now it will connect via ssh to your server, create dump files (dump-0.sql and dump-1.sql), download them to your projects root folder, merge them to single dump.sql and import them to your local instance with applied fixes.

    Note, that the dump file created by this command is much smaller than dump files that are created by default. This is because we omit orders and customers data when we're creating dump file so it comes in a much smaller size.

    For example, previously a dump from a database could weigh 2.7GB, now using this import feature size will be reduced to 4MB.

  • start command now have --recompile-php option to recompile PHP, if needed.
    Sometimes, for example on macOS when dynamic dependencies are updated, PHP might break. To fix this issue you had to manually delete the PHP binary in ~/.phpbrew/php/php-<version>, so CMA will detect it and compile it.
    Now, you just need to pass this option in the start command and CMA will take care of everything.

  • Refactored start command tasks display and execution view.
    Now it should look less cluttered with unnecessary information and also show timestamps for the tasks.

  • Windows platform is now also supported through WSL!
    Docs available here.

Miscellaneous

  • Refactored link command logic.
  • Link command now also automatically start the project if it was stopped.
  • If no connection string was supplied to import-db command with remote-db option, CMA will ask for it during runtime.
  • Adjusted Magento configuration task execution order.
  • Persisted query setup for ScandiPWA theme is now also executed during the Magento configuration task.
  • Start command will print into command output magento-scripts version.

Bug Fixes

  • Setup persisted query task will now use correct PHP version on your project. 93df0bf
  • start php-fpm task will now will not break if php-fpm already running and just skip this step. 650c8c6
  • MySQL connection will now print errors instead of only hardcoded message about the error.

v1.5.4-alpha.3

18 Jun 14:32

Choose a tag to compare

v1.5.4-alpha.3 Pre-release
Pre-release
  • Fixed import errors.
  • MySQL connection will now print errors instead of only hardcoded message about the error.

v1.5.4-alpha.2

17 Jun 14:39

Choose a tag to compare

v1.5.4-alpha.2 Pre-release
Pre-release

Recompile PHP option, import remote db improvements and bug fixes!

What's New

  • Removed check for readymage server on import-db, added support for any ssh servers with mysqldump installed on them.
    CMA will ask the same things to connect to a remote server via ssh, then it will ask to alter (if needed) mysqldump command so the user will provide correct credentials for it. Then, the process will continue as follows: CMA will make 2 dump files (dump-0.sql and dump-1.sql), download them, concat them into a single dump.sql file and continue to import into your local instance.
  • start command now have --recompile-php option to recompile PHP, if needed.
    Sometimes, on macOS when dynamic dependencies are updated, PHP might break. To fix this issue you had to manually delete the PHP binary in ~/.phpbrew/php/php-<version>, so CMA will detect it and compile it.
    Now, you just need to pass this option in the start command and CMA will take care of everything.
  • import-db command remote-db option now has an alias -r.
    So, to import remote db command can look like this: npm run import-db -r <connection string> or npm run import-db --remote-db <connection string>
  • If no connection string was supplied to import-db command with remote-db option, CMA will ask for it during runtime.

Bug Fixes

  • Setup persisted query task will now use correct PHP version on your project. 93df0bf
  • start php-fpm task will now will not break if php-fpm already running and just skip this step. 650c8c6

v1.5.4-alpha.1

11 Jun 14:31

Choose a tag to compare

v1.5.4-alpha.1 Pre-release
Pre-release

What's New

  • Import db command now has --remote-db option to import database dumps from remote servers.
    At the moment, only readymage ssh is supported.
    Usage example:

    yarn run import-db --remote-db ssh://[email protected]

    Now it will connect via ssh to readymage instance, create dump files (dump-0.sql and dump-1.sql), download them to your projects root folder, merge them to single dump.sql and import to your local instance with applied fixes.

    Note, that the dump file created by this command is much smaller than dump files that are created by default on readymage. This is because we omit orders and customers data when we're creating dump file so it comes in much smaller size.

  • Start command will also print into command output magento-scripts version.
    Printing the magento-scripts version is helpful for error reporting if something goes wrong.

[email protected]

08 Jun 13:44

Choose a tag to compare

  • Bump dependencies version.

v1.5.3

08 Jun 13:42

Choose a tag to compare

Bug Fixes!

  • Fixed exec and logs command throwing an error about docker.getContainers not a function.

Miscelarrious

  • Bump dependencies version.

v1.5.4-alpha.0

08 Jun 16:09

Choose a tag to compare

v1.5.4-alpha.0 Pre-release
Pre-release

Adjusted start command output and some under the hood changes

  • Refactored start command tasks display and execution view.
    Now it should look less cluttered with unnecessary information and also show timestamps for the tasks.
    Before:
    Screenshot_20210608_190347

    After:
    Screenshot_20210608_190506

  • Refactored link command logic.

  • Link command now also automatically start the project if it was stopped.

  • Adjusted Magento configuration task execution order.

  • Persisted query setup for ScandiPWA theme is now also executed during the Magento configuration task.

v1.5.2

31 May 11:13

Choose a tag to compare

Bug Fixes!

  • Fixed docker.getContainers is not a function error that caused the application to unable to properly start or stop. 56e3d28

V1.5.1

28 May 14:53

Choose a tag to compare

System config, Bug Fixes and Performance Improvements!

What is New

  • System config is here!
    The file should be named .cmarc and located in the home directory of your user.
    Currently, only 2 options are available to tweak: useNonOverlappingPorts, analytics.

    // default ~/.cmarc
    {
      "useNonOverlappingPorts": false,
      "analytics": true
    }

    useNonOverlappingPorts feature will tell CMA to not use ports that are already used by other CMA instances, even if they are currently stopped.
    analytics will come in the following updates which will help us improve CMA, so an option to opt-out from it is already available!

    [NOTICE] Since the useNonOverlappingPorts feature control has been moved from the projects config file, aka cma.js in your project root directory, you will need to remove this option from there.

    Documentation available here!

  • ElasticSearch MachineLearning option will now be automatically enabled on systems that support it.
    This feature was disabled before to keep compatibility for our developers running on older hardware, but now it will be enabled for systems that support the SSE4.2 instruction set.

Bug Fixes

  • Fixed import and usage of stored programs in database dump. 19bf46c
  • Fixed undefined errors while extracting data (like retrieving versions) from command output which does not contain that data or data is corrupted.
    Now proper error message will be displayed if something goes wrong. c248361
    Reported from scandipwa/scandipwa#2598
  • Fixed installation of prestissimo composer plugin on composer with version 2. 70ba9cc

v1.5.0

30 Apr 15:38

Choose a tag to compare

Apple Silicon, Magento 2.4.2 & 2.4.1-p1 support and bug fixes!

What's New

Apple Silicon support is here!

When using CMA on Apple Silicon you might notice some differences compared to running it on the X86 system.
Mainly, since MySQL image is not available with arm64 architecture, we are using MariaDB instead. MariaDB is a fork of MySQL and compatible with its API so there should be no problem.
Like everything new, not everything works with old software. Currently, containers might experience issues with networking, so if you get the message This site can’t be reached try to run the start command again, it should restart the containers and resolve the issue.

More about issues with containers on Apple Silicon available here.

Docs available here!

Magento 2.4.2 & 2.4.1-p1 support is here!

Now when running magento-scripts for the first time you will be given a prompt with all supported Magento versions.
Currently 3 are supported: 2.4.1, 2.4.1-p1, 2.4.2.
Magento 2.4.2 and 2.4.1-p1 requires a new dependency called libsodium. Prerequisites are already updated and CMA will also check if you need to install additional dependencies and install them right away!

More about supported Magento versions here!

magento-scripts will now also check for the Node.js version!

So you will get a proper error message on what to do with your out-of-date Node.js version.
The minimum required Node.js version is still 12.

link command will now also build theme if it is not built already.

No more "Template Magento_Theme::scandipwa_root.phtml "is not found" error after install! 0537807

Bug Fixes

  • Fixed a bug that prevents a user from choosing the desired port to run CMA on using the --port option. 352912d
  • Fixed updating the env.php file if your installed PHP version is not 7.4.13. 695644d
  • Fixed skipping updating app/etc/env.php file if it does not exist. 2403892
  • Fixed installation of prestissimo on non-default php version.

Miscellaneous

  • Bumped XDebug version to 3.0.4
  • After the start command successfully finished, added a note about the status command containing MySQL credentials, container status, and more detailed info about the project. 6562250
  • Nginx template has been updated to be up-to-date with a template from Magento repository. 14b02ed
  • Added composer configuration, so you can forcefully choose the composer version.
    Although, only version 1 and 2 is supported.
  • Added php.extensions hooks configuration to do some actions before and after extension installation.
    As an example, hooks are currently used to edit the /home/user/.phpbrew/php/php-<>/var/db/libsodium.ini file because when the libsodium extension is installed, it uses dynamic library called sodium.so instead of libsodium.so. PHP throws an error that it cannot load libsodium library because it does not exist. In the post-install hook, we edit this file to point to the correct library name so everything goes smoothly. 416d375