You are reading the blog of Skanatek, a navigation-focused company.

Vagrant development environment: a basic workflow for developer

September 02, 2014

Reading time ~1 minute

Most probably you already know how to set up your machine to run Vagrant and a virtual development environment.

However, it’s not that clear what the workflow should be after you set it up.

Here it is a workflow that we use for our projects:

Vagrant development environment: a basic workflow for developer diagram
This is how you develop with a Vagrant-enabled virtual development environment

In other words, to properly use the Vagrant development environment, you should do the following:

  1. Install and set up Vagrant on your machine
  2. Tell Vagrant to copy your source code file to a guest OS by setting up synced folders in your Vagrantfile
  3. Run a guest OS: vagrant up virtual_os_name
  4. ssh into the guest OS: vagrant ssh virtual_os_name
  5. cd into the synced folder on the guest OS
  6. Compile/run your code from within the synced folder on the guest OS (instead of doing that locally on your development machine as you are used to)
  7. Fix/modify your code on your development machine with your favourite text editor or IDE as usual (any changes you do to your local source files will be synced to the guest OS immediately)
  8. Repeat 6 and 7 if necessary.

Happy coding!

Do you think you can agree with the gist of this article? Or maybe you have a different opinion on this? Then maybe you are the right person to join our team to work on original and interesting projects!

Thanks for reading the blog of Skanatek, a navigation-focused company.

Why making mistakes at work is good for you

Although Salman Khan describes his son in the article, this is absolutely applicable to team members in a company. We continuously observ...… Continue reading