-
+
diff --git a/.gitignore b/.gitignore index 0901348..a56c92f 100755 --- a/.gitignore +++ b/.gitignore @@ -51,4 +51,5 @@ Gemfile.lock /config/contact_topic.yml .#* .* -!/.gitignore \ No newline at end of file +!/.gitignore +*.pid \ No newline at end of file diff --git a/Gemfile b/Gemfile index a8dc2a8..fb8b9bc 100755 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'https://rubygems.org' - +gem 'rake', '~>11.0' gem 'rails', '3.2.13' gem 'sprockets', '2.2.2' gem 'webrick', '1.3.1' @@ -136,4 +136,4 @@ gem 'blueimp-gallery-rails' gem 'shareable' -gem 'sunspot_test' \ No newline at end of file +gem 'sunspot_test' diff --git a/README b/README new file mode 100644 index 0000000..9b1b424 --- /dev/null +++ b/README @@ -0,0 +1,25 @@ +SETUP: + +install ruby 2.1.10 + +install requirements +apt-get ... + + +mkdir /srv/fetsite +cd /srv/fetsite + +copy / fetch Gemfile + +make User fetsite + + +bundle install + +# Config Files kopieren: +cp /srv/fetsite/config/omniout_secrets.yml.example /srv/fetsite/config/omniout_secrets.yml +cp /srv/fetsite/config/omniout_secrets.yml.example /srv/fetsite/config/omniout_secrets.yml +touch crawler_config.yml + +# Datenbank erstellen +rake db:migrate \ No newline at end of file diff --git a/app/models/gremium.rb b/app/models/gremium.rb index 8ee1800..e7c4b1a 100644 --- a/app/models/gremium.rb +++ b/app/models/gremium.rb @@ -26,7 +26,7 @@ class Gremium < ActiveRecord::Base # has_many :members, through: :memberships searchable do text :desc - text :name, :boost=>4.0 + text :name end belongs_to :thema # Gehört zu einem Thema diff --git a/app/models/neuigkeit.rb b/app/models/neuigkeit.rb index 0db49de..1529f2f 100755 --- a/app/models/neuigkeit.rb +++ b/app/models/neuigkeit.rb @@ -186,6 +186,6 @@ class Neuigkeit < ActiveRecord::Base searchable do text :text text :datum - text :title, :boost=>3.0 + text :title end end diff --git a/app/models/rubrik.rb b/app/models/rubrik.rb index 50f2135..636f508 100755 --- a/app/models/rubrik.rb +++ b/app/models/rubrik.rb @@ -42,7 +42,7 @@ end searchable do text :desc - text :name, :boost=>4.0 + text :name end end diff --git a/app/models/studium.rb b/app/models/studium.rb index 1fd5866..b3763e6 100755 --- a/app/models/studium.rb +++ b/app/models/studium.rb @@ -89,7 +89,7 @@ class Studium < ActiveRecord::Base text :zahl text :typ text :abkuerzung - text :name, :boost=>3.0 + text :name end end diff --git a/app/models/thema.rb b/app/models/thema.rb index 1abc8b8..36cb2e5 100644 --- a/app/models/thema.rb +++ b/app/models/thema.rb @@ -47,7 +47,7 @@ class Thema < ActiveRecord::Base # make topic searchable searchable do text :text - text :title, :boost=>4.0 + text :title end resourcify diff --git a/app/models/themengruppe.rb b/app/models/themengruppe.rb index d37675a..8a27625 100644 --- a/app/models/themengruppe.rb +++ b/app/models/themengruppe.rb @@ -40,7 +40,7 @@ end searchable do text :text - text :title, :boost=>4.0 + text :title end end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 61a4ff1..83cf3db 100755 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -25,7 +25,7 @@