Skip to content

Commit

Permalink
Maintenance mode (#83)
Browse files Browse the repository at this point in the history
* put the app in maintenance mode

* fix trimai's download url
  • Loading branch information
johrstrom authored Jan 31, 2025
1 parent ac2a26a commit 5c58c0f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ RUN pip3 install invoke
# RUN /src/aligntools-setup.sh

RUN mkdir -p /src
RUN curl -o /src/trimal.tar.gz http://trimal.cgenomics.org/_media/trimal.v1.2rev59.tar.gz
RUN cd /src && tar xzf trimal.tar.gz && cd trimAl/source && make && cp trimal readal /usr/local/bin
RUN curl -L -o /src/trimal.tar.gz https://github.com/inab/trimal/archive/refs/tags/v1.4.1.tar.gz
RUN cd /src && tar xzf trimal.tar.gz && cd trimal-1.4.1/source && make && cp trimal readal /usr/local/bin

RUN curl -o /src/mafft.tar.gz https://mafft.cbrc.jp/alignment/software/mafft-7.475-with-extensions-src.tgz
RUN cd /src && tar xzf mafft.tar.gz && cd mafft-7.475-with-extensions/core && make clean && make && make install
Expand Down
7 changes: 7 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception

before_action :maintanence_mode

# TODO: remove once we upgrade Rails and so on.
def maintanence_mode
render(partial: 'maintenance')
end
end
1 change: 1 addition & 0 deletions app/views/application/_maintenance.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1 class="text-center">Phylogatr is inoperable due to ongoing maintenance. We expect to have it online by the end of February 2025.</h1>

0 comments on commit 5c58c0f

Please sign in to comment.