homestead

Laravel Homestead's versions and how it relates to Vagrant, etc [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-08 11:31:32
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I love Laravel Homestead and use it every day, but I'm confused about some terminology. Can someone please explain in basic terms what each of these are and then how they fit together? VirtualBox Vagrant Homestead (and why is this under the "Laravel" umbrella... is it just a recipe

How to map project directory in Homestead.yaml using relative path

旧时模样 提交于 2019-12-08 06:02:11
问题 I have a per-project installation of Homestead in my Laravel project, using the guide at https://laravel.com/docs/5.4/homestead#per-project-installation. I want the Homestead.yaml file to map the project directory as a folder accessible in the Vagrant VM. I want to do this such that the Homestead.yaml file can be shared between development machines without alteration. The Homestead.yaml file is in the project directory as is the Vagrantfile file. Therefore I want to identify the project

Laravel Homestead 2.0 Adding New Sites

不羁岁月 提交于 2019-12-08 04:00:43
问题 Homestead 2 is awesome, but I can't seem to get new sites to work without going through the following process. I do homestead edit to setup the new site paths and domains etc I edit hosts to set up the domain I do homestead halt then homestead up to restart This is when I think things should be working... but they don't. I have to run the additional step of Running vagrant global-status getting the id and running vagrant provision <id> . Everything works except running provision again wipes

Verifying a self-signed certificate on local Laravel Homestead server

混江龙づ霸主 提交于 2019-12-07 13:55:03
问题 I followed the following details on creating an SSL certificate, so I can run local test sites via Laravel's Homestead, using https. Adding https cert on homestead vm All is well but when viewing the test domain over https:// , I get a red cross on Chrome's address bar. It says that the certificate is untrusted due to being self-signed and not verified by third-party. Is there a way that I can sort this out? So that I can get my HTTPS local domains to be trusted by Chrome and work as if

Laravel Homestead 2.0 Adding New Sites

不羁岁月 提交于 2019-12-06 15:50:30
Homestead 2 is awesome, but I can't seem to get new sites to work without going through the following process. I do homestead edit to setup the new site paths and domains etc I edit hosts to set up the domain I do homestead halt then homestead up to restart This is when I think things should be working... but they don't. I have to run the additional step of Running vagrant global-status getting the id and running vagrant provision <id> . Everything works except running provision again wipes out all the databases! How do I add new sites without having to provision again? Instead of step 3 use

Is there a solution for npm install error in Laravel Homestead?

∥☆過路亽.° 提交于 2019-12-06 14:43:48
问题 Windows 10, Homestead VirtualBox 6.0.8, Vagrant 2.2.5, node v12.5.0, npm v6.10.1 All i'm trying to do is npm install command inside fresh installed Laravel app, but i keep getting errors. After googling for two days and trying everything i found as a possible solution for npm install error i decided to try one more time reinstalling everything in hope that would fix my issue with npm install but unfortunately that didn't help either. I tried deleting node_modules, cleaning npm cache, sudo npm

Issue with running Vagrant in Homestead

假装没事ソ 提交于 2019-12-06 09:18:26
I tried setting up a virtual machine using Homestead box. I followed documentation on Laravel site for setting up Homestead. When I ran the command vagrant up , it seemed to work in setting a VM. Then it asked to run vagrant provision , which I did. I can't get pass red text 'You are already using composer version 1.1.3 (stable channel)'. I don't know what to do next. Update: here is Homestead.yaml file: Needed to edit the file at ~/.homestead/Homestead.yaml instead of ~/Homestead/Homestead.yaml after that reload it as usual vagrant reload --provision Add ~/.composer/vendor/bin to Your PATH on

Laravel 5.1 - Homestead MySQL connection. `Connection Refused` & `No such file or directory`

江枫思渺然 提交于 2019-12-06 08:45:02
问题 When my .env file is like this: DB_HOST=127.0.0.1 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret Terminal php artisan migrate works successful but on localhost test, it throws : PDOException in Connector.php line 50: SQLSTATE[HY000] [2002] Connection refused But when my .env file is like this: DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret On localhost everything (registration) works well however php artisan migrate on terminal throws:

Homestead 2 xdebug doesn't work

帅比萌擦擦* 提交于 2019-12-05 17:05:38
I have a Homestead vagrant VM setup. Xdebug is all setup for remote debugging out of the box. I can see this in here /etc/php5/fpm/conf.d/20-xdebug.ini and by doing a php -i | grep 'xdebug' I've setup a breakpoint in my default index.php and clicked the 'start listening for PHP debug connections' in my IDE PHPstorm. I have installed xdebug helper for chrome and turned it on, also setting my IDE string to PHPstorm in it's settings. I've tried setting different ports in both my IDE and xdebug settings. I've also tried listening to these ports with sudo nc -l 9002 on both host and guest machines,

Laravel 5 Amazon AWS S3 Error: Client error: 403 RequestTimeTooSkewed

允我心安 提交于 2019-12-05 09:58:24
I'm trying to upload files to an S3 bucket via a laravel app I get the following error: S3Exception in WrappedHttpHandler.php line 152: Error executing "PutObject" on " https://s3-ap-southeast-1.amazonaws.com/ AWS HTTP error: Client error: 403 RequestTimeTooSkewed (client): The difference between the request time and the current time is too large I've done some research and many say that my my machine's time is not synced. I'm afraid of messing with homestead because im afraid of breaking something . Do i change my app timezone? Really not sure. Please help and thank you for taking the time