Set up docker and docker-compose for SSR

This commit is contained in:
Jan Tuomi
2018-08-19 14:19:22 +03:00
parent 05006c15e0
commit 5afeff03dd
6 changed files with 161 additions and 27 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ module.exports = function (env, argv) {
base.mode = "development";
base.entry = [
"react-hot-loader/patch", // Activate HMR for React
"webpack-dev-server/client?http://0.0.0.0:8080", // Bundle the client for webpack-dev-server and connect to the provided endpoint
"webpack-dev-server/client?http://0.0.0.0:3000", // Bundle the client for webpack-dev-server and connect to the provided endpoint
"webpack/hot/only-dev-server", // Bundle the client for hot reloading, only- means to only hot reload for successful updates
"./index.tsx" // The entry point of our app
];
@@ -19,7 +19,7 @@ module.exports = function (env, argv) {
hot: true, // Enable HMR on the server
historyApiFallback: true,
host: '0.0.0.0',
port: '8080',
port: '3000',
allowedHosts: [
'.sik.party',
'.sahkoinsinoorikilta.fi',