Skip to content

Conversation

@mradcliffe
Copy link

I was helping someone out who was trying to do homestead up without Composer.

If I look at the code in the ./homestead file I see that there is no possible way that Option 1 can work because the vendor and autoloader would not exist, and the homestead script requires an autoloader. The ./scripts/init.sh script does not provide these files either. I looked in ./scripts/homestead.rb, and did not find anything relevant there either. I assume that there is no way to install Homestead without Composer, and I think it would be best to remove this from the documentation in order to improve the experience of new Homestead users.

I'm not familiar with Laravel or Homestead, and so I may be missing some bit of code or Vagrant logic where this magically works, but from this laracast it seems that Option 1 is discouraged and not supported.

@taylorotwell
Copy link
Member

It certainly does work because that's the way I use Homestead.

@adfaklsdjf
Copy link

Here's the problem.. the documentation later says to use "homestead up" to start up the VM, but this doesn't work because the "homestead" command requires composer.. Option #1 implies that you can complete the rest of the steps without php and composer installed.

From my perspective, this meant that Option #1 doesn't work.. but another developer on our team, Eric Katz, told us that you can use "vagrant up" instead of "homestead up". I'd considered that possibility, but I noticed that earlier in the documentation it says you can use "homestead provision" or "vagrant provision".. and in this instance it didn't mention using "vagrant up", which seemed to me to imply that "homestead up" was necessary.

The doc could simply be modified to say "or use 'vagrant up' if you followed option #1 above". As it stands now, if you take option #1 because you don't have a full php stack running in your local environment.. following the rest of the instructions leaves you at a dead end at "homestead up" unless you know to use "vagrant up" instead.

Eric feels it would be easiest to understand if the rest of the document were split into option #1 and option #2.. but barring that, I really think it should say to use "vagrant up" if you don't have a full local php dev environment set up.

@adfaklsdjf
Copy link

You can observe another user running into numerous issues because he doesn't have a full php dev environment set up in his local environment, and being treated like an idiot by the responders because he doesn't, here: https://laracasts.com/discuss/channels/general-discussion/step-by-step-setup-guide-for-homestead-on-os-x

The people in the thread scoff at him for not having composer already set up and ultimately make him set up brew and composer on his local environment so he can finally run the "homestead up" command successfully. The implication seems to be that if you don't have a full php dev environment, you're not cut out to use homestead or laravel. It makes it look like Option #1 isn't really an option.

@mradcliffe mradcliffe deleted the homestead-non-composer-option-docs branch April 25, 2015 22:54
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.

3 participants