wp-tailwindcss-theme-boilerplate icon indicating copy to clipboard operation
wp-tailwindcss-theme-boilerplate copied to clipboard

How to move theme to prod server

Open deimidis opened this issue 4 years ago • 2 comments

Hello, I don't know if this is the place to ask questions. I really enjoy your solution to wordpress theme development. I'm using it for a project, and I had this question on how to make it work. I run npm run prod and it seems worked. Then send the files with FTP (ignoring node-moduls, etc) . Activate the theme and worked, unless css is not loaded. I add it mannually to the header and then work, but I'm pretty sure I'm doing something wrong.

Could it be different PHP versions?

My local development is made with varying vagrant vagrants and then use everything as you wrote it on the README file.

Again, thanks for your work

deimidis avatar Oct 17 '20 20:10 deimidis

I am interested in this one too O.o @mishterk how did u do it, it wants the dist folder pls help

ArcticSpaceFox avatar Aug 15 '21 23:08 ArcticSpaceFox

Ok you do the following:

  1. npm i to install all dependencies (locally)
  2. npm run prod to let tailwind compile and minimize
  3. rm /node_modules delete the node modules or just later not move it to your production server
  4. copy all files (except node modules and local.json) to prod server

ArcticSpaceFox avatar Aug 15 '21 23:08 ArcticSpaceFox