homestead

Laravel Homestead vhost configuration

北战南征 提交于 2019-12-01 04:04:46
I am using Laravel homestead. For a project I need a special vhost configuration, where should I define this? You add a new folder mapping into the "sites" block of Homestead.yml, like so: - map: myapp.com to: /home/vagrant/Code/myapp/public That's all there is to adding a new vhost. To modify it, edit the appropriate file in /etc/nginx/sites-available . In the above case, this would be /etc/nginx/sites-available/myapp.com See here for example customization of a newly added vhost. Note that the quick tip linked here uses Homestead Improved, a slightly enhanced version of Homestead, as

Laravel Homestead vhost configuration

拜拜、爱过 提交于 2019-12-01 02:20:51
问题 I am using Laravel homestead. For a project I need a special vhost configuration, where should I define this? 回答1: You add a new folder mapping into the "sites" block of Homestead.yml, like so: - map: myapp.com to: /home/vagrant/Code/myapp/public That's all there is to adding a new vhost. To modify it, edit the appropriate file in /etc/nginx/sites-available . In the above case, this would be /etc/nginx/sites-available/myapp.com See here for example customization of a newly added vhost. Note

Vagrant up error, changing ownership of /vagrant: not a directory

扶醉桌前 提交于 2019-11-30 15:12:29
问题 I'm running Windows 8.1 64-bit on a laptop. I've been following this guide to try an setup a homestead for my Laravel projects: laravel installation and setup guide tldr: You just install vagrant, virtual-box and composer. You use these to acquire homestead, then initialize and install. You configure your homestead.yaml and generate ssh keys. After all this you use vagrant up, to have vagrant setup your Vritual machine with your development enviroment and all that stuff. Using git bash, I

Vagrant up error, changing ownership of /vagrant: not a directory

被刻印的时光 ゝ 提交于 2019-11-30 13:49:00
I'm running Windows 8.1 64-bit on a laptop. I've been following this guide to try an setup a homestead for my Laravel projects: laravel installation and setup guide tldr: You just install vagrant, virtual-box and composer. You use these to acquire homestead, then initialize and install. You configure your homestead.yaml and generate ssh keys. After all this you use vagrant up, to have vagrant setup your Vritual machine with your development enviroment and all that stuff. Using git bash, I follow the guide and get to the 'vagrant up' part. Here is where it gets hairy, I get the following error:

Laravel Homestead/Vagrant/Virtualbox is slow on Windows

青春壹個敷衍的年華 提交于 2019-11-30 10:51:59
问题 I have installed Laravel Homestead/Vagrant/Virtualbox on Windows as it said on official site But it is really slow. Page update takes about 5 seconds. And it is not only my observation. Laracast has a discussion about it. The laracast forum has some interesting ideas, but it is a mess there (sorry Jeffery), it is hard to understand which ideas are accepted and which is declined. Here on Stackoverflow we have a good voting system to vote up working solutions, and request authors to give more

Use SSL on Laravel Homestead

余生长醉 提交于 2019-11-30 05:19:38
I'm using Laravel Homestead and it is working fine. Now I want to implement HTTPS on one of my sites. I found that to achieve that you just need to add ssl: true into Homestead.yaml and then run vagrant reload --provision. I can see it working when I run above command which shows: ==> homestead-7: Running provisioner: shell... homestead-7: Running: script: Creating Certificate: laravel-cashier.local ==> homestead-7: Running provisioner: shell... homestead-7: Running: script: Creating Site: laravel-cashier.local And in /etc/nginx/ssl , I can see these 3 files are created: -rw-r--r-- 1 root root

vagrant网站中box下载方法

流过昼夜 提交于 2019-11-29 23:48:29
假设需要下载Laravel/homestead这个包。 首先定位到地址: https://app.vagrantup.com/laravel/boxes/homestead/versions/8.0.0 然后直接在后面加上 “providers/virtualbox.box”就可以下载了 (注意virtualbox.box是指供应商的名字,不同供应商提供不同名字即可) https://app.vagrantup.com/laravel/boxes/homestead/versions/8.0.0/providers/virtualbox.box 参考网址: https://blog.csdn.net/weixin_33814685/article/details/91938829 来源: https://www.cnblogs.com/qq917937712/p/11539978.html

Using vagrant and homestead for multiple sites and per project installation

末鹿安然 提交于 2019-11-29 21:06:52
I have been using XAMPP for quite a time, and after discovering Laravel and finding out, that I quite like it, I also wanted to use Homestead. The problem I'm having is, that I can't seem to be able to run multiple sites. I have tried various things, but the main problem currently is, that one project works, while all the others are getting a connection timeout, when trying to access their webpage. These are the steps I've taken to use Homestead Installing VirtualBox Installing Vagrant Adding homestead with vagrant box add laravel/homestead Clonging the repository git clone https://github.com

Laravel Homestead hangs at SSH auth method: private key on mac

你。 提交于 2019-11-29 20:28:06
I can't seem to get Homestead running. It hangs at SSH auth method: private key. The Homestead VM starts. I can go to VirtualBox and open the terminal window and login with vagrant:vagrant. I can't vagrant ssh, ssh vagrant@127.0.0.1:2204 or ssh vagrant@127.0.0.1 -p 2204. None of my folders show up in the VM, but the VirtualBox says they are mapped. Every time I vagrant up, I get: vagrant up Bringing machine 'homestead-7' up with 'virtualbox' provider... ==> homestead-7: Checking if box 'laravel/homestead' is up to date... ==> homestead-7: Clearing any previously set forwarded ports... ==>

How configure Homestead and xip.io?

天涯浪子 提交于 2019-11-29 15:31:53
I want to access from other devices (iphone, android device, etc) to my sites on homestead in my machine. My machine and all device are on same network. I want to use http://xip.io but I could not confgure it. My ip machine is 192.168.0.12 The ip for sites on Homestead is 192.168.10.10 This is the file hosts: 127.0.0.1 localhost 127.0.1.1 host #Virtual Hosts on Homestead 192.168.10.10 siteOne.com 192.168.10.10 siteTwo.app 192.168.10.10 otherSite.app # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6