Skip to content

Commit

Permalink
feat: add innodb env
Browse files Browse the repository at this point in the history
  • Loading branch information
xudafeng committed Dec 18, 2019
1 parent 928f2b5 commit 460f60d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/reliable-mysql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ FROM mysql:5

ENV MYSQL_ROOT_PASSWORD=reliable

ENV innodb_temp_data_file_path = ibtmp1:12M:autoextend:max:5G

COPY docker-entrypoint-initdb.d /docker-entrypoint-initdb.d
6 changes: 6 additions & 0 deletions view/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

import React from 'react';
import ReactGA from 'react-ga';
import ReactDOM from 'react-dom';
import { Route, BrowserRouter } from 'react-router-dom';
import { addLocaleData, IntlProvider } from 'react-intl';
Expand Down Expand Up @@ -44,6 +45,11 @@ const chooseLocale = () => {
};
const lang = chooseLocale();

window.addEventListener('load', () => {
ReactGA.initialize('UA-49226133-2');
ReactGA.pageview(window.location.pathname + window.location.search);
});

ReactDOM.render(
<IntlProvider
locale={lang.locale}
Expand Down

0 comments on commit 460f60d

Please sign in to comment.