abenzer / represent-map

Visualize your startup community on a custom Google map. Based on the code for http://represent.la
http://represent.la
357 stars 189 forks source link

Adding config/setup script for using Vagrant virtual machines for development. #61

Closed charlesthomas closed 3 years ago

charlesthomas commented 10 years ago

Instructions on how to use RepresentMap with Vagrant were added to the README.

harobed commented 10 years ago

+1

harobed commented 10 years ago

I don't see in Vagrantfile where do you share the represent-map source code in vagrant VM. It's a forget ?

charlesthomas commented 10 years ago

@harobed that happens automatically with Vagrant. The repo's root directory is mounted in the Vagrant VM as /vagrant. So represent-map/README.md in the git repo is /vagrant/README.md on the VM.

harobed commented 10 years ago

Are you sure ? Because I need to declare some thing like config.vm.synced_folder... (http://docs.vagrantup.com/v2/synced-folders/basic_usage.html)

charlesthomas commented 10 years ago

@harobed Using Debian-based Linux host OS, I don't have to do this. Are you using a different host OS (OS X or Windows)? Maybe that doesn't work in whatever OS you're using.

harobed commented 10 years ago

I don't understand, that don't work on Debian neither OSX.

charlesthomas commented 10 years ago

Maybe it's a version issue? I'm using Vagrant version 1.2.2

What happened the first time you did vagrant up? Did the setup_vm.sh script run at all? Because if it did, then the mount is happening as I expected. Are you also expecting the code to be somewhere else? For example, by default the code would need to be in /etc/apache2 somewhere, but I changed that with the way the apache config is handled in the setup_vm.sh script (or at least I thought I did; maybe I missed something in the script that I did manually).

Once you've done vagrant ssh what happens when you do ls /vagrant?