File tree 5 files changed +10
-6
lines changed
5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,12 @@ services:
60
60
# (Use "8080:80" for force external port to be 8080.)
61
61
- " 80"
62
62
63
- # Pick a random SSH port.
64
- - " 22"
63
+ # Use port 2222 for SSH (make sure unique across projects).
64
+ # (If using the PHP Storm IDE, It is strongly recommended to pick a
65
+ # dedicated port using the "2222:22" syntax so the port number does
66
+ # not change each time the container is restarted, requiring PHP
67
+ # Storm reconfiguration.)
68
+ - " 2222:22"
65
69
66
70
# Pick a random unused unison port.
67
71
# (Only needed if using Unison for file syncing.)
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ SSH_HOST=$(docker-compose port web 22 | awk -F: '{
15
15
16
16
SSH_PORT=$( docker-compose port web 22 | awk -F: ' {print $2}' )
17
17
18
- exec ssh -p ${SSH_PORT} magento2@${SSH_HOST} $*
18
+ exec ssh -o LogLevel=error -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null - p ${SSH_PORT} magento2@${SSH_HOST} $*
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ FOR /f "delims=" %%A IN ('docker-compose port web 22') DO SET "CMD_OUTPUT=%%A"
5
5
FOR /f " tokens=1,* delims=:" %%A IN (" %CMD_OUTPUT% " ) DO SET " SSH_PORT = %%B "
6
6
7
7
REM Run SSH
8
- ssh -p %SSH_PORT% magento2@ localhost %*
8
+ ssh -o LogLevel=error -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null - p %SSH_PORT% magento2@ localhost %*
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ IGNORE="$IGNORE -ignore 'Path magento2/.git'"
37
37
IGNORE=" $IGNORE -ignore 'Path magento2/.gitignore'"
38
38
IGNORE=" $IGNORE -ignore 'Path magento2/.gitattributes'"
39
39
IGNORE=" $IGNORE -ignore 'Path magento2/.magento'"
40
- IGNORE=" $IGNORE -ignore 'Path magento2/ .idea'"
40
+ IGNORE=" $IGNORE -ignore 'Name { .idea} '"
41
41
IGNORE=" $IGNORE -ignore 'Name {.*.swp}'"
42
42
IGNORE=" $IGNORE -ignore 'Name {.unison.*}'"
43
43
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ REM Other files not worth pushing to the container.
42
42
@ SET IGNORE = %IGNORE% -ignore " Path magento2/.gitignore"
43
43
@ SET IGNORE = %IGNORE% -ignore " Path magento2/.gitattributes"
44
44
@ SET IGNORE = %IGNORE% -ignore " Path magento2/.magento"
45
- @ SET IGNORE = %IGNORE% -ignore " Path magento2/ .idea"
45
+ @ SET IGNORE = %IGNORE% -ignore " Name { .idea} "
46
46
@ SET IGNORE = %IGNORE% -ignore " Name {.*.swp}"
47
47
@ SET IGNORE = %IGNORE% -ignore " Name {.unison.*}"
48
48
You can’t perform that action at this time.
0 commit comments