Skip to content

Commit f8489f3

Browse files
author
Alan Kent
committed
Moved complex topic to end of page.
1 parent e2d000c commit f8489f3

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

README.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,6 @@ If you have an existing project with all the source code already under
155155
mounting, the code will automatically be visible; if you use Unison, it will
156156
copy files on your laptop into the web container when Unison is started.
157157

158-
Note: This case includes if you decide to change the settings in
159-
`docker-composer.yml` after the containers have been created. You will need to
160-
remove the current containers and recreate them (including the database
161-
contents). MAKE SURE THE SOURCE CODE IS UP TO DATE UNDER THE `shared/www`
162-
DIRECTORY BEFORE DELETING THE CONTAINERS TO MAKE SURE YOU DO NOT ACCIDENTALLY
163-
LOSE ANY OF YOUR WORK.
164-
165-
docker-compose kill
166-
docker-compose rm
167-
# Make changes to docker-compose.yml
168-
docker-compose up -d
169-
170158
**Creating a New Project with Composer**
171159

172160
Log into the web container.
@@ -176,9 +164,7 @@ Log into the web container.
176164
Create a new project under `/var/www/magento2`. (Update the project version
177165
number as appropriate.)
178166

179-
cd /var/www
180-
mkdir magento2
181-
cd magento2
167+
cd /var/www/magento2
182168
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition:2.1.8 .
183169
chmod +x bin/magento
184170

@@ -393,6 +379,17 @@ remove the locally synchronized files under the `shared` directory.
393379
docker-compose kill
394380
docker-compose rm
395381

382+
If you decide to change the settings in `docker-composer.yml` after the
383+
containers have been created, you will need to remove the current containers
384+
and recreate them (including the database contents). MAKE SURE THE SOURCE CODE
385+
IS UP TO DATE UNDER THE `shared/www` DIRECTORY BEFORE DELETING THE CONTAINERS
386+
TO MAKE SURE YOU DO NOT ACCIDENTALLY LOSE ANY OF YOUR WORK.
387+
388+
docker-compose kill
389+
docker-compose rm
390+
# Make changes to docker-compose.yml
391+
docker-compose up -d
392+
396393
## Kitematic
397394

398395
If you like GUIs, you may wish to install Kitematic from the Docker site as

0 commit comments

Comments
 (0)