Sign inSign up

mdouchement/shiva

By mdouchement

โ€ขUpdated about 10 years ago

Image
0

1.0K

mdouchement/shiva repository overview

โ Shiva

Audio media server. Only support Opus files.

โ Requirements

  • MRI 2.2.0

โ Create admin user

$ bundle exec rails c
[1] shiva ยป  User.create!(email: '[email protected]', username: 'mdouchement', password: 'trololoyolo')

โ Indexing songs

$ bundle exec rake indexer /home/mdouchement/opus

โ Running

$ bundle exec unicorn -p 3000 -c config/unicorn.rb
# See the Dockerfile for more details
  • Running with docker
$ docker run --restart=always --name=shiva -p 3000:3000 -v /home/mdouchement/opus:/data/storage -v /home/mdouchement/shiva/db:/data/db -d mdouchement/shiva

# Or if you want to namespace the app like http://localhost:3000/shiva
$ docker run --restart=always --name=shiva -e SHIVA_NAMESPACE='/shiva' -p 3000:3000 -v /home/mdouchement/opus:/data/storage -v /home/mdouchement/shiva/db:/data/db -d mdouchement/shiva
# You can also define RAILS_SERVE_STATIC_FILES environment variable if you want that Rails serve the assets

# Launch a Rails console for adding an admin user
$ docker exec -it shiva bundle exec rails c

# Reindexing
$ docker exec -it shiva bundle exec rake indexer /data/storage

โ License

MIT. See the LICENSEโ  for more details.

โ Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Ensure specs and Rubocop pass
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

Tag summary

Content type

Image

Digest

sha256:b0321680fโ€ฆ

Size

298.7 MB

Last updated

about 10 years ago

docker pull mdouchement/shiva