From bd58dad1c2927aa02e1e2c1c587ffdb21a3b9bec Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Sat, 2 May 2015 02:48:57 -0700 Subject: [PATCH] Added vagrant-bindfs plugin to fix sessions in dev. --- .gitignore | 3 ++- Vagrantfile | 3 ++- artisan | 0 readme.md | 8 +++++--- 4 files changed, 9 insertions(+), 5 deletions(-) mode change 100644 => 100755 artisan diff --git a/.gitignore b/.gitignore index c962ed84..3bfe13d1 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ Thumbs.db .tmproj *.esproj nbproject +*.iml # Dreamweaver added files _notes @@ -46,4 +47,4 @@ node_modules composer.phar composer.lock atlassian-ide-plugin.xml -_ide_helper.php \ No newline at end of file +_ide_helper.php diff --git a/Vagrantfile b/Vagrantfile index cfaf0dc1..fe30e3cb 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -7,4 +7,5 @@ Vagrant.configure("2") do |config| config.vm.provision "shell", path: "vagrant/install.sh" config.vm.synced_folder "../pony.fm.files", "/vagrant-files" -end \ No newline at end of file + config.bindfs.bind_folder "/vagrant", "/vagrant" +end diff --git a/artisan b/artisan old mode 100644 new mode 100755 diff --git a/readme.md b/readme.md index d8690152..a72db94c 100644 --- a/readme.md +++ b/readme.md @@ -1,10 +1,12 @@ # Starting a dev environment -To begin development, you must do two things: +To begin development, you must do three things: 1. Ensure that you have the following hosts entries: > 192.168.33.11 pony.fm.local > 192.168.33.11 api.pony.fm.local -2. Run "vagrant up" from the folder in which you cloned the repository +2. Install the "vagrant-bindfs" plugin: `vagrant plugin install vagrant-bindfs` + +3. Run `vagrant up` from the folder in which you cloned the repository Once everything is up and running, you'll be able to access the site at http://pony.fm.local. You can access the MySQL database by logging into **192.168.33.11:3306** with the username of **homestead** and the password of **secret**. The pony.fm database is named **homestead**. @@ -25,4 +27,4 @@ Pony.fm uses nginx, php-fpm, redis, and MySQL. You can modify the configuration If you need to change any other configuration file on the VM - copy the entire file over into the vagrant folder, make your changes, and update the "copy-and-restart-config.sh" script to copy the modified config back into the proper folder. All potential configuration requirements should be represented in the vagrant folder **and never only on the VM itself** as changes will not be preserved. -**NOTE:** currently, Redis's configuration is not reloaded by the "copy-and-restart-config.sh" \ No newline at end of file +**NOTE:** currently, Redis's configuration is not reloaded by the "copy-and-restart-config.sh"