I have enabled Production mode for my Magento 2 website, and when I run setup:static-content:deploy
, it creates two folders - en_AUen_AU
and en_US in pub/static/frontend/mytheme/en_US
.
In pub/static/frontend/mytheme/
, en_USen_US
folder has all nessesary files generated, and en_AUen_AU
folder has only one .js.js
file generated.
When I refresh my front-end, I can see all files including css and js are loaded from en_AUen_AU
folder, but since this folder is emtpy, so my front-end is not displaying correctly. Then I need to manually copy everything from en_USen_US
to en_AUen_AU
to make front-end working.
whyWhy does system creates two folders with one has all contents, and another empty, but front-end is reading from the empty folder.
How can I fixed this issue ?