Skip to content

Commit

Permalink
Merge pull request #56 from paliarush/2.1.0
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
paliarush authored Jun 22, 2016
2 parents e3546cb + bbf0850 commit e0e03b9
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 20 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

* [\[Unreleased\]](#unreleased)
* [\[v2.1.0\] - 2016-06-22](#v210---2016-06-22)
* [\[v2.0.0\] - 2016-02-05](#v200---2016-02-05)
* [\[v1.0.0\] - 2016-01-11](#v100---2016-01-11)

## [Unreleased]

### Changed

### Fixed

### Added

## [v2.1.0] - 2016-06-22

### Changed

- Removed requirement for public github token due to Composer limitations (issue is fixed on Composer side)
Expand Down
42 changes: 23 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* [Installation steps](#installation-steps)
* [Default credentials and settings](#default-credentials-and-settings)
* [Getting updates and fixes](#getting-updates-and-fixes)
* [Troubleshooting](#troubleshooting)
* [Day-to-day development scenarios](#day-to-day-development-scenarios)
* [Reinstall Magento](#reinstall-magento)
* [Clear Magento cache](#clear-magento-cache)
Expand All @@ -21,10 +20,12 @@
* [Connecting to MySQL DB](#connecting-to-mysql-db)
* [View emails sent by Magento](#view-emails-sent-by-magento)
* [Accessing PHP and other config files](#accessing-php-and-other-config-files)
* [Multiple Magento instances](#multiple-magento-instances)
* [Environment configuration](#environment-configuration)
* [Switch between PHP 5.6 and 7.0](#switch-between-php-56-and-70)
* [Activating Varnish](#activating-varnish)
* [Multiple Magento instances](#multiple-magento-instances)
* [Reset environment](#reset-environment)
* [FAQ](#faq)

## What You get

Expand All @@ -39,7 +40,7 @@ It is easy to [install multiple Magento instances](#multiple-magento-instances)
[Project initialization script](init_project.sh) configures complete development environment:

1. Adds some missing software on the host
1. Configures all software necessary for Magento 2 using [custom Ubuntu vagrant box](https://atlas.hashicorp.com/paliarush/boxes/magento2.ubuntu) (Apache 2.4, PHP 7.0 (or 5.5.9), MySQL 5.6, Git, Composer, XDebug, Rabbit MQ, Varnish)
1. Configures all software necessary for Magento 2 using [custom Ubuntu vagrant box](https://atlas.hashicorp.com/paliarush/boxes/magento2.ubuntu) (Apache 2.4, PHP 7.0 (or 5.6), MySQL 5.6, Git, Composer, XDebug, Rabbit MQ, Varnish)
1. Installs Magento 2
1. Configures PHP Storm project (partially at the moment)

Expand Down Expand Up @@ -68,7 +69,7 @@ Software listed below should be available in [PATH](https://en.wikipedia.org/wik

### Installation steps

:information_source: In case of any issues during installation, please read [troubleshooting section](#troubleshooting)
:information_source: In case of any issues during installation, please read [FAQ section](#faq)

1. Open terminal and change directory to the one which you want to contain Magento project. ![](docs/images/windows-icon.png) On Windows use Git Bash, which is available after Git installation

Expand Down Expand Up @@ -129,16 +130,6 @@ Current vagrant project follows [semantic versioning](http://semver.org/spec/v2.
For example your current branch is `2.0`, then it will be safe to pull any changes from `origin/2.0`. However branch `3.0` will contain changes backward incompatible with `2.0`.
Note, that semantic versioning is only used for `x.0` branches (not for `develop`).

### Troubleshooting

1. ![](docs/images/linux-icon.png)![](docs/images/osx-icon.png) On OSX and \*nix hosts NFS will be used by default to sync your project files with guest. On some hosts Vagrant cannot configure NFS properly, in this case it is possible to deploy project without NFS by setting `use_nfs` option in [config.yaml](etc/config.yaml.dist) to `0` <br />
1. ![](docs/images/windows-icon.png) On Windows hosts you might face `Composer Install Error: ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (260)` exception during `composer install`. This can be fixed in 2 ways: decrease path length to the project directory or set `composer_prefer_source` option in [config.yaml](etc/config.yaml.dist) to `1`
1. Make sure that you used `vagrant-magento` directory as project root in PHP Storm (not `vagrant-magento/magento2ce`)
1. If project opened in PhpStorm looks broken, close PhpStorm and remove `vagrant-magento/.idea`. After opening project in PhpStorm again everything should look good
1. If code is not synchronized properly on Windows hosts (or when NFS mode is disabled in [config.yaml](etc/config.yaml.dist) explicitly), make sure that PhpStorm is running before making any changes in the code. This is important because otherwise PhpStorm will not be able to detect changes and upload them to the guest machine
1. Please make sure that currently installed software, specified in [requirements section](#requirements), meets minimum version requirement
1. If MySQL fails to start and Magento reinstallation fails with `ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)`, try to run login to virtual machine using `vagrant ssh` and then run `sudo dpkg-reconfigure mysql-server-5.6`, then `sudo service mysql restart.`

## Day-to-day development scenarios

### Reinstall Magento
Expand Down Expand Up @@ -230,6 +221,13 @@ Do not edit any symlinks using PhpStorm because it may break your installation.

After editing configs in IDE it is still required to restart related services manually.

### Multiple Magento instances

To install several Magento instances based on different code bases, just follow [Installation steps](#installation-steps) to initialize project in another directory on the host.
Unique IP address, SSH port and domain name will be generated for each new instance if not specified manually in `etc/config.yaml`

## Environment configuration

### Switch between PHP 5.6 and 7.0

Set "use_php7: 1" for PHP7 and "use_php7: 0" for PHP5.6 in [config.yaml](etc/config.yaml.dist).
Expand All @@ -244,11 +242,6 @@ Varnish Version: 3.0.5

Note: command m-varnish with arguments disable or enable is also available in guest or host to enable or disable varnish without reloading machine.

### Multiple Magento instances

To install several Magento instances based on different code bases, just follow [Installation steps](#installation-steps) to initialize project in another directory on the host.
Unique IP address, SSH port and domain name will be generated for each new instance if not specified manually in `etc/config.yaml`

### Reset environment

It is possible to reset project environment to default state, which you usually get just after project initialization. The following command will delete vagrant box and vagrant project settings. After that it will initialize project from scratch. Magento 2 code base (`magento2ce` directory) and [etc/config.yaml](etc/config.yaml.dist) and PhpStorm settings will stay untouched, but guest config files (located in [etc/guest](etc/guest)) will be cleared.
Expand Down Expand Up @@ -276,3 +269,14 @@ Ultimate project reset can be achieved by combining all available flags:
```
bash init_project.sh -fcp
```

### FAQ

1. Is Windows 10 supported? Yes, but you may face the same issue as described [here](https://github.com/paliarush/magento2-vagrant-for-developers/issues/36)
1. ![](docs/images/linux-icon.png)![](docs/images/osx-icon.png) On OSX and \*nix hosts NFS will be used by default to sync your project files with guest. On some hosts Vagrant cannot configure NFS properly, in this case it is possible to deploy project without NFS by setting `use_nfs` option in [config.yaml](etc/config.yaml.dist) to `0` <br />
1. ![](docs/images/windows-icon.png) On Windows hosts you might face `Composer Install Error: ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (260)` exception during `composer install`. This can be fixed in 2 ways: decrease path length to the project directory or set `composer_prefer_source` option in [config.yaml](etc/config.yaml.dist) to `1`
1. Make sure that you used `vagrant-magento` directory as project root in PHP Storm (not `vagrant-magento/magento2ce`)
1. If project opened in PhpStorm looks broken, close PhpStorm and remove `vagrant-magento/.idea`. After opening project in PhpStorm again everything should look good
1. If code is not synchronized properly on Windows hosts (or when NFS mode is disabled in [config.yaml](etc/config.yaml.dist) explicitly), make sure that PhpStorm is running before making any changes in the code. This is important because otherwise PhpStorm will not be able to detect changes and upload them to the guest machine
1. Please make sure that currently installed software, specified in [requirements section](#requirements), meets minimum version requirement
1. If MySQL fails to start and Magento reinstallation fails with `ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)`, try to run login to virtual machine using `vagrant ssh` and then run `sudo dpkg-reconfigure mysql-server-5.6`, then `sudo service mysql restart.`
Binary file modified docs/images/release_badge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/release_badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e0e03b9

Please sign in to comment.