You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by to...@apache.org on 2018/07/19 10:54:14 UTC
[ambari] branch branch-2.7 updated: [AMBARI-22832] Add flexible
environment handling and environment depended API Url config. (#1778)
This is an automated email from the ASF dual-hosted git repository.
tobiasistvan pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new cebad74 [AMBARI-22832] Add flexible environment handling and environment depended API Url config. (#1778)
cebad74 is described below
commit cebad740ac6be0fbed8b754af7279ecdea970f97
Author: Istvan Tobias <to...@gmail.com>
AuthorDate: Thu Jul 19 12:54:10 2018 +0200
[AMBARI-22832] Add flexible environment handling and environment depended API Url config. (#1778)
---
ambari-logsearch/ambari-logsearch-web/.gitignore | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/ambari-logsearch/ambari-logsearch-web/.gitignore b/ambari-logsearch/ambari-logsearch-web/.gitignore
index 54bfd20..04e38b9 100644
--- a/ambari-logsearch/ambari-logsearch-web/.gitignore
+++ b/ambari-logsearch/ambari-logsearch-web/.gitignore
@@ -40,3 +40,24 @@ testem.log
# System Files
.DS_Store
Thumbs.db
+
+# Development Test Files
+#
+# Webpack Development Config
+# In order to use Webpack Devserver proxy without changing the main config file
+# and commit accidentally we can use a webpack.config.dev.js file for that
+# Eg.:
+# const merge = require('webpack-merge');
+# const baseConfig = require('./webpack.config.js');
+#
+# module.exports = merge(baseConfig, {
+# devServer: {
+# historyApiFallback: true,
+# proxy: {
+# '/': 'http://c7401.ambari.apache.org:61888'
+# }
+# }
+# });
+# And you can start it that way: NODE_ENV=production yarn start --config webpack.config.dev.js
+# You have to set the NODE_ENV to production in order to skip the mock data usage
+webpack.config.dev.js