This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Resources: | |
| AWSEBAutoScalingGroup: | |
| Metadata: | |
| AWS::CloudFormation::Authentication: | |
| S3Auth: | |
| type: "s3" | |
| buckets: ["yourbucketname"] | |
| roleName: | |
| "Fn::GetOptionSetting": | |
| Namespace: "aws:asg:launchconfiguration" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Resources: | |
| sslSecurityGroupIngress: | |
| Type: AWS::EC2::SecurityGroupIngress | |
| Properties: | |
| GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]} | |
| IpProtocol: tcp | |
| ToPort: 443 | |
| FromPort: 443 | |
| CidrIp: 0.0.0.0/0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| restart_sidekiq: &RESTART_SIDEKIQ | |
| mode: "000755" | |
| content: | | |
| #!/bin/bash | |
| initctl restart sidekiq || initctl start sidekiq | |
| ln -sf /var/app/current/log/sidekiq.log /var/app/containerfiles/logs/sidekiq.log | |
| mute_sidekiq: &MUTE_SIDEKIQ | |
| mode: "000755" | |
| content: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import { Provider } from 'react-redux'; | |
| import store from './store'; | |
| import App from './containers/App'; | |
| ReactDOM.render( | |
| <Provider store={store}> | |
| <App /> | |
| </Provider> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createStore, applyMiddleware } from 'redux'; | |
| import thunk from 'redux-thunk'; | |
| import reducers from '../reducers'; | |
| const middleWare = [thunk]; | |
| const createStoreWithMiddleware = applyMiddleware(...middleWare)(createStore); | |
| const store = createStoreWithMiddleware(reducers); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { combineReducers } from 'redux'; | |
| import { reducer as form } from 'redux-form'; | |
| const appReducer = combineReducers({ | |
| form, | |
| }); | |
| export default function (state, action) { | |
| if (action.type === 'LOGOUT') { | |
| return appReducer(undefined, action); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @flow | |
| import React, { Component } from 'react'; | |
| import { BrowserRouter, Match, Miss } from 'react-router'; | |
| import Home from '../Home'; | |
| import NotFound from '../../components/NotFound'; | |
| class App extends Component { | |
| render() { | |
| return ( | |
| <BrowserRouter> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @flow | |
| import React from 'react'; | |
| const Home = () => | |
| <div>Home</div>; | |
| export default Home; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @flow | |
| import React from 'react'; | |
| import { Link } from 'react-router'; | |
| const NotFound = () => | |
| <div style={{ margin: '2rem auto', textAlign: 'center' }}> | |
| <p>Page not found</p> | |
| <p><Link to="/">Go to the home page →</Link></p> | |
| </div>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "parser": "babel-eslint", | |
| "plugins": ["react", "flowtype"], | |
| "extends": ["airbnb", "plugin:flowtype/recommended"], | |
| "rules": { | |
| "react/jsx-filename-extension": 0, | |
| "import/prefer-default-export": 0, | |
| "react/no-unused-prop-types": 0, | |
| "camelcase": 0 | |
| }, |
OlderNewer