Find a file
2015-09-12 20:45:56 -07:00
.git-crypt T350: Added encrypted production and stage configs, updated the cache driver, and moved the .env.example file to the resources directory. 2015-09-12 15:35:40 -07:00
app T357, T350: Restore updates from rPFf088badebbbb. 2015-09-12 20:45:56 -07:00
bootstrap Initial L5.1 commit 2015-08-30 12:26:03 +01:00
config T350: Regenerated encyption keys for all environments and moved sessions to the database. 2015-09-12 15:56:22 -07:00
database T350: Restored original filenames of several migrations. 2015-09-12 18:11:18 -07:00
public Add public 2015-08-31 16:31:45 +01:00
resources T350: Fixed embeds broken by the Laravel 5 upgrade. 2015-09-12 20:23:32 -07:00
storage Initial L5.1 commit 2015-08-30 12:26:03 +01:00
tests Initial L5.1 commit 2015-08-30 12:26:03 +01:00
tools Moved nginx's and MySQL's logs into the "storage" directory. 2015-09-12 16:49:16 -07:00
vagrant T350: Updated the name of the CSRF header used by Laravel 5. 2015-09-12 19:19:45 -07:00
.arcconfig Merge rPF91611faead64: Merge the MLP Music Archive import scripts. 2015-09-10 12:15:19 +01:00
.gitattributes T350: Added encrypted production and stage configs, updated the cache driver, and moved the .env.example file to the resources directory. 2015-09-12 15:35:40 -07:00
.gitignore T350: Ignore the nginx logs directory. 2015-09-12 14:58:17 -07:00
artisan Initial L5.1 commit 2015-08-30 12:26:03 +01:00
composer.json Update namespaces 2015-09-06 18:21:11 +01:00
composer.lock Update dependencies; add Newrelic 2015-09-06 17:09:57 +01:00
gulpfile.js Update namespaces 2015-09-06 18:21:11 +01:00
package.json Update namespaces 2015-09-06 18:21:11 +01:00
phpspec.yml Initial L5.1 commit 2015-08-30 12:26:03 +01:00
phpunit.xml Initial L5.1 commit 2015-08-30 12:26:03 +01:00
README.md T350: Restored the readme and introduced vagrant-hostmanager to eliminate manual hosts file editing. 2015-09-12 17:38:15 -07:00
server.php Initial L5.1 commit 2015-08-30 12:26:03 +01:00
Vagrantfile T350: Restored the readme and introduced vagrant-hostmanager to eliminate manual hosts file editing. 2015-09-12 17:38:15 -07:00

Starting a dev environment

To begin development, you must do three things:

  1. Install the vagrant-hostmanager plugin: vagrant plugin install vagrant-hostmanager

  2. Install the "vagrant-bindfs" plugin: vagrant plugin install vagrant-bindfs

  3. Create the directory pony.fm.files in the repository's parent directory

  4. 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.

Asset pipeline

Pony.fm uses gulp to mange its asset pipeline. Important due to everything being awful, you must run npm and gulp from your host machine and not the VM. You must first have it installed globally:

npm install -g gulp

And then install all of the required local packages by invoking:

npm install

Finally, build all of the scripts by executing:

gulp build

During development, you should make a point to run "gulp watch". You can do this simply by executing:

gulp watch

This will watch and compile the .less and .coffee files in real time.

Configuring the servers

Pony.fm uses nginx, php-fpm, redis, and MySQL. You can modify the configuration of these services by locating the appropriate config file in the "vagrant" folder. Once modified, you must reload the configuration by running the appropriate shell script (reload-config.sh) or bat files (reload-config.bat and reload-config.vmware.bat). These scripts simply tell Vagrant to run "copy-and-restart-config.sh" on the VM.

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' configuration is not reloaded by the "copy-and-restart-config.sh"