Revision #59 was created by rackycz on Mar 9, 2021, 11:03:50 AM.
Vagrant
Content
[...]
**Running Yii project in Vagrant. (Simplified version)**
---
*Info: This chapter works with PHP 7.0 in ScotchBox. If you need PHP 7.4, read next chapter where CognacBox is used (to be added when tested)*
Important: If command "vagrant ssh" wants a password, enter "vagrant".
- Do you want your colleague-developers to use identical environment like you have?
- Or do you want to easily setup whole server after you reinstalled your computer?
[...]
Once virtual is running, you can call also these:
- "vagrant ssh" opens Linux shell - use password "vagrant" is you are prompted.
- "vagrant halt" stops the virtual
- "vagrant reload" restarts the virtual and does NOT run config.vm.provision OR STARTS EXISTING VAGRANT VIRTUAL - you do not have to call "vagrant up" whenever you reboot your PC
- "vagrant reload --provision" restarts the virtual and runs config.vm.provision
In the Linux shell you can call any command you want.