azukiapp / azk

azk is a lightweight open source development environment orchestration tool. Instantly & safely run any environment on your local machine.
http://azk.io
Apache License 2.0
897 stars 63 forks source link

[suggestions] Adding `node_modules` and `vendor` to laravel suggestion #546

Closed gullitmiranda closed 8 years ago

gullitmiranda commented 8 years ago

Rodrigo Rigoni was facing problems with high CPU usage by azk sync. The problem of the reason was that the Azkfile.js suggested to Laravel applications did not have mounts for the folders node_modules and vendor, as they are in .gitignore.

Just add the following lines to the application of mounts that the problem should be solved.:

      mounts: {
        // ...
        '/azk/#{manifest.dir}/node_modules': persistent("./node_modules"),
        '/azk/#{manifest.dir}/vendor'      : persistent("./vendor"),
      },