All files needed or only /public files for production installation?

Hi,

I want to install Shopware 6 on my system but I am running a Docker setup where a /web directory is mounted and served to the web through Apache.

This /web directory is essentially the /public directory. Can I just upload the files from /public to that folder and skip all other files such as src, files, custom, config, vendor, etc.?

Currently, the /public folder is required and is not configurable in everyplace.

@Shyim schrieb:

Currently, the /public folder is required and is not configurable in everyplace.

I mean, do I only need the public folder or do I need all files? For a production instance

You need all files

public is the entrypoint for the webserver. So documentroot / root points there

@Shyim schrieb:

You need all files

public is the entrypoint for the webserver. So documentroot / root points there

but where does the webserver come from? I already have an apache setup where the /web directory is the entrypoint, so any index.php in there is served to the web. Can’t I just put Shopware’s public folder content in there? 

You just need to adjust the V-Host of the server to serve everything from the public folder. Normally every hoster offers this during domain setup.