Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

Fixing bug in deployment and problem with npm start. #4

Merged
merged 2 commits into from
Jun 4, 2019

Conversation

joeldenning
Copy link
Collaborator

No description provided.

@@ -15,8 +15,9 @@ deploy:
cache-control: "max-age=31536000"
local_dir: dist
skip_cleanup: true
acl: public_read
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required to make the uploaded js files available in Digital Ocean spaces

package.json Outdated
@@ -5,7 +5,7 @@
"main": "dist/root-config-lib.js",
"scripts": {
"clean": "rimraf dist",
"start": "webpack-dev-server --port",
"start": "webpack-dev-server",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The convention established by fatma and me is that to run the project you should do npm start -- --port 8081

@@ -24,7 +24,8 @@ module.exports = {
devServer: {
headers: {
"Access-Control-Allow-Origin": "*"
}
},
disableHostCheck: true
Copy link
Collaborator Author

@joeldenning joeldenning Jun 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this because we're loading these apps dynamically via SystemJS from urls instead of on a hard coded url and domain.

https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck

@joeldenning joeldenning merged commit e642e3e into master Jun 4, 2019
@joeldenning joeldenning deleted the build-fixes branch June 4, 2019 14:49
joeldenning added a commit that referenced this pull request Jun 20, 2019
Fixed Patient Search For Hackathon
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants