-
-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate list of hosted development sites after vagrant up
#1521
base: master
Are you sure you want to change the base?
Conversation
lib/trellis/vagrant.rb
Outdated
sites = YAML.load_file(File.join(ANSIBLE_PATH, 'group_vars/development/wordpress_sites.yml')) | ||
wordpress_sites = sites['wordpress_sites'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already available as trellis_config.wordpress_sites
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trellis_config
wasn't available so I loaded it the same way the Vagrantfile does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you actually get an error? This method is only used in the Vagrantfile
which has trellis_config
in scope.
If for some reason it doesn't work, you should change the post_up_message
method to accept an trellis_config
argument so it can be passed in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did! Corrected per your suggestion.
No description provided.