problems understanding workflow and set up of vagrant and laravel homestead -


up till i've used wamp server , thought i'd give laravel homestead try it's meant easier!

i'm having problems getting set right , i'm confused i'm doing , should doing them.

i've got vagrant , virtual box installed , set up. windows 7

normally have local files in same location server wamp/www created new folder in location c:/vagrant place development files.

from cli within directory followed instructions on laravel site (and others), added homestead box using command:

'vagrant box add laravel/homestead' 

it goes through install process.

i used git clone https://github.com/laravel/homestead.git homestead' clone homestead repository. created clone expected inc:/vagrant`

i ran homestead init in theory creates yaml configuration file. first problem couldnt find check configuration.

researching further discovered maybe should installing root of user profile. ie c:/users/me rather root of system (excuse lack of technical knowledge)

so - few questions: 1. should running commands? folder created or in user profile? 2. once installed (if far) should place local development files?

i think understand development files synced virtual machine (set in config file)

sorry, new approach , not yet getting head around i'm trying do

thanks

are using cygwin? should run commands inside homestead folder created after homestead init. configuration or mapping of folders in homestead.yaml. located in home directory. in case in created .homestead folder. i'm using cygwin btw. there lot of youtube tutorials help. that's learn how set homestead environment.

update

i assumed have installed vagrant , virtual box. you've downloaded homestead box. running command.

vagrant box add laravel/homestead 

you'll know you've download box when see on list when running command.

vagrant box list 

the output this.

$ vagrant box list laravel/homestead (virtualbox, 0.2.5) lucid32           (virtualbox, 0) 

then need download homestead configuration command.

git clone https://github.com/laravel/homestead.git homestead 

if in /directory/projects. you'll have

/directory/projects/homestead 

after downloading configuration. need run command inside homestead folder.

bash init.sh 

it create hidden homestead folder in home directory. inside .homestead directory you'll find homestead.yaml

~/.homestead/homeastead.yaml  

your homestead.yaml file this.

ip: "192.168.1.1" memory: 2048 cpus: 1 provider: virtualbox 

// need create key authorize: ~/.homestead/publickey.pub

keys:     - ~/.homestead/keys  folders:     - map: d:\projects\folder -- in local machine       to: /var/www  -- map folder in virtual machine  sites:     - map: myproject.app   --the domain you'll use access project in local machine       to: /var/www/testproject/public   --the public folder.  

//folders declare base folder. //site register application.

hope make sense you. ignore rest of configuration inside homestead.yaml file.

lastly need edit hosts file. add line.

127.0.0.1      myproject.app 

you can access app in browser on port 8000.

myproject.app:8000 

then after you've setup everything. go homestead folder.

`/directory/projects/homestead` 

and run

vagrant 

to start machine.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -