devgeniem / gdev

Helper script for developing containerized web applications.
https://devgeniem.github.io/gdev/
MIT License
29 stars 16 forks source link

Npm install sync problems #16

Open villesiltala opened 8 years ago

villesiltala commented 8 years ago

After installing node modules within the front container and running webpack, the sync fails due to permission issues.

Docker version 1.12.1, build 6f9534c

Looking for changes
  Waiting for changes from server
Reconciling changes
chgd dir ====> deleted    web/app/plugins/dustpress-events/node_modules/.staging
Propagating updates
UNISON 2.48.4 started propagating changes at 09:41:34.28 on 20 Sep 2016
[BGN] Copying web/app/plugins/dustpress-events/node_modules/.staging from /Users/villes/Projects/turkuamk to //48ef53ef0177//var/www/project
Failed: Error in creating directory:
Permission denied [mkdir(/var/www/project/web/app/plugins/dustpress-events/node_modules/.unison..staging.8b3b5c40481f22f94eb530f1f649c57e.unison.tmp)]
100%  00:00 ETAFailed [web/app/plugins/dustpress-events/node_modules/.staging]: Error in creating directory:
Permission denied [mkdir(/var/www/project/web/app/plugins/dustpress-events/node_modules/.unison..staging.8b3b5c40481f22f94eb530f1f649c57e.unison.tmp)]
UNISON 2.48.4 finished propagating changes at 09:41:34.28 on 20 Sep 2016
Saving synchronizer state
Synchronization incomplete at 09:41:34  (0 items transferred, 0 skipped, 1 failed)
  failed: web/app/plugins/dustpress-events/node_modules/.staging```