-
Notifications
You must be signed in to change notification settings - Fork 867
What is the workflow for moving a local dev site to a new computer? #817
Comments
Hi there, I just recently went through this myself a few months ago when I switched from my iMac to a MBP. What I ended up doing, after I had a running WordPress installation on my new computer, was copy over my theme directory SANS Alternatively, if you're using Git and your remote is all up to date, you could just clone your repo into your |
thanks, I'll give it a try and let you know how it goes!!!! |
btw, I have node_modules removed, but I can't find bower_components, can you point me in the right direction? I see a few hidden files with "bower" in the file name and "bower.json" in the root. did you mean to write node_modules OR bower_components? excuse my Noob question... |
I have a dir called "FoundationPress/assets/components" that seems to be similar to bower_components -- it has "fontawesome", "foundation_sites", "jquery", "motion-ui" and "what-input" in it. Is that the one I should delete? thanks in advance |
Yes, that would be your bower components. It might be named different or in a slightly different location depending on if you have a more recent or older version of FP. I think I'm just used to calling it |
thanks for clarifying! |
ok, that didn't work, here is the npm-debug.log 0 info it worked if it ends with ok |
I had basically the same error when I was trying to move to a new computer as well, check out issue #773. Does deleting |
I've done it the hard way, I did a clean install and moved all my old files EXCEPT node_modules and assets/components and that seems to have done the trick, everything seems to be working, but I see some subtle changes in styles, I think maybe foundation has changed since my original build, that would be in assets/components I guess. I'm thinking that the potential to destroy my old site is too great. I can't develop too much longer on my old machine. I wish these dev repos were more portable.... blahhh |
I tried installing a new version of foundationPress in my themes folder, deleting it and then replacing it with the original theme from my old machine, the code wouldn't complile. (kept getting errors that sass couldn't work with the new foundation.css,etc...) Is there a quick way to get the new install of npm to work with my old code? btw, my old machine was running and my new machine is running could that be the issue? |
That difference in versions could possibly be contributing to your problems. Have you ever used Node Version Manager? With that you can manage a number of different Node versions. I remember having to switch back and forth when I'd work on various projects at the same time. |
@andreaarcher what version of Foundation was installed in your old computer? You can find this in Additionally, when you moved the project to the new computer (omitting I haven't had to do this before, but this is the process I would suggest:
This keeps all of your bower packages in And as previously mentioned, using a Node version manager will make your life a lot easier in times like these. |
looks like the old site was built on 6.1.2 and the fresh install on my machine is running 6.2.1. I'll try this new approach, THANKS!!! |
I just did what @colin-marshall suggested and everything went perfectly!! So to summarize for my future self, other team members or anyone else who can benefit: In order to move a local repo from one machine to another (or replicate it for another team member) and keep everything the same, do the following:
thanks to @swthate and @colin-marshall and the rest for all the great input!!! now I'm going to back up the live remote site and then start pushing my new code live, wish me luck! |
@andreaarcher that's awesome news! Quick question though - what about dragging the database over to a new machine? It's great that we have the theme itself, but the db would be great too. |
I use backup and transfer plugins for that-- I like wp-clone |
@andreaarcher glad we got you up and running! A pretty sweet command line solution I found for syncing WP is Wordmove. You can sync any combination of plugins, themes, uploads, db, and/or wordpress core. It goes super fast over SSH and you can have multiple environments (staging, production, etc.). It was a little confusing/intimidating at first but it's pretty awesome once you get the hang of it. |
Hello,
I'm hoping I can access the collective brain power of this group to clarify this:
I want to move my local dev site to a new computer:
I have MAMP stacks on both machines with wordpress installs. Do I:
set up a fresh build of FoundationPress on my new machine via the command line and then copy over (overwrite) the entire directory of my new build with the old FoundationPress theme (including the massive node_modules dir)?
would this work? is there a better workflow?
Both machines are macs running El Capitan
Thanks in advance
Andi
The text was updated successfully, but these errors were encountered: