search

Home  >  Q&A  >  body text

When multiple laravel projects are deployed, the vender folder is the same. How to share this vender folder?

The vender folder is the same when multiple laravel projects are deployed. How to share a vender folder?

Or to be more thorough, if two projects only have different env files (databases are separate) and public folders, and the contents of other folders are the same, how can they share these same files and folders when deployed on centos? Woolen cloth? Use soft connection?

習慣沉默習慣沉默2747 days ago488

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 16:50:35

    You answered it yourself. Soft link. Why are you still asking?

    In fact, the place where the vendor is specified in the project is loaded in index.phprequire __DIR__.'/../bootstrap/autoload.php';

    Just change it here orz

    reply
    0
  • Cancelreply