Run tail -F data/application.log
in a terminal window (when in the application
directory). Replace application.log
with application.warnings.log
to see
only warnings and errors.
Try running the following:
sudo chown -R podprod data src/static/images
Replace podprod
with whatever user is used to run the application.
Please note that the application should not be the owner of any other directory or file than those mentioned above, in order to minimize consequences of a security breach.
Simply change the name in DigAS. You should monitor the logs for warnings and errors.
This is how the Spotify feed is set up.
- Add pipeline name to
ALLOWED_PIPELINES
insrc/views/web_feed.py
. - Add pipeline to the set given to
validate_pipelines
in the functionscreate_show_pipelines
andcreate_episode_pipelines
found insrc/feed_utils/init_pipelines.py
. - Add configuration for this pipeline in
settings.default.yaml
, with an explanatory comment. - Test out the application. You should be able to access this pipeline through
/<pipeline-name>/<show-name>
.
You might want to have a staging server which is identical to the production server, and first try to upgrade the staging server before upgrading the production server.
-
Change directory so you're in the folder which contains the folder where this application is installed.
-
Make a copy of the podkast.radiorevolt.no folder:
cp -p -R podkast.radiorevolt.no upgrade-podkast.radiorevolt.no
You might have to run this with sudo.
-
Change into the new directory:
cd upgrade-podcast-feed-gen
-
Remove the virtualenv.
rm -R venv
-
Set up the
virtualenv
and install the required packages, following the instructions inREADME.md
. -
Download the newest changes:
-
If you want to use newest master:
git pull
-
If you want to use a specific release:
git fetch --all git checkout <release-name>
-
-
Go through the changelog and/or release notes, and make the required changes to the configuration files (remember, the local non-template files aren't changed). You may also need to install or upgrade existing dependencies.
-
Make yourself the owner of the data directory, so you can run the tests (note: no tests exist, this is outdated. Instead, run python src/app.py --bind 0.0.0.0:9000 or something to test out the application.):
sudo chown -R YOUR_USERNAME:YOUR_USERNAME data
-
Check that everything works:
. venv/bin/activate py.test generator webserver
-
Change back so the podcastfeedgen user you created during installation owns the data directory:
sudo chown -R SERVER_USER:SERVER_USER data
-
Now, we're ready to make our changes live. First, deactivate the virtualenv before removing it:
deactivate rm -R venv
-
Step out of the temporary directory.
cd ..
-
While performing the following steps, the website may become unavailable and produce errors!
First, check if there are any specific instructions about this upgrade, like installing a new dependency or upgrading one of the existing dependencies. Follow those instructions.
-
Copy the new files:
cp -p -u -R upgrade-podcast-feed-gen/. podcast-feed-gen
You might need to run this with sudo.
-
Make the server reload, so the changes are applied:
touch podcast-feed-gen/server.wsgi
(There's a chance you may have to restart the podcast-feed-gen service/upstart thing instead,
I don't know for sure. In that case: sudo service podcast_feed_gen restart
or
sudo systemctl podcast_feed_gen restart
.)
-
Access the website and confirm that nothing is broken.
-
Now, the website should be back to normal.
-
Remove the copy we created.
rm -R upgrade-podcast-feed-gen
You might need to run this with sudo.
-
Alter and improve this guide if something was poorly explained, you encountered a problem or something similar.