Skip to content

Commit

Permalink
Further improvements to development support features of hook
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbrazzatti committed Dec 12, 2018
1 parent f934914 commit 02b70aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js.mst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function (sails) {
fs.copySync("node_modules/{{ packageName }}/assets/",".tmp/public/");
}

//If assets directory exists, there must be some assets to copy over
//If views directory exists, there must be some views to copy over
if(fs.pathExistsSync("node_modules/{{ packageName }}/views/")) {
fs.copySync("node_modules/{{ packageName }}/views/","views/");
}
Expand Down
2 changes: 1 addition & 1 deletion package.json.mst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"test": "NODE_ENV=test node_modules/.bin/mocha",
"installHook": "docker-compose -f support/development/docker-compose.yml run redboxportal /bin/bash -c 'cd /opt/redbox-portal;yarn add \"file:/opt/sailshook\";' ",
"installHook": "docker run -v $(pwd):/opt/sailshook qcifengineering/redbox-portal /bin/bash -c 'cd /opt/redbox-portal;yarn add \"file:/opt/sailshook\"'; docker commit $(docker ps -lq) redboxportalwithhook",
"runDev": "docker-compose -f support/development/docker-compose.yml up",
"runAngularDev": "docker-compose -f support/development/docker-compose.yml up | source support/development/monitorSailsWorkingDir.sh sailsWorkingDir"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
ports:
- "1500:1500"
volumes:
- "../../:/opt/sailshook"
- "../../:/opt/redbox-portal/node_modules/{{ packageName }}"
- "../../sailsWorkingDir/tmp:/opt/redbox-portal/.tmp"
expose:
- "1500"
Expand Down

0 comments on commit 02b70aa

Please sign in to comment.