Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Included Instructions to Run on Local Machine #490

Merged
merged 5 commits into from
Jun 9, 2018
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 53 additions & 1 deletion docs/music-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ $ sox --version
* [SoX](http://sox.sourceforge.net/): Download from http://sourceforge.net/projects/sox/files/sox/
* [QuickTime Player](http://www.apple.com/quicktime/download/) or [iTunes](http://www.apple.com/itunes/download/)
* [qaac](https://sites.google.com/site/qaacpage/)
* [xampp](https://www.apachefriends.org) **For Hosting on your Local Machine**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, this would look better if we made it like this:

* [qaac]

For hosting on your local machine:

* [xampp](https://www.apachefriends.org)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed


#### Installation

Expand Down Expand Up @@ -274,7 +275,7 @@ PS> bemuse-tools index
# Absurd Gaff - siromaru 160bpm [schranz] siromaru / BMSSP-Absurd Gaff 3 6 8 10 10 21 [no-meta]
# ametsuchi - stereoberry 122bpm [discopunk / shoegazer] stereoberry / BMSSP-ametsuchi 1 3 5 5 8 [no-meta]
# atonement you you - unknown 197bpm [NO GENRE] Unknown Artist / BMSSP-atonement you you 4 6 [no-meta]
# AVALON - Team.SASAKURATION 200bpm [Ω] Team:SASAKURATION-AVALON 0 5 6 10 10 12 12 [no-me ta]
# AVALON - Team.SASAKURATION 200bpm [Ω] Team:SASAKURATION-AVALON 0 5 6 10 10 12 12 [no-meta]
# ...
```

Expand Down Expand Up @@ -304,3 +305,54 @@ Upload `index.json`, all `*.bemuse` and `*.bms/bme/bml` files to a web server. M
To connect to the music server, go to `http://bemuse.ninja/?server=<your URL>`.

Example: http://bemuse.ninja/?server=http://flicknote.bemuse.ninja/bemuse/mumei12


### On a Local Machine

Navigate to your Apache Config folder of XAMPP (e.g. `C:\xampp\apache\conf`) and open `httpd.conf`

<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Make sure you create a Backup of the file so that you can restore to the default settings if any issues occur.</p>
</div>

Find the Varable name `DocumentRoot` and edit it's value from `"C:\xampp\htdocs"` to your server folder. (e.g. `C:\Bemuse\myserver`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

varable -> variable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed


```
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:\Bemuse\myserver"
```

Also change the value found in the `Directory` tag to the server folder
```
<Directory "C:\Bemuse\myserver">
```

Place this line inside the `Directory` tag
```
Header set Access-Control-Allow-Origin "*"
```

So it should look like below
```
DocumentRoot "C:\Bemuse\myserver"
<Directory "C:\Bemuse\myserver">
....
Header set Access-Control-Allow-Origin "*"
</Directory>
```

Once the file is saved, open your XAMPP Control Pannel and run "Apache".

Then connect to the music server with (http://bemuse.ninja/?server=https://localhost/).






Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the excessive lines here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed, Even though The Wiki removes them in the web preview