Skip to content

Commit

Permalink
reconfigure ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
danielecook committed Jun 9, 2020
1 parent 3bdf4c0 commit 603a5f1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/uptime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ jobs:
name: Ping the site
steps:
- name: Check the site
id: check CeNDR
id: check_cendr
uses: srt32/uptime@master
with:
url-to-hit: "https://elegansvariation.org/"
expected-statuses: "200,301"

- name: ping healthchecks.io
if: ${{ success() }}
run: curl {{ secrets.HEALTHCHECK_URL }}
run: curl ${{ secrets.HEALTHCHECK_URL }}

- name: ping healthchecks.io
if: ${{ failure() }}
run: curl ${{ secrets.HEALTHCHECK_URL }}/fail
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@

# Building the static database

## Building docker container

## Initializing the database

You can create the CeNDR database by running:

```bash
flask initdb WS276 # Where WS276 is the version of wormbase
```

## Running the docker container
Expand Down
8 changes: 6 additions & 2 deletions base/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ def create_app(config=config):
register_extensions(app)
register_errorhandlers(app)
configure_jinja(app)
configure_ssl(app)

return app


def configure_ssl(app):
"""Configure SSL"""
if os.getenv('HOME') == "/root":
# Running on server
app.debug = False
Expand All @@ -73,8 +79,6 @@ def create_app(config=config):
app.config['SECRET_KEY'] = "test"
debug_toolbar(app)

return app


def register_commands(app):
"""Register custom commands for the Flask CLI."""
Expand Down

0 comments on commit 603a5f1

Please sign in to comment.