-
Notifications
You must be signed in to change notification settings - Fork 15
Issues when removing files/folders from repo #1
Comments
I can take look to see if anything jumps out at me with the Below is a link from the official writeup https://wpengine.com/git/#toc_2
You add a file to your application, commit and push it to WP Engine, You can try to edit 1 file and utilize |
Hello, thank you for helping me out with issues in the past. It looks like I am running into a new one. I haven't pushed to my server in a few months (been working on a large project). Now I am trying to push my wp theme to wp engine via codeship and running into this error.
I haven't changed anything. So I'm not sure why this error is being generated? Any assistance is greatly appreciated. Thank you, Peter |
Hey @s1100h Are you trying to push to In the last few months there have been a bunch of major changes to the deployments script to work with the new process. We've done a lot of work to keep it backwards compatible but it all depends on what version of the deployment you've been using |
@fischfood I think just had to adjust this for one of our installs. |
I am trying to push to staging. I started fresh with a new plugin and followed these instructions. https://github.com/linchpin/wpengine-codeship-continuous-deployment I figure if I can get the process down with a new plugin I'll know what's wrong and go back and fix my main theme, and a few other plugins I have running this CI process. |
Wait though, that doesn't answer my first question. Are you using legacy staging? Or did you make a new staging "install" environment? example to look at it are you visiting |
Things I would look at regardless. Are your git user public keys still good? Do they match what is in EP Engine for your install(s). That message leads me to believe that you do not have a git push user setup on your install. Or the public key for your CI/CD solution has changed |
I'm pretty sure I am still using legacy staging. I haven't done anything to update it. I think there might be some confusion with my public keys and git push user set up. Any good documentation on setting that up? I think I'm so far down the rabbit hole it might be better to burn and rebuild. |
Well it's not Your public key really. You'd grab the public key from Codeship (or the CI/CD you use) for the specific project you are deploying. That public key then gets copied and added as a Git Push User in the WP Engine portal. |
You could also convert the install to the new way WP Engine wants, and then just create a new staging environment as well. You'd still need walk through the process, copy the Codeship public key, add the key as a new Git Push User in WP Engine. make sure you setup the environment variables. The ReadMe.MD walks through the entire process. We haven't had any specific feedback about needed clarity. If you have any suggestions or have gotten lost anywhere let us know. |
Yep that's weird because I definitely did that.
I created a new project in codeship, linked it to my github repo, copied the ssh key after the project was set up, then I added the ssh key to wp engine creating a new developer, and named that developer Codeship-attorneybio The failure comes with either it doesn't know who the developer or I misspelled my repo-name. |
should the username in the environment variables be the username/reponame? |
How long did you wait to do it? It can take a few minutes for the permissions to be set. 10 -15 min or so. No username is stored in the environment variables. It's only the WPE_INSTALL, REPO_NAME (which really just becomes a folder name) and the PROJECT_TYPE |
ah gotcha. It's been about 30 mins now |
Yeah it shouldn't take that long for permissions. And you tried to deploy again since then? |
just to confirm your WPE Install is |
Trying to rule out install typos |
yep |
I'm pushing again now |
It failed again. I'm going to call it a night on this task. Thank you so much for your help!! |
Going to try it real quick using the "old way" and see if it throws me any errors |
Great! What were the results? |
So it still works on legacy as well (at least pushing to master). I didn't try staging but the rules still apply. The git user in WP Engine is the same on legacy staging and master. If you use the newer way the git push users need to be added to each install |
Are you positive you have the proper WPE_INSTALL environment variable setup |
Yep those are all corrrect. Sorry for the delay but I was on the chat with WP engine all morning. Still no solution :/ But it did set up staging remote to the project based on this article https://wpengine.com/support/using-git-on-sites-with-legacy-staging/ In hopes that would help, but it didn't. |
Hello, thank you so much for making this shell script available it really helped me set up a great CI pipeline for my WordPress themes. However, I am running into an issue when I try to remove folders/files from my repo and push it to my site hosted on WP Engine.
The push fails because codeship believes that everything is up to date. This is the error I get when I remove folders/files from my local site and push to github.
The text was updated successfully, but these errors were encountered: