This project contains the code not for the actual audio player, but for the page where the player is embedded.
- Make sure you have Python 2.7 installed.
- Clone the repo locally.
git clone git@github.com:vprnet/audio-player.git
- Install
pip
- Install virtualenv.
pip install virtualenv
- Create a virtual environment for the app.
virtualenv venv
- Install the app requirements.
pip install -r requirements.txt
- Duplicate
_config.py
asconfig.py
, which will be your private, git-ignored file of keys. - Grab the secret
homepage.json
file from someone on the VPR team.
- Enter the virtual environment.
source venv/bin/activate
- To run locally, just hit a quick
python audio-player/index.py
and head to127.0.0.1:5000
This project runs on a cron job in Webfaction. The cron is currently set to run every ten minutes, pushing up to Amazon S3. To update the production code, SSH into our Webfaction server and update changes to the production code.
Copyright 2014 Vermont Public Radio
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions under the License.