Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: service unavailable message #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/common/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (__CLIENT__ && window && window.__CONFIG__) {

export const PORT = config.PORT || process.env.PORT || 8080;
export const HOSTNAME = typeof window !== 'undefined' ? window.location.origin : (config.HOSTNAME || 'http://localhost:8080');
export const API_ENDPOINT = config.API_ENDPOINT || process.env.API_ENDPOINT || 'http://private-bf6ee-annon.apiary-mock.com';
export const API_ENDPOINT = config.API_ENDPOINT || process.env.API_ENDPOINT || 'http://dev.ehealth.world';

export const SITEMAP_HOSTNAME = config.SITEMAP_HOSTNAME || process.env.SITEMAP_HOSTNAME || 'http://localhost:8080'; // used in sitemap
export const LANG_COOKIE_NAME = config.LANG_COOKIE_NAME || process.env.LANG_COOKIE_NAME || 'lang';
Expand Down
2 changes: 2 additions & 0 deletions app/common/containers/pages/HomePage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { connect } from 'react-redux';
import { provideHooks } from 'redial';
import withStyles from 'withStyles';
import Helmet from 'react-helmet';

import Icon from 'components/Icon';
import HealthBanner from 'components/HealthBanner';
Expand Down Expand Up @@ -33,6 +34,7 @@ export default class HomePage extends React.Component {
const { apisStatuses } = this.props;
return (
<div className={styles.wrap}>
<Helmet title={PROJECT_NAME} />
<header className={styles.header}>
<div className={styles.header__in} style={{ backgroundImage: PROJECT_BACKGROUND && `url(${PROJECT_BACKGROUND})` }}>
{ PROJECT_NAME && <h1>{PROJECT_NAME}</h1>}
Expand Down