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
diff --git a/src/amo/components/AddonDetail.js b/src/amo/components/AddonDetail.js | |
index 18f0ef9..4e46107 100644 | |
--- a/src/amo/components/AddonDetail.js | |
+++ b/src/amo/components/AddonDetail.js | |
@@ -1,6 +1,10 @@ | |
import React, { PropTypes } from 'react'; | |
+import { connect } from 'react-redux'; | |
+import { asyncConnect } from 'redux-async-connect'; | |
import translate from 'core/i18n/translate'; |
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
diff --git a/src/amo/components/AddonDetail.js b/src/amo/components/AddonDetail.js | |
index 18f0ef9..8ef43ba 100644 | |
--- a/src/amo/components/AddonDetail.js | |
+++ b/src/amo/components/AddonDetail.js | |
@@ -1,7 +1,12 @@ | |
import React, { PropTypes } from 'react'; | |
+import { connect } from 'react-redux'; | |
+import { asyncConnect } from 'redux-async-connect'; | |
import translate from 'core/i18n/translate'; |
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
diff --git a/src/config.js b/src/config.js | |
new file mode 100644 | |
index 0000000..226fd0c | |
--- /dev/null | |
+++ b/src/config.js | |
@@ -0,0 +1,6 @@ | |
+export function applyConfigToArgv({argv, configObject}) { | |
+ // Replace argv with config file option values. | |
+ // This is of course only a naiive implementation that is missing | |
+ // many things. |
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
diff --git a/src/config.js b/src/config.js | |
index 92cf9a9..08b839a 100644 | |
--- a/src/config.js | |
+++ b/src/config.js | |
@@ -53,4 +53,4 @@ export function loadJSConfigFile(filePath: string) { | |
throw new UsageError | |
(`Cannot read config file: ${filePath}\nError: ${error.message}`); | |
} | |
-} | |
\ No newline at end of file |
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
require('babel-register'); | |
const fs = require('fs'); | |
const readline = require('readline'); | |
const rl = readline.createInterface({ | |
// This was a log file from production for a single NodeJS app instance. | |
// It had 7 OOM crashes. After each crash the app was restarted. | |
input: fs.createReadStream('/Users/kumar/Downloads/docker-addons-frontend.service.log'), | |
}); |
OlderNewer