Code Monkey home page Code Monkey logo

Comments (9)

welcome avatar welcome commented on June 12, 2024

Thanks for opening your first issue here! Be sure to follow the issue template and include your OS/Vagrant/VVV versions! Don't forget you can get support in the VVV slack at https://varyingvagrantvagrants.org/docs/en-US/slack/

VVV
Join the VVV Slack Workspace

from vvv.

tomjn avatar tomjn commented on June 12, 2024

Honestly, just pretend you paid a host named VVV and the problem becomes a general one that applies to anywhere.

E.g. if you created a site on GoDaddy and need to migrate it to Siteground with a new URL what would be the difference? It's all the same tools and software.

Generally you'd want to export the sites data, put it on the host, search replace the name. Plugins might do it another way, you might even choose to keep identical hosts locally so they all use the same URLs ( at the cost of not being able to access production while using VVV due to the hosts file change ).

You'll likely see thousands of contradicting opinions on how to migrate a site, that the host you're migrating from is on the desk in front of you shouldn't change that much.

The parts that are VVV specific though that might help:

  • PHPMyAdmin is in the dashboard
  • There's a SequelPro/SequelAce config file in the database folder if you use those clients to save time
  • the database details for accessing via an external client are on the main docs site in the default credentials page under reference if I remember right
  • WP CLI can export and do the search replace, no VVV specific steps there either
  • if you have DB backups turned on in config.yml then the database got dumped in a zip file when you ran vagrant halt
  • the standard WordPress importer/exporter was always an option, mileage may vary

Also, what's a good open source software to deploy a website in debian?

Honestly I couldn't say, there's no correct answer, and it needn't even be Debian specific as a lot of the same tools work on Windows/MacOS/etc

from vvv.

digitalnb avatar digitalnb commented on June 12, 2024

ok,, thanks. Should i have used the original site name when i build stuff, to avoid migration issues? I'm not sure if that's possible offline? How then...
I will have to fix the migrate issues when i try that later on... But for future work. Should i have the name of the real site address, but offline then? Or is vvv.test fine also? How do you design and working with addresses? And most...
Also, i will find some good software later on when i put it up... But feels like i should have used the original name, in some host file.. Then i would been able to just restore the site with updraft plugin, and it's all working. If i now create a wordpress site and upload the updraft plugins, i'm not sure how that will look! Experiments for now... Hope it works though! And i can change some stuff in the URL.. hmm. Hope it's not to hard, because it's pretty cool designed in my opinion, and like flow, motions and stuff i learnt. just want an easy migration later on. I should probably needed to change some host file, and create offline for an easier time when i put it online in a few weeks. It's a great tool for offlline use, i just need to learn it better probably with migration, or URL renaming when i start my next project, if i already have the domain name. It's lot to learn in both web development and setting up a site, or migrating, etc... But i will get there eventually.. Will be kinda interesting to see how it goes. Hmm.. Hoping for the best. I should have asked here before i started to design though..

But for the next project. I wanna name it to the real domain name in some host file, right? Designing in vvv.test is not recommended? Or is it no big deal with the migration and kinda easy?

Might have been a big DOH on this one.. I'm kinda new in both linux, web development and everything. Just learning.
Seems like an awesome project for designing offline though, and the best i have found! I just need to learn howto use it more when it comes to addresses and designing, deploying websites in the best ways really..
I reckon i did not read through everything before i started designing... The real website URL would been the best with offline designing of-course. But i will probably manage to migrate it later on, and it's help here also, so that's cool. thanks
Also pretty awesome that i have designed and created my first website offline! :) vvv vagrant is dope!
Just gotta gather some info on how to deploy it later on. But i will probably use updraft plugin, and then maybe need to change a few files.. maybe not.. Time will tell..

from vvv.

tomjn avatar tomjn commented on June 12, 2024

from vvv.

digitalnb avatar digitalnb commented on June 12, 2024

Ok, well i don't know how individuals fix with staging environment, or migrates a site to a new host+domain, yet....
But it can't be that hard. I can also ask for some support here when i try it in a few weeks. But yeah, lots of ways seems good.
But i will probably try the updraft plugin, then get back here.. Thanks

from vvv.

tomjn avatar tomjn commented on June 12, 2024

They all involve exporting the DB, changing the URL using a tool, then putting that DB on production. Note that if you want to keep the production DB and do partial updates then things get a lot more complicated and the number of options for how to do it reduces significantly, very few people have an answer for that and it's very context dependent.

It's also dependent a lot on the skill level and skill set of the person doing it. E.g. for some people they download and install a plugin at both ends and connect them and the plugin does all the work. For other people WP CLI is the answer. Other do it all manually with separate tools

If you're comfortable in the command line and want to use WP CLI, take a look at https://developer.wordpress.org/cli/commands/search-replace/, and avoid doing a search replace SQL statement as it'll corrupt any values if your new URL has a different length

WordPress Developer Resources
Searches/replaces strings in the database.

from vvv.

tomjn avatar tomjn commented on June 12, 2024

From the VVV docs:

from vvv.

digitalnb avatar digitalnb commented on June 12, 2024

Thanks, well i'm hoping updraft plugins fixes much of this on the fly..
https://wordpress.org/plugins/updraftplus/

That's what i will start with. Then i can get back here..
I have paid for the premium and it seems smart.. It even says migration on the link so yeah. Hoping for the best. ;) I might design a bit today also actually... loving that tool so far! But yeah, i think that will work later on actually. I might need to change a few lines of url code i did manually, on the site itself though.

WordPress.org
Backup, restoration and migration - world's most popular backup tool. Backup to the cloud - schedule backups or backup manually.

from vvv.

tomjn avatar tomjn commented on June 12, 2024

From a quick look that might do the job, I'm going to close this out but feel free to reopen if there's anything on the VVV side

from vvv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.