Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to move theme to prod server #9

Open
deimidis opened this issue Oct 17, 2020 · 2 comments
Open

How to move theme to prod server #9

deimidis opened this issue Oct 17, 2020 · 2 comments

Comments

@deimidis
Copy link

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

@ArcticSpaceFox
Copy link

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

@ArcticSpaceFox
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants