Added vagrant-bindfs plugin to fix sessions in dev.

This commit is contained in:
Peter Deltchev 2015-05-02 02:48:57 -07:00
parent cdce0ee0cc
commit bd58dad1c2
4 changed files with 9 additions and 5 deletions

3
.gitignore vendored
View file

@ -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
_ide_helper.php

3
Vagrantfile vendored
View file

@ -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
config.bindfs.bind_folder "/vagrant", "/vagrant"
end

0
artisan Normal file → Executable file
View file

View file

@ -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"
**NOTE:** currently, Redis's configuration is not reloaded by the "copy-and-restart-config.sh"