Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Build Status

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

How to run locally

Prerequisites:

  • ruby 2.2.2
  • 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:

rake db:setup

We use foreman to get the app running. Make sure you've done bundle install so that you have forman available. Then run:

foreman start dev

If this doesn't work, clear your cookies. It could solve the problem.

See a SoundDrop: http://localhost:3000/drops/187471639

How to run tests

Setup test database

For bash:

RAILS_ENV=test rake db:setup
bundle exec rspec

For fish

env RAILS_ENV=test rake db:setup
bundle exec rspec

Contribution

Small fixes can be pushed straight to master. For new features, please drop a line to sounddrop@googlegroups.com

Please

  • ensure master build is always passing (run your tests locally before pushing to master)
  • ensure master is always what is deployed (deploy your change to master)

By contributing, you agree to adhere to our Code of Conduct.

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:sounddrop/sounddrop.git rails
  • chown -R rails:www-data .

About

RGSoC 2016 Sounddrop project

Resources

License

Releases

No releases published
You can’t perform that action at this time.