Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
templates: exit when one command fails
Browse files Browse the repository at this point in the history
* For REANA v0.3.0 server should exit if the database could not be
  created (addresses reanahub/reana-server#79).
  • Loading branch information
Diego Rodriguez committed Aug 6, 2018
1 parent ae4ab6a commit 9c36fe6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
image: {{SERVER_IMAGE}}
{% if DEPLOYMENT != 'prod' %}
command: ["/bin/sh","-c"]
args: ["flask db init; flask users create_default info@reana.io; flask run --host=0.0.0.0"]
args: ["set -e; flask db init; flask users create_default info@reana.io; flask run --host=0.0.0.0"]
{% endif %}
imagePullPolicy: {{IMAGE_PULL_POLICY}}
{%- if DEPLOYMENT != 'prod' %}
Expand Down

0 comments on commit 9c36fe6

Please sign in to comment.