Merge pull request #199 from openHPI/mnemosyne-integration
enable mnemosyne
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
/config/action_mailer.yml
|
/config/action_mailer.yml
|
||||||
/config/code_ocean.yml
|
/config/code_ocean.yml
|
||||||
/config/database.yml
|
/config/database.yml
|
||||||
|
/config/mnemosyne.yml
|
||||||
/config/secrets.yml
|
/config/secrets.yml
|
||||||
/config/sendmail.yml
|
/config/sendmail.yml
|
||||||
/config/smtp.yml
|
/config/smtp.yml
|
||||||
|
@ -32,6 +32,7 @@ before_script:
|
|||||||
- cp config/database.yml.travis config/database.yml
|
- cp config/database.yml.travis config/database.yml
|
||||||
- cp config/secrets.yml.travis config/secrets.yml
|
- cp config/secrets.yml.travis config/secrets.yml
|
||||||
- cp config/docker.yml.erb.travis config/docker.yml.erb
|
- cp config/docker.yml.erb.travis config/docker.yml.erb
|
||||||
|
- cp config/mnemosyne.yml.travis config/mnemosyne.yml
|
||||||
- psql --command='CREATE DATABASE travis_ci_test;' --username=postgres
|
- psql --command='CREATE DATABASE travis_ci_test;' --username=postgres
|
||||||
- bundle exec rake db:schema:load RAILS_ENV=test
|
- bundle exec rake db:schema:load RAILS_ENV=test
|
||||||
|
|
||||||
|
1
Gemfile
1
Gemfile
@ -42,6 +42,7 @@ gem 'nokogiri'
|
|||||||
gem 'd3-rails', '~>4.0'
|
gem 'd3-rails', '~>4.0'
|
||||||
gem 'rest-client'
|
gem 'rest-client'
|
||||||
gem 'rubyzip'
|
gem 'rubyzip'
|
||||||
|
gem 'mnemosyne-ruby', '~> 1.0'
|
||||||
gem 'whenever', require: false
|
gem 'whenever', require: false
|
||||||
|
|
||||||
group :development, :staging do
|
group :development, :staging do
|
||||||
|
@ -41,6 +41,7 @@ GEM
|
|||||||
public_suffix (>= 2.0.2, < 4.0)
|
public_suffix (>= 2.0.2, < 4.0)
|
||||||
airbrussh (1.3.0)
|
airbrussh (1.3.0)
|
||||||
sshkit (>= 1.6.1, != 1.7.0)
|
sshkit (>= 1.6.1, != 1.7.0)
|
||||||
|
amq-protocol (2.3.0)
|
||||||
arel (6.0.4)
|
arel (6.0.4)
|
||||||
ast (2.4.0)
|
ast (2.4.0)
|
||||||
autotest-rails (4.2.1)
|
autotest-rails (4.2.1)
|
||||||
@ -57,6 +58,8 @@ GEM
|
|||||||
bootstrap_pagedown (1.1.0)
|
bootstrap_pagedown (1.1.0)
|
||||||
rails (>= 3.2)
|
rails (>= 3.2)
|
||||||
builder (3.2.3)
|
builder (3.2.3)
|
||||||
|
bunny (2.11.0)
|
||||||
|
amq-protocol (~> 2.3.0)
|
||||||
byebug (10.0.0)
|
byebug (10.0.0)
|
||||||
capistrano (3.10.1)
|
capistrano (3.10.1)
|
||||||
airbrussh (>= 1.0.0)
|
airbrussh (>= 1.0.0)
|
||||||
@ -173,6 +176,9 @@ GEM
|
|||||||
mini_mime (1.0.0)
|
mini_mime (1.0.0)
|
||||||
mini_portile2 (2.3.0)
|
mini_portile2 (2.3.0)
|
||||||
minitest (5.11.3)
|
minitest (5.11.3)
|
||||||
|
mnemosyne-ruby (1.5.1)
|
||||||
|
activesupport (>= 4)
|
||||||
|
bunny
|
||||||
multi_json (1.13.1)
|
multi_json (1.13.1)
|
||||||
multi_xml (0.6.0)
|
multi_xml (0.6.0)
|
||||||
multipart-post (2.0.0)
|
multipart-post (2.0.0)
|
||||||
@ -410,6 +416,7 @@ DEPENDENCIES
|
|||||||
jquery-rails
|
jquery-rails
|
||||||
jquery-turbolinks
|
jquery-turbolinks
|
||||||
kramdown
|
kramdown
|
||||||
|
mnemosyne-ruby (~> 1.0)
|
||||||
newrelic_rpm
|
newrelic_rpm
|
||||||
nokogiri
|
nokogiri
|
||||||
nyan-cat-formatter
|
nyan-cat-formatter
|
||||||
|
29
config/mnemosyne.yml.example
Normal file
29
config/mnemosyne.yml.example
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Mnemosyne AMQP sink
|
||||||
|
common: &common
|
||||||
|
# AMQP server endpoint
|
||||||
|
server: amqp://localhost
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# Platform identifier to group applications
|
||||||
|
platform: codeocean
|
||||||
|
|
||||||
|
# AMQP exchange name, must be a topic exchange
|
||||||
|
# exchange: mnemosyne
|
||||||
|
|
||||||
|
# Application name, defaults to rails application name
|
||||||
|
application: app
|
||||||
|
|
||||||
|
# Hostname reported with traces, default to machine hostname
|
||||||
|
# hostname:
|
||||||
|
|
||||||
|
development:
|
||||||
|
<<: *common
|
||||||
|
|
||||||
|
test:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
staging:
|
||||||
|
<<: *common
|
||||||
|
|
||||||
|
production:
|
||||||
|
<<: *common
|
29
config/mnemosyne.yml.travis
Normal file
29
config/mnemosyne.yml.travis
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Mnemosyne AMQP sink
|
||||||
|
common: &common
|
||||||
|
# AMQP server endpoint
|
||||||
|
server: amqp://localhost
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# Platform identifier to group applications
|
||||||
|
platform: codeocean
|
||||||
|
|
||||||
|
# AMQP exchange name, must be a topic exchange
|
||||||
|
# exchange: mnemosyne
|
||||||
|
|
||||||
|
# Application name, defaults to rails application name
|
||||||
|
application: app
|
||||||
|
|
||||||
|
# Hostname reported with traces, default to machine hostname
|
||||||
|
# hostname:
|
||||||
|
|
||||||
|
development:
|
||||||
|
<<: *common
|
||||||
|
|
||||||
|
test:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
staging:
|
||||||
|
<<: *common
|
||||||
|
|
||||||
|
production:
|
||||||
|
<<: *common
|
@ -109,7 +109,7 @@ sudo apt-get -qq -y install nginx-extras passenger
|
|||||||
cd /vagrant
|
cd /vagrant
|
||||||
|
|
||||||
# config
|
# config
|
||||||
for f in action_mailer.yml database.yml secrets.yml sendmail.yml smtp.yml code_ocean.yml
|
for f in action_mailer.yml database.yml secrets.yml sendmail.yml smtp.yml code_ocean.yml docker.yml.erb mnemosyne.yml
|
||||||
do
|
do
|
||||||
if [ ! -f config/$f ]
|
if [ ! -f config/$f ]
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user