Extra functionality for WCPR that is hosted on-site.
- Setup a virtualenv:
virtualenv env
(and activate:env\Scripts\activate
) - Install Python requirements:
pip install -r requirements.txt
- Copy
flask_site\config\config_example.yml
toflask_site\config\config.yml
and update as needed. - Run
env\Scripts\python start.py dev
to run a local Eventlet test server
flask_site\config\config.yml
with production variables set must be copied to the production machinenow_playing.ini
needs to be configured as the template for StationPlaylist output. In most cases, copy the file toC:\Program Files (x86)\StationPlaylist\Studio\Templates
. Thereafter, StationPlaylist should be configured to use that template and push the output to whatevernow_playing
is set to inflask_site\config\config.yml
- Run
env\Scripts\start.py prod
on production machine to run a production-ready Eventlet server. - Configure GitHub webhooks to send a push event to
BASE_URL/webhook_receive
so that server will auto-update when a push to master is done.