Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit 40b6a39

Browse files
author
Alexander Paliarush
committed
Added host wrapper script for bin/magento on the guest
1 parent bfbfe12 commit 40b6a39

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
99

1010
## [Unreleased]
1111

12-
Nothing yet
12+
- Added host wrapper script for bin/magento command on guest
1313

1414
## [v2.0.0] - 2016-02-05
1515

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* [Clear magento cache](#clear-magento-cache)
1717
* [Update composer dependencies](#update-composer-dependencies)
1818
* [Switch between CE and EE](#switch-between-ce-and-ee)
19+
* [Use Magento CLI (bin/magento)](#use-magento-cli-binmagento)
1920
* [Debugging with XDebug](#debugging-with-xdebug)
2021
* [Multiple Magento instances](#multiple-magento-instances)
2122

@@ -169,6 +170,16 @@ OR
169170
bash m-composer update
170171
```
171172

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+
172183
### Debugging with XDebug
173184

174185
XDebug is already configured to connect to the host machine automatically. So just:

m-bin-magento

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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"

0 commit comments

Comments
 (0)