Closed althe3rd closed 10 years ago
Yeopress does not modify your hosts file. Usually I use localhost:8080 or something like that when running with Vagrant, but you can totally setup a hosts entry, it is just up to you to add that.
I suppose I was confused then. What part does setting the domain name (at the start of the yo script) do in relation to using the vagrant option farther down the options list?
Is it assumed I should be manually adding something like hostmanager to vagrant to tie the hostname to the install? Or add the hosts entry manually pointing towards the vagrant vm?
Just want to make sure I am understanding this correctly. When watching the demo youtube video listed in the readme of the repo it shows you pointing towards a hostname rather than just "localhost:8080" so I during that video I assume you manually added it prior to starting the yo script. Is that correct?
Yes, I manually added an entry to my host file. The hostname is used in the wordpress configuration I think. Actually, it might only use the port now, it was originally used for the custom directory configuration. I might be able to remove or change that now that I look at it.
Thanks for the clarification. I am really impressed with yeopress overall. More specifically I am searching for as much of a one button solution to getting someone setup with a wordpress multisite installation with a few preconfigured items such as initializing a git repo and setting up grunt watch for sass/js. Is this something you think yeopress could do with some configuration adjustments?
Just thought I would ask. Keep up the great work!
Thanks @althe3rd! I do not currently have any support for multi-site, mostly because I have never actually used it. If you are interested in outlining what it would take to enable multi-site then I would love to take a look at integrating it. It should totally be possible without much work I would think.
For a "one button" solution, you should look at using the .yeopress
file to set your re-used configuration, which should enable to to hit enter right through the prompts. But yeopress already has the rest of your needs covered.
Thanks for the tip on the .yeopress file. I'll have to give that a shot.
Regarding Wordpress multisite, the key differences between a normal wordpress install and a multisite (subdomain or subdirectory configurations) are changes to .htaccess (mod rewrite rules), wp-config.php (5 'defines' for multisite settings added below the "happy blogging..." line), and sql changes that place the primary blog under the normal wp_ prefix and all other subsequent blogs under a numbered prefix (wp2). The db change is generally handled automatically by the install process of wordpress so unless you want to use some custom sql that wouldn't need to be handled by yeopress.
The only other critical thing to note about multisite is that it won't run on anything other than port 80, unlike the single install which can run on any specified port.
If its something you would like eventually folded into yeopress I can outline in more detail what would need to change in the wordpress config. And if I can learn more about yeo, maybe even figure it out myself and contribute that to the repo.
Sounds good @althe3rd, can you open up another issue outlining the details of enabling multisite. Then if you want to try it out you can make a pull request, great, otherwise I can take a look at it when I have time.
Going through the setup using the "--advanced" flag I am defining that I want to use vagrant. Upon successful completion, and ensuring vagrant is already running successfully I still can't get to the wordpress install. Upon investigating my Mac's hosts file I don't find any entries based on the url I specified in the preliminary yo setup.
If I am doing something incorrect please advise me on what I should be changing. All other yo wordpress settings are at defaults.