This repository was archived by the owner on Oct 1, 2020. It is now read-only.
File tree 3 files changed +22
-1
lines changed
3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
9
9
10
10
## [ Unreleased]
11
11
12
- Nothing yet
12
+ - Added host wrapper script for bin/magento command on guest
13
13
14
14
## [ v2.0.0] - 2016-02-05
15
15
Original file line number Diff line number Diff line change 16
16
* [ Clear magento cache] ( #clear-magento-cache )
17
17
* [ Update composer dependencies] ( #update-composer-dependencies )
18
18
* [ Switch between CE and EE] ( #switch-between-ce-and-ee )
19
+ * [ Use Magento CLI (bin/magento)] ( #use-magento-cli-binmagento )
19
20
* [ Debugging with XDebug] ( #debugging-with-xdebug )
20
21
* [ Multiple Magento instances] ( #multiple-magento-instances )
21
22
169
170
bash m-composer update
170
171
```
171
172
173
+ ### Use Magento CLI (bin/magento)
174
+
175
+ Go to 'vagrant-magento' created earlier and run in command line:
176
+
177
+ ```
178
+ bash m-bin-magento <command_name>
179
+ e.g.
180
+ bash m-bin-magento list
181
+ ```
182
+
172
183
### Debugging with XDebug
173
184
174
185
XDebug is already configured to connect to the host machine automatically. So just:
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ vagrant_dir=$( cd " $( dirname " $0 " ) " ; pwd)
4
+
5
+ # Enable trace printing and exit on the first error
6
+ set -ex
7
+
8
+ arguments=$@
9
+ cd ${vagrant_dir}
10
+ vagrant ssh -c " \$ MAGENTO_ROOT/bin/magento $arguments "
You can’t perform that action at this time.
0 commit comments