Skip to content

Instantly share code, notes, and snippets.

@dharma017
Created September 13, 2015 11:42
Show Gist options
  • Select an option

  • Save dharma017/5f76e4b00c24e2d89399 to your computer and use it in GitHub Desktop.

Select an option

Save dharma017/5f76e4b00c24e2d89399 to your computer and use it in GitHub Desktop.
Vagrant Ionic Box Installation

Ionic Box Installation

https://github.com/driftyco/ionic-box http://www.sitepoint.com/ionic-box-vagrant-configuration-hybrid-mobile-apps/

Run Android emulator in Ionic Vigrant by solving Cannot run emulator / no ABIs

a) Start the Genymotion device

b) From genyshell, do devices list to get the IP address of the device attached

./genyshell -c "devices list"

c) Inside vagrant, do adb connect 192.168.56.101 (whatever IP address) and adb devices

Finally ionic run android

To access files in vagrant (guest system) from your Mac/Linux (host system) you can uncomment the following line with config.vm.synced_folder in Vagrantfile:

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"

After un-commenting it, you can set the folders for host and guest to what you want, and they will be shared.

References

https://github.com/driftyco/ionic-box/issues/22 http://forum.ionicframework.com/t/run-android-emulator-in-ionic-vigrant/9102/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment