3
Vote

Enable Vagrant integration

description

Our team uses PyCharm + Vagrant to develop Django apps, and - while I've been successful so far using PTVS + virtualenv - I'm seeing the benefit of using Vagrant, and would like to be able to attach to it from PTVS.

comments

Ptools wrote Jul 30, 2014 at 7:04 PM

dizzyguy - can you provide some details on how you guys use vagrant & how you'd like it to work ideally? thx.

dizzyguy wrote Jul 31, 2014 at 4:28 PM

Happy to. First of all, our source code and vagrant config files are up on bitbucket, and we use Git for source control. The team uses PyCharm to pull all files down to develop locally. (of course, I can do the same using PTVS.)

50% of our production servers are linux-based, so 50% of our apps will be pushed to ubuntu servers. that's where vagrant comes in handy, because i can download a 'vagrantfile' from bitbucket, fire up the ubuntu server, and code directly against it.

In PyCharm, that works by installing the vagrant plugin. Once it is installed, and vagrant is up-and-running (I have it working on win 7 and 8.1), I can choose any vagrant instance I want as my remote interpreter.

From there, it is as simple as hitting run-and-debug. The code I have runs against the ubuntu server i have running in vagrant. Now i know that whatever i have running locally, will run remotely as well.

I have been developing everything on PTVS using a virtualenv, but the day will come when I might require some ubuntu specific library in order to develop locally. That's the day that PTVS and virtualenv will let me down.

I've otherwise been VERY happy with PTVS, however, integration with vagrant is becoming a major requirement, given the direction our organization is going.

I hope that helps...

Ptools wrote Jul 31, 2014 at 10:09 PM

thanks for the write up - yes, it definitely helps. it's a perfectly reasonable request. we'll discuss this internally & get back.

dizzyguy wrote Aug 1, 2014 at 1:05 AM

I'd be happy to help you test. thx

dizzyguy wrote Sep 30, 2014 at 2:35 PM

fyi...we are going start evaluating Docker (www.docker.com), as a possible evolution from Vagrant. It would be great to see PTVS support both.

haoxian wrote Dec 17, 2014 at 7:36 PM

I think vagrant is perfect for development (while docker emphasize on immutable container deployment) so I think supporting vagrant should be considered as higher priority? also, having this support will make mass impact by attracting a lot of developer build software for linux server (like me and my colleagues - around 20 people)

dizzyguy wrote Feb 5 at 4:29 PM

I agree with haoxian. We discussed using docker, but Vagrant continues to satisfy our needs. I'm becoming more comfortable with PyCharm, and find it to be an excellent IDE for python development. I'm going to be interested to see what the next version of PTVS is going to offer, but lack of Vagrant support has forced me to switch for now.