rasodu / DLEMP

0 stars 0 forks source link

Elixir support for windows vm work around #12

Closed rasodu closed 8 years ago

rasodu commented 8 years ago

This PR targets issue #11.

Only a single file, 'cmd', is changed to add the support. All commands are added in a single block at the end of the file. So if this issue get resolved by Microsoft or Docker, then we can easily remove the work around that we have added to this repository.

rasodu commented 8 years ago

Command to run gulp tasks.('gulpfile.js' should be copied each time the file is updated. This is because if you create a symbolic link to '/usr/share/nginx/WEBAPP/gulpfile.js', then gulp is executed with base directory '/usr/share/nginx/WEBAPP/')

cd /DLEMP/nodejs
npm install
cp /usr/share/nginx/WEBAPP/gulpfile.js . && cp -r /usr/share/nginx/WEBAPP/resources . && gulp

*Note: gulp watch doesn't work since we need to copy 'resources' folder.

rasodu commented 8 years ago

After second work around elixir is fully supported on windows.

Now 'node_module' is installed in parent directory of 'WEBAPP' directory. 'npm install' works as expected because 'node_module' directory is no longer part of docker volume. All node script in 'WEBAPP' has access to module installed in parent directories 'node_module' folder.

elixir.config.browserSync.proxy= "https://nginxhttps";
cd /usr/share/nginx
npm install
cd WEBAPP
gulp watch