These are chat archives for reactioncommerce/reaction

24th
Feb 2019
Ticean Bennett
@ticean
Feb 24 03:40
Hi @janus-reith, I'm not sure if I tracked along perfectly with what you need to do but this came to mind... :) The dockerize project has helpful utilities. You can use it to apply dynamic ENV to templated files in a Docker image. So you could add ENV vars and use them to write the settings file you need. Assuming you're running Docker on the server and are OK with customizing your Dockerfile. https://github.com/jwilder/dockerize
Marvin Kome
@marvinkome
Feb 24 14:56
@janus-reith after removing the mongo field from docker-compose.yml i get reaction_reaction_1 exited with code 10
Marvin Kome
@marvinkome
Feb 24 15:04
mongo is not defined
Philipp Laurim
@EdgarNigel
Feb 24 15:16
@elhil sorry for the late reply. Here’s the Hompage Component:
import React from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";

import HomePageHero from "../HomePageHero/HomePageHero";


const styles = (theme) => ({
    homepage: {
        alignItems: "center",
        display: "flex",
        justifyContent: "center",
        marginBottom: theme.spacing.unit * 2,
        color: "green"
    }
});

const HomePage = () => (
    <Typography variant="caption">
        <div className="homepage">
        <HomePageHero />
            <p>This is out placeholder text</p>
        </div>
    </Typography>
);

HomePage.propTypes = {
  classes: PropTypes.object
};

export default withStyles(styles)(HomePage);
and this is the respective pages file:
import React, { Component, Fragment } from "react";
import PropTypes from "prop-types";
import { observer, inject } from "mobx-react";
import Helmet from "react-helmet";
import HomePage from "custom/components/HomePage/HomePage";

@inject("routingStore")
@observer
class Home extends Component {
  static propTypes = {
    routingStore: PropTypes.object,
    shop: PropTypes.shape({
      currency: PropTypes.shape({
        code: PropTypes.string.isRequired
      })
    })
  };


  render() {
    const { shop } = this.props;

    return (
      <Fragment>
        <Helmet>
          <title>{shop && shop.name}</title>
          <meta name="description" content={shop && shop.description} />
        </Helmet>
        <HomePage />
      </Fragment>
    );
  }
}

export default Home;
the „homepage“ class styling doesn’t seem to work