Skip to content

Commit 8870b59

Browse files
author
Alan Kent
committed
Simplified Mac installation by merging two commands.
1 parent 36dddeb commit 8870b59

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -169,25 +169,19 @@ utility.
169169
brew tap eugenmayer/dockersync
170170
brew install eugenmayer/dockersync/unox
171171

172-
For Mac, create a "profile" file in `~/.unison/m2devbox-{myproj}.prf` ({myproj}
173-
is the current directory name) by running the following command.
172+
Use the provided shell script to start up Unison. This shell script creates
173+
a Unison "profile" file in `~/.unison/m2devbox-{myproj}.prf` ({myproj}
174+
is the current directory name) then starts up Unison in file watching mode.
174175

175-
./m2unison-profile
176-
177-
To continuously synchronize files, run
178-
179-
unison -repeat watch m2devbox-{myproj}
176+
./m2unison.sh
180177

181178
It is recommended to run Unison in a separate Terminal window so you can refer
182179
to its output if you ever need to do troubleshooting. This is also useful when
183180
synchronizing a large number of files for the first time to know when the copy
184181
has completed.
185182

186-
If you ever restart the Docker containers, you may need to rerun
187-
`m2unison-profile` as the profile file containers the SSH port number used
188-
by the Unison container from the `docker-compose.yml` file. (Alternatively,
189-
use the `2223:22` syntax to lock down the SSH port number in
190-
`docker-composer.yml` so the port number does not change.)
183+
If you ever restart the Docker containers, you may need to rerun `m2unison.sh`
184+
to pick up any port number changes.
191185

192186
**Windows**
193187

@@ -199,6 +193,8 @@ line arguments. Close the window to kill Unison.
199193

200194
START m2unison.bat
201195

196+
Note: The shell script (`m2unison.sh`) is not intended for use on Windows.
197+
202198
## 5. Install Magento
203199

204200
Next you need to install your Magento project inside the web container under

m2unison-profile renamed to m2unison.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@ batch = true
6767
EOF
6868

6969
echo "Unison profile '$M2PROFILE' has been created in '~/.unison'."
70-
echo "Run 'unison -repeat watch $M2PROFILE' for file syncing mode."
7170

71+
echo "Now running 'unison -repeat watch $M2PROFILE' for file syncing mode."
72+
unison -repeat watch $M2PROFILE

0 commit comments

Comments
 (0)