By Daniel Martin / @etdsoft
Main app:
Connectors / add-ons
Web interface:
Console interface:
irb> Issue.count
32
irb> Issue.first.title
"Out-of-date Apache"
Linux:
$ apt-get install redis-server
Mac:
$ brew install redis
$ redis-server /usr/local/etc/redis.conf
Linux:
$ apt-get install libsqlite3-dev
Mac:
$ brew install sqlite
$ gem install bundler --no-rdoc --no-ri
$ bash -l
This bring Bundler to 1.10.
https://dradis.com/ce/download.html
# mkdir dradis3-pkg
# cd dradis3-pkg/
# # wget http://sourceforge.net/projects/dradis/files/dradis/v3.0/dradis-3.0.0.rc1-linux-x86_64.tar.gz/download
# tar -xvvzf dradis-3.0.0.rc1-linux-x86_64.tar.gz
# cd dradis-3.0.0.rc0-linux-x86/
# ./dradis-webapp && ./dradis-worker
# cd lib/vendor/
# vi Gemfile.plugins
# PACKAGING=true ../ruby/bin/bundle --local
Note the
../ruby/bin/bundle
PACKAGING=true
They are important ™
$ mkdir dradis3-git
$ cd dradis3-git/
$ git clone https://github.com/dradis/dradis-ce
$ cd dradis-ce/
$ rm Gemfile.lock
$ git checkout release-3.0
$ ruby ./bin/setup
What we need:
web: bundle exec rails server
# Uncomment for Mac:
# redis: redis-server /usr/local/etc/redis.conf
resque: bundle exec rake resque:work
$ bundle exec rerun --pattern '**/*.{rb,scss,sass,erb,haml,ru}' \
foreman start
Or...
$ bundle exec foreman start
Controls what add-ons are loaded into the framework.
Two steps to load an add-on:
Gemfile.plugins
# if Dir.exists?('../dradis-pdf_export') && !ENV['PACKAGING']
# gem 'dradis-pdf_export', path: '../dradis-pdf_export'
# else
# gem 'dradis-pdf_export', github: 'dradis/dradis-pdf_export'
# end
To:
if Dir.exists?('../dradis-pdf_export') && !ENV['PACKAGING']
gem 'dradis-pdf_export', path: '../dradis-pdf_export'
else
gem 'dradis-pdf_export', github: 'dradis/dradis-pdf_export'
end
$ cd ~/dradis3-git/
$ git clone https://github.com/dradis/dradis-pdf_export
$ bundle