Skip to content

Commit

Permalink
set state. #202
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Feb 10, 2019
1 parent 2bb9165 commit 147de6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions app/jobs/url_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}."
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/_version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Lupo
class Application
VERSION = "2.3.25"
VERSION = "2.3.26"
end
end

0 comments on commit 147de6c

Please sign in to comment.