Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

MWDelaney
Copy link
Member

No description provided.

Comment on lines 82 to 83
sites = YAML.load_file(File.join(ANSIBLE_PATH, 'group_vars/development/wordpress_sites.yml'))
wordpress_sites = sites['wordpress_sites']
Copy link
Member

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

Copy link
Member Author

@MWDelaney MWDelaney Aug 28, 2024

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.

Copy link
Member

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.

Copy link
Member Author

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.

lib/trellis/vagrant.rb Outdated Show resolved Hide resolved
lib/trellis/vagrant.rb Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants