-
Notifications
You must be signed in to change notification settings - Fork 145
Running Barkeep locally
lyahdav edited this page Aug 8, 2012
·
6 revisions
Make sure you're up to date on Ruby gems (bundle install
) and on migrations (ruby script/run_migrations.rb
).
$ redis-server # run Redis (on Linux it is probably already running via an init script; on Mac with Homebrew it is probably running via a Launch Agent)
$ bin/run_app.bash # run the server
# navigate to localhost:8040
These are somewhat optional services to run while developing. These background jobs periodically fetch new commits, pre-generate commit diffs, and send emails when comments are posted.
$ script/run_clockwork.rb # run periodic cron jobs
$ script/run_resque.rb
If you want to run all three Barkeep services together, you can do so using foreman.
$ bundle exec foreman start
You can view the Resque dashboard and inspect failed Resque jobs by navigating to http://localhost:8040/resque.
Before you execute bundle exec rake test
to run all the tests, you need to execute the git commands below. That's because barkeep uses a git submodule as a fixture for unit tests.
$ git submodule init
$ git submodule update
$ bundle exec rake test
Next: Viewing repositories