I have to use a Java library that has a lot of bugs on Mac OS X and I can't stop using it. I set up a VM (Ubuntu 13) and set up my development environment there, and that works. But is it possible to be able to keep developing on Mac and set-up IntelliJ IDEA 13.1 to compile -> run my project in a Vagrant environment? I could not find any tutorials with how to do that, and not even sure if that's possible.
you can continue working on mac/intelliJ to edit and compile your project files, to run it, it will depend what you are using.
Lets say you run your project on mac under /Users/name/project/myproject
this project is setup on intelliJ so you can run from intelliJ and compile from there. add this to your Vagrantfile
config.vm.synced_folder "/Users/name/project/myproject", "/project"
It will create a /project
directory in your vm.
Tomcat remote
Run configuration in IntelliJ so if you configure your vm information, it can manage your remote Tomcat installed on your vm. Synchronize your project folder with your Tomcat Webapps (sync_folder or symlink) and it should work. If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With