Find a file
2015-04-30 02:23:14 -05:00
app Fixed poniverse authentication. Now uses live API. 2015-04-30 01:50:15 -05:00
bootstrap Created intellij project, added bash script for reloading server configuration 2015-04-13 01:09:53 -05:00
logs Added Vagrant file. 2015-04-11 20:22:15 -05:00
public Finished new asset pipeline using gulp 2015-04-23 04:17:05 -05:00
vagrant Files can now upload. This requires you to reprovision your VM. 2015-04-30 02:23:14 -05:00
.gitattributes Inital commit 2013-07-25 16:33:12 -05:00
.gitignore Finished new asset pipeline using gulp 2015-04-23 04:17:05 -05:00
artisan Inital commit 2013-07-25 16:33:12 -05:00
composer.json Added Vagrant file. 2015-04-11 20:22:15 -05:00
CONTRIBUTING.md Inital commit 2013-07-25 16:33:12 -05:00
gulpfile.js Sped up less compilation, added livereload and autoprefixer, cleaned up gulpfile a bit. 2015-04-24 02:53:24 -05:00
package.json Sped up less compilation, added livereload and autoprefixer, cleaned up gulpfile a bit. 2015-04-24 02:53:24 -05:00
phpunit.xml Inital commit 2013-07-25 16:33:12 -05:00
pony.fm.iml Finished new asset pipeline using gulp 2015-04-23 04:17:05 -05:00
readme.md Finished new asset pipeline using gulp 2015-04-23 04:17:05 -05:00
server.php Inital commit 2013-07-25 16:33:12 -05:00
spa.pony.fm.iml Fixed permission issue 2013-09-27 15:49:22 -05:00
Vagrantfile Added Vagrant file. 2015-04-11 20:22:15 -05:00

Starting a dev environment

To begin development, you must do two 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

  1. 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 piepline. 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

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