My first Sage project is ready. It’s been an interesting journey…
I am developing locally with MAMP as I am still learning and experimenting with Git, Trellis & Bedrock.
There’s just a few things that are not 100% clear to me and need some clarification please.
As I said, my project is ready in Dev, I haven’t ran
gulp --production as I am not sure what will happen… I know
gulp --production will generate the production assets but I’m scared!
I would like to save a copy of my project in a private Git repo as it might be a good base for a new project later. Should I do this before creating the production assests (
gulp --production) or after?
I want to be able to start a new project at any time with the same files I have now in MAMP.
gulp --productionwill generate production assets. The asset filenames will automatically change due to revisioning. I guess I have to run
gulp --productionon my MAMP environment and copy everything over via FTP afterwards as I have limited access (FTP only) to the production server. I know guys, this is far from ideal, I am investigating in a better workflow but I need some more time.
What exactly will be happening with the Assets folder? It will be ignored after running
gulp --productionand the Dist folder will be used instead? Should I copy the Assets folder to the production environment or can I forget about that folder in production?
Any other files or folders that should not be copied over to production?
What about the environment variable? Where has it gone? It’s not in functions.php anymore. No need to change anything before moving to production or running
gulp --production? What about
Let’s say I need to change a few things on my website. Because my workflow currently sucks, the best way to do this would be FTP’ing everything back to development but all my files will be minified, renamed after running
gulp --production, right? How do I get everything back as it was before running
Any other recommandations? "Not being scared of the
gulp --production command I guess? Anything I haven’t covered and is required to move from dev to prod?
Thanks a lot for taking the time to answer my questions! I’d appreciate your feedback!