Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
cd /var/www/avalon/current
bundle exec script/rails c
ActiveFedora::Base.delete_all
Bookmark.delete_all
#ActiveFedora::Base.destroy_all doesn't work as well.
 
#Clear solr content
curl http://localhost:8983/solr/avalon/update?commit=true -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>'
 
#Login as root, Delete files
rm -rf /var/avalon/rtmp_streams/*
rm -rf /var/avalon/hls_streams/*
ln -s /usr/share/avalon-sample-content/hls-streams/* /var/avalon/hls_streams/
ln -s /usr/share/avalon-sample-content/streaming/* /var/avalon/rtmp_streams/
 

After the content is cleaned up, reinstall the sample content.