Skip to content

Commit d0bccf0

Browse files
committed
⚙️ Fixing app build: build process & lighter app
1 parent 0d443cc commit d0bccf0

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: cd stubs/dashboard && ls && npm install --production=false && npm run generate && cp -R dist/. ../lrm/ui && cd ../lrm && npm install --production=false && npm run start
1+
web: npm start

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"doc": "docs"
1111
},
1212
"scripts": {
13-
"test": "echo \"Error: no test specified\" && exit 1"
13+
"heroku-prebuild": "cd stubs/dashboard && npm install && npm run generate && cp -R dist/. ../lrm/ui",
14+
"build": "cd stubs/lrm && npm install",
15+
"start": "cd stubs/lrm && npm start"
1416
},
1517
"repository": {
1618
"type": "git",

stubs/lrm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"license": "Unlicense",
1616
"private": true,
1717
"dependencies": {
18+
"axios": "^0.19.2",
1819
"body-parser": "^1.19.0",
1920
"camelcase": "^5.3.1",
2021
"cookie-parser": "^1.4.4",
@@ -30,7 +31,6 @@
3031
"winston": "^3.2.1"
3132
},
3233
"devDependencies": {
33-
"axios": "^0.19.2",
3434
"chai": "^4.2.0",
3535
"chai-as-promised": "^7.1.1",
3636
"eslint": "^5.16.0",

0 commit comments

Comments
 (0)