jakemackie / wordpress

A full stack web social platform as a way of learning Wordpress
2 stars 0 forks source link

Development vs Production: Environments #11

Closed jakemackie closed 3 weeks ago

jakemackie commented 3 weeks ago

After thinking about our current Docker setup, it would be beneficial to:

jakemackie commented 3 weeks ago

Thoughts on this? @alfiephillips

alfiephillips commented 3 weeks ago

After thinking about our current Docker setup, it would be beneficial to:

  • copy the compiled dist folder in a production container where frontend changes aren't made.

  • use the node image to build tailwindcss in a development container, where frontend change are made.

Sounds good, need to also ensure we can develop and see live changes without having to re-initialize the container everytime we make a change.

We also want to make sure we manage our environment to detect if we're in production; for example there's some settings in wp-config.php for verbosity and deciding our site url etc.

We are also going to want to include webpack for the production environment.

alfiephillips commented 3 weeks ago

Closing this issue as removing all processes including docker and reverting to using XAMPP server.