mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
vagrant: Ensure host's code path is set correctly
You can run `vagrant up` from any directory within a project--vagrant will look for a Vagrantfile in the current directory and if it doesn't find one walk up one directory, and repeat until it finds a Vagrantfile. Previously the `code_share_host_path` was set assuming that `vagrant up` would always be run from the root reddit directory. Now it is set from the fixed known location of the Vagrantfile.
This commit is contained in:
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@@ -48,7 +48,9 @@
|
||||
vagrant_user = "vagrant"
|
||||
|
||||
# code directories
|
||||
code_share_host_path = "../"
|
||||
this_path = File.absolute_path(__FILE__)
|
||||
reddit_dir = File.expand_path("..", this_path)
|
||||
code_share_host_path = File.expand_path("..", reddit_dir)
|
||||
code_share_guest_path = "/media/reddit_code"
|
||||
plugins = ["meatspace", "about", "liveupdate", "adzerk", "donate", "gold"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user