RGSoC 2016 Sounddrop project
Ruby HTML CSS JavaScript Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
vendor/assets
.env
.gitignore
.rspec
.ruby-version
.travis.yml
CODE_OF_CONDUCT.md
Gemfile
Gemfile.lock
LICENSE.txt
Proc
Procfile
README.md
Rakefile
config.ru
deploy.sh

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 .