Skip to content

Commit

Permalink
Release/1.9.13 (#161)
Browse files Browse the repository at this point in the history
* add extra health check

* redirect to api.plynx.com

* update version
  • Loading branch information
khaxis authored Feb 23, 2023
1 parent 6aa3928 commit 8437def
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plynx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
Interactive, Scalable, Shareable and Reproducible Workflow Orchestration framework
"""

__version__ = '1.9.12'
__version__ = '1.9.13'
7 changes: 7 additions & 0 deletions plynx/web/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
from plynx.web.common import app, handle_errors


@app.route('/', methods=['GET'])
@handle_errors
def get_health_base():
"""Health check"""
return 'Healthy'


@app.route('/health', methods=['GET'])
@handle_errors
def get_health():
Expand Down
4 changes: 2 additions & 2 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "plynx-web",
"homepage": ".",
"version": "1.9.12",
"version": "1.9.13",
"private": true,
"dependencies": {
"@babel/runtime": "^7.20.7",
Expand Down
2 changes: 1 addition & 1 deletion ui/public/meta.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.9.12"}
{"version":"1.9.13"}
6 changes: 4 additions & 2 deletions ui/src/configConsts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ const apiVersion = 'v0';

const hostname = window && window.location && window.location.hostname;

if (hostname === 'plynx.com') {
backendHost = 'https://plynx.com';
console.log("Host:", hostname);
// `hostname` equals to platform.plynx.com, test.plynx.com etc
if (hostname === 'plynx.com' || hostname === 'platform.plynx.com' || hostname === 'test.plynx.com') {
backendHost = 'https://api.plynx.com';
} else if (hostname === 'localhost') {
backendHost = process.env.REACT_APP_BACKEND_HOST || 'http://localhost:5005';
} else {
Expand Down

0 comments on commit 8437def

Please sign in to comment.