Skip to content

cloudyMBC/sounddrop-old

Repository files navigation

Build Status

This is the repository for SoundDrop. Read about and view SoundDrop here.

How to run locally

Prerequisites:

  • ruby 2.1.3
  • mysql libraries. If you are using a mac, do brew install mysql

Install bundler and run bundle install:

gem install bundler
bundle install

Setup the development database:

bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed

Start rails:

bundle exec rails s

See a SoundDrop playlist: http://localhost:3000/playlists/74584890/187471639

Deployment

  • git push
  • ./deploy.sh

Debugging server problems in production

Look at the Rails logs

cd /home/rails
tail -100 log/production.log

or look at the unicorn logs for startup problems or bundle errors

tail -100 /home/unicorn/log/unicorn.log

Restart server service unicorn restart

  • Added ssh keys
  • login and install git: apt-get install git
  • Remove the sample app rm -Rf /home/rails
  • Clone cd /home; git clone git@github.com:cloudyMBC/sounddrop.git rails
  • chown -R rails:www-data .