Spotify-Jukebox: https://spotify-jukebox.up.railway.app/
Sidekiq: https://spotify-jukebox.up.railway.app/sidekiq-dashboard
Ruby version: ruby "3.1"
Rails version: rails "~> 7.0.0"
Database creation
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails db:seed
- Changes to main branch are automaticall deployed to https://railway.app/
bin/dev
npm run build
npm install
bundle install
brew install redis
redis-server
bundle exec rspec
bundle exec rubocop
or to auto-generate config file:
rubocop --auto-gen-config
EDITOR="code --wait" bin/rails credentials:edit
aws:
access_key_id: "..."
secret_access_key: ""..."
region: eu-central-1
dev:
bucket: "..."
prod:
bucket: "..."
spotify:
client_id: "..."
client_secret: "..."
# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.
secret_key_base: "..."
# Connect railway.app (only once)
railway link
# Use CLI
railway run bash
# Check logs
railway logs
# Example binary command
railway run bin/rails db:create
Spotify-Jukebox: https://photo-jukebox.herokuapp.com/
Sidekiq: https://photo-jukebox.herokuapp.com/sidekiq-dashboard
git push main
git push heroku main
heroku run rake db:migrate heroku run rake db:seed
heroku open
Paid sidekiq worker necessary for BackgroundJob to generate zip