|
@@ -74,7 +74,7 @@ git init
|
|
|
## Setup a New Magento 2 Project in Windows
|
|
|
|
|
|
1. Setup a new project using the Magento 2 compose skeleton:
|
|
|
-
|
|
|
+(Run this with a bash-like terminal)
|
|
|
```
|
|
|
mkdir magento2 && cd $_
|
|
|
git init
|
|
@@ -86,6 +86,8 @@ rm -rf compose .git
|
|
|
git init
|
|
|
```
|
|
|
|
|
|
+(The following scripts are meant to run with Powershell. Note that the execution policy for scripts needs to be set accordingly [Execution policy](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-executionpolicy?view=powershell-6))
|
|
|
+
|
|
|
2. Download the Magento source code to the `src` folder with: `./bin/download 2.2.2`. Note that the default untar command is quite slow. If you want to speed that up install [7-Zip](http://www.7-zip.org/) and add it to your PATH. The script will automatically use 7-Zip if it is available.
|
|
|
|
|
|
3. Copy magento into the docker container with `./bin/copymagento`. This is needed because of permission restrictions of shared data in Windows (see [Troubleshooting Docker](https://docs.docker.com/docker-for-windows/troubleshoot/#permissions-errors-on-data-directories-for-shared-volumes)). The folders `app/code`, `app/design` and `app/i18n` will however be shared with Windows for ease of development. For these folders the default permission 755 works just fine.
|