Answer the question
In order to leave comments, you need to log in
How to run laravel project on homestead?
I started to understand with laravel and immediately got stuck with the launch on homestead.
1) Installed virtualbox and vagrant
2) Created a vagrant homestead folder, pulled files from the git there and set the following settings
3) launched it with the vagrant up command, added the line 192.168.10.1 password-api.local to the hosts file
4) installed laravel via ssh and set the environment settings
But something went wrong and the browser does not open
And tell me if I want to deploy a new project, will I need to repeat all the steps except install virtualbox and vagrant (that is, from 2 to 4)?
Answer the question
In order to leave comments, you need to log in
Make the settings as follows:
- map: password-api.local
to: /home/vagrant/laravel/api-password/public
Then run - vagrant reload --provision
Connect via SSH to Vagrant, go to the /home/vagrant folder.
Write laravel new api-password - The api-password folder will be created and everything will be in it.
From Windows in the c: / projects folder you will see a folder. Well, you will see the address (if the host is configured correctly)
try password-api.local:8000 as vagrant forwards port from 80 on the guest machine to 8000 on the host machine,
reset vagrant-a vagrant -down, after immediately vagrant -up, in the same place in the console look at the forwarded ports
, you can start working without homestead, for this you can raise some kind of wamp or openServer and install laravel manually without virtual machine
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question