This is the repository for SoundDrop. Read about and view SoundDrop here.
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
git push
./deploy.sh
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
- Follow these instruction only for creating the Droplet
- 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 .