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

Is there any way to set up production as a git repo instead of a package? #640

Open
Valid opened this issue May 20, 2020 · 3 comments
Open
Labels
documentation Issue in documentation or videos

Comments

@Valid
Copy link

Valid commented May 20, 2020

My typical development flow involved making the theme a git repo, make changes, push changes, changes get auto-pulled from git, site is updated.

WP-RIG appears to only provide an 'export' functionality unless I want to run the dev watcher on production (which I imagine would have performance implications)

Any ideas on how I can set this up so that I can make changes to the codebase and have them reflected on the production site without rebundling/uploading?

@Valid
Copy link
Author

Valid commented May 28, 2020

Update: I've turned off 'compress' so it generates a new theme, and that seems to work decently, but it breaks the site for anyone accessing the it during the build process. Anyone have a more elegant solution?

@digisavvy
Copy link

@Valid - I feel like using a CI tool would be a better approach for you, that way you can setup a job that runs your asset builds and then deploys. Have a look at https://branchci.com - it has a recipe for WP Rig.

@jacklowrie
Copy link

You could also try Github actions - We set up one at work that runs on every push to main that runs the bundle process, scp's the zip file to our prod environment, then removes the old version of the theme and extracts the new version. As long as you have ssh access to prod, this should work pretty well. For us using WP Engine, the action completes in ~ 2 minutes.

@jacklowrie jacklowrie added the documentation Issue in documentation or videos label Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issue in documentation or videos
Projects
None yet
Development

No branches or pull requests

3 participants