From 147de6c50e8fb4d45f7df776b7d7b26ec994a6ac Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sun, 10 Feb 2019 13:09:27 +0100 Subject: [PATCH] set state. #202 --- Dockerfile | 2 ++ app/jobs/url_job.rb | 2 ++ config/initializers/_version.rb | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 011f7a73a..da37d574e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,7 +60,9 @@ ADD vendor/docker/shoryuken.sh /etc/service/shoryuken/run # Run additional scripts during container startup (i.e. not at build time) RUN mkdir -p /etc/my_init.d +# install custom ssh key during startup COPY vendor/docker/10_ssh.sh /etc/my_init.d/10_ssh.sh + COPY vendor/docker/70_index_page.sh /etc/my_init.d/70_index_page.sh # COPY vendor/docker/80_flush_cache.sh /etc/my_init.d/80_flush_cache.sh COPY vendor/docker/90_migrate.sh /etc/my_init.d/90_migrate.sh diff --git a/app/jobs/url_job.rb b/app/jobs/url_job.rb index a1b9dd25c..1d2a18a0e 100644 --- a/app/jobs/url_job.rb +++ b/app/jobs/url_job.rb @@ -20,6 +20,8 @@ def perform(doi_id) doi.update_attributes(url: url) end + doi.event = "publish" if %w(europ ethz).include?(doi.provider_id) + doi.__elasticsearch__.index_document logger.info "[Handle] URL #{url} set for DOI #{doi.doi}." diff --git a/config/initializers/_version.rb b/config/initializers/_version.rb index f12a7f7d4..c67e3e137 100644 --- a/config/initializers/_version.rb +++ b/config/initializers/_version.rb @@ -1,5 +1,5 @@ module Lupo class Application - VERSION = "2.3.25" + VERSION = "2.3.26" end end \ No newline at end of file