Ok, so i am a very new to wordpress development.
I have setup a server on amazon aws which i have wordpress already installed and running on that is my production server. I have setup a development environment on my local machine running on mamp and have a github repository where i push all my dev changes to. I then push those changes onto my production server when they are ready.
So my question and where i get confused is, when i push my changes to the production server the /dist folder is ignored through the .gitignore file for whatever reason, and my site doesn’t build cause it is trying to pull resources from a folder (dist) that technically does not exist. I have been researching and most developers say you should not run gulp on your production server. So what am i missing or not doing that i should be, so that when i push to my live server i have a completed build of my website? Same as if i were to run the gulp command on my development (local) environment and everything builds beautifully.