2015-10-24 23:20:56 -07:00
[](https://pony.fm/)
2015-10-24 22:17:45 -07:00
The community for pony fan music.
For artists, Pony.fm features unlimited uploads and downloads, automatic
transcoding to a number of audio formats, and synchronized tags in all
downloads.
For listeners, Pony.fm offers unlimited streaming and downloading, user-generated
playlists, favourite lists, and a way of discovering new music with pony-based
taxonomies.
Contributing
------------
2015-11-16 04:20:15 -08:00
If you've run across a bug or have a feature request,
[open an issue ](https://github.com/Poniverse/Pony.fm/issues/new )
for it.
For general questions and discussions about the site, stop by at
the [Pony.fm forum ](https://mlpforums.com/forum/62-ponyfm/ ).
2015-10-24 22:17:45 -07:00
For quick fixes, go ahead and submit a pull request!
2015-11-16 04:20:15 -08:00
For larger features, it's best to open an issue before sinking a ton of work
2015-10-24 22:17:45 -07:00
into building them, to coordinate with Pony.fm's maintainers.
2015-11-16 04:20:15 -08:00
**Protip:** Looking for a place to jump in and start coding? Try a
[quickwin issue ](https://github.com/Poniverse/Pony.fm/labels/quickwin%21 ) -
these are smaller in scope and easier to tackle if you're unfamiliar with the codebase!
2015-10-24 22:17:45 -07:00
2015-11-16 04:20:15 -08:00
Starting a dev environment
==========================
2015-09-24 10:43:12 -07:00
2015-09-12 17:38:15 -07:00
To begin development, you must do three things:
2013-07-25 16:33:04 -05:00
2015-09-12 17:38:15 -07:00
1. Install the `vagrant-hostmanager` plugin: `vagrant plugin install vagrant-hostmanager`
2015-05-02 02:48:57 -07:00
2015-09-24 10:43:12 -07:00
2. Install the `vagrant-bindfs` plugin: `vagrant plugin install vagrant-bindfs`
2015-06-14 13:55:29 +01:00
2015-09-12 17:38:15 -07:00
3. Create the directory `pony.fm.files` in the repository's parent directory
2013-07-25 16:33:04 -05:00
2015-09-12 17:38:15 -07:00
4. Run `vagrant up` from the folder in which you cloned the repository
2015-04-23 04:17:05 -05:00
2015-09-24 10:43:12 -07:00
5. Run `vagrant ssh` , `cd /vagrant` , and `php artisan poni:setup` .
6. Follow the instructions in the "Asset pipeline" section below to set that up.
2015-11-16 04:20:15 -08:00
Once everything is up and running, you'll be able to access the site at [http://ponyfm-dev.poni/ ](http://ponyfm-dev.poni/ ). You can access the MySQL database by logging into **ponyfm-dev.poni:3306** with the username **homestead** and the password **secret** . Pony.fm's database is named **homestead** .
2015-04-23 04:17:05 -05:00
2015-11-16 04:20:15 -08:00
Asset pipeline
--------------
2015-09-24 10:43:12 -07:00
Pony.fm uses [gulp ](http://gulpjs.com/ ) to mange its asset pipeline.
**Important:** Run `npm` and `gulp` from your host machine and not within the VM. You must first have it installed globally:
npm install -g gulp
2015-04-23 04:17:05 -05:00
2015-09-12 17:38:15 -07:00
And then install all of the required local packages by invoking:
2015-09-24 10:43:12 -07:00
npm install
2015-06-15 14:34:24 +01:00
2015-09-12 17:38:15 -07:00
Finally, build all of the scripts by executing:
2015-09-24 10:43:12 -07:00
gulp build
2015-04-23 04:17:05 -05:00
2015-09-12 17:38:15 -07:00
During development, you should make a point to run "gulp watch". You can do this simply by executing:
2015-04-23 04:17:05 -05:00
2015-09-24 10:43:12 -07:00
gulp watch
This will watch and compile the `.less` and `.coffee` files in real time.
2015-04-23 04:17:05 -05:00
2015-11-16 04:20:15 -08:00
Configuring the servers
-----------------------
2015-09-12 17:38:15 -07:00
2015-09-24 10:43:12 -07:00
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.
2015-09-12 17:38:15 -07:00
2015-09-24 10:43:12 -07:00
**NOTE:** currently, Redis's configuration is not reloaded by the `copy-and-restart-config.sh`