Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Add a new site - apply changes in config.yml #860

Closed
K3vinF opened this issue Aug 11, 2016 · 4 comments
Closed

Add a new site - apply changes in config.yml #860

K3vinF opened this issue Aug 11, 2016 · 4 comments
Labels

Comments

@K3vinF
Copy link

K3vinF commented Aug 11, 2016

I usually have multiple sites running inside a single instance.
When I add a new site, I add new entry to vagrant_synced_folders and a new entry to apache_vhosts in the config.yml file.
To get the new changes to apply I aways run a 'vagrant halt' and 'vagrant provision' command. But this feels like a bit overkill.
Is there an easier way to get the changes to apply?

@thom8
Copy link
Collaborator

thom8 commented Aug 11, 2016

You can run vagrant reload --provision but it's effectively the same.

A reload is required to setup the new synced folders & a provision is required to set the new vhosts.

@geerlingguy
Copy link
Owner

@thom8 is correct; you have to reload Vagrant to get synced folders working. If it's just a vhosts change/addition, you can just run vagrant --provision on a running instance.

Someday, I may have a faster method for certain kinds of config changes, but for now it does a full provision any time you want to change anything.

@K3vinF
Copy link
Author

K3vinF commented Aug 15, 2016

Thanks for the help! It felt a little heavy to do a provision, but good to know that it is actually needed for the changes to apply.

@thom8
Copy link
Collaborator

thom8 commented Aug 15, 2016

@geerlingguy we're working on a similar issue atm, it's mainly to support a new docker build but might provide some useful functionality to target specific roles/tasks.

beetboxvm/beetbox#298
beetboxvm/beetbox#308

Still a WIP but will look out to push anything useful upstream.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants