create script for docker dev
This commit is contained in:
1 parent
c2212119f0
commit
9c08faeba5
3 files changed
+3
-1
No files matched your search
@@ -71,6 +71,8 @@ yarn install
|
||||
|
||||
# Start dev server
|
||||
yarn run dev
|
||||
# Or if you are using docker (to bind to 0.0.0.0 instead of loopback)
|
||||
# yarn run dev:docker
|
||||
|
||||
# Start the node server in another terminal window.
|
||||
yarn run start
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "webpack-dev-server --env.file=development --mode development --devtool inline-source-map",
|
||||
"dev:docker": "yarn run dev --host=0.0.0.0",
|
||||
"build": "webpack",
|
||||
"production": "NODE_ENV='production' && webpack --env.file=production --mode production && node server",
|
||||
"start": "node server",
|
||||
|
||||
@@ -11,7 +11,6 @@ module.exports = env => ({
|
||||
contentBase: path.join(__dirname, './server/www'),
|
||||
compress: true,
|
||||
port: 9001,
|
||||
host: '0.0.0.0',
|
||||
historyApiFallback: true,
|
||||
proxy: {
|
||||
'/': {
|
||||
|
||||
Reference in new issue
Block a user