site migration / copy

Post Reply
Kusalo
Jr. Bludit
Posts: 4
Joined: Tue Jul 09, 2024 9:12 am
Been thanked: 1 time

So, the new guy is all over this forum :)

1 - I uploaded my localhost install to my online server and it is all over the place.
2 - I made a copy of the 'bludit' folder and renamed it 'blud' but...

In both cases the site fell apart on load.
I found a 'localhost' url in databases/site.php which when changed to the new ref. looked OK but all links are bad = not found.

I found this:
viewtopic.php?p=5612#p5612
but the migration tool seems not to be available. I have searched generally but nothing comes up.

And, unfortunately, at the time of writing the docs.bludit site is timing out.

What settings need changing for a manual migration? Or... other?

thx - kusalo
User avatar
Jay
Master Bludit
Posts: 144
Joined: Mon Feb 11, 2019 8:41 pm
Has thanked: 6 times
Been thanked: 4 times

Why don't you try to set up a new instance of bludit on your production server, and use the builtin data backup and restore plugin?

Just have on mind backuping settings in site.php not to be overwritten during backup restoration.

The problem might occur with absolute URLs within page content.
Last edited by Jay on Wed Feb 26, 2025 12:40 am, edited 1 time in total.
arfa
Master Bludit
Posts: 164
Joined: Tue Jul 04, 2017 4:31 am
Location: New Zealand
Has thanked: 13 times
Been thanked: 27 times

Again, Jay - thx.
Part of the issue here is the precision of the question - can be a bit tricky, just one comma in the wrong place and the 'code' doesn't read.

I hope, more clearly, the question is: how to MOVE a site from one host location to another. Many of the questions on migration are related to cms platforms.

>> use the builtin data backup and restore plugin?
I don't see this on the std plugin-install list - and bludit.com is down so can't search there just now.

>> have on mind backuping settings in site.php
By this do you mean make a copy of site.php and overwrite the restoration version?

For sure absolute links will need manual adjustment.

Most of my development is offline; I am off-grid quite a lot.
I am quite happy with hand coding relevant pages and assume there would not be so many. It is one of the things I really like about bludit = small, simple.

I will look for the backup/restore plugin but, I do wonder...
What changes in various files (htaccess, themes, etc.) are needed to register the new location?

cheers - Kusalo
User avatar
SpegalDev
Sr. Bludit
Posts: 38
Joined: Tue Jun 13, 2023 11:27 pm
Location: Michigan, USA
Has thanked: 6 times
Been thanked: 34 times
Contact:

I believe this is the source of the actual Bludit Backup plugin: https://github.com/bludit-plugins/backup

You can download it here: https://github.com/bludit-plugins/backu ... master.zip
Image BluditLab — Explore a comprehensive collection of Bludit themes and plugins, offering both free and premium options to elevate your Bludit site. Find the perfect tools for customization, SEO, and more.
User avatar
Jay
Master Bludit
Posts: 144
Joined: Mon Feb 11, 2019 8:41 pm
Has thanked: 6 times
Been thanked: 4 times

arfa wrote: Mon Jul 22, 2024 12:08 am Most of my development is offline; I am off-grid quite a lot.
Developing on a windows localhost environment tends to be very problematic.
Basically you should put up a webdev env as close to the production env you will install the website at the end.
One of the basic things you'd need to do is to resolve the target domain on your localhost by configuring apache webserver in your wamp (assuming you work on windows OS).
I can't get into details as I haven't done this for years. Just pointing out crucial things.
This way you should have less problems with all configuration data during migration.

There are dozen approaches to migrate a website. One of the most important things before is to always use relative links, but most of the CMS available on the market tend to force absolute links in content.

anyway, installing a fresh CMS instance on production server, and then importing data from locally developed website tends to be the least problematic. You don't even need to use any backup solutions, just upload the content of /bl-content directory, and this should be enough. Like with every flat file cms. Ohh with 1 exception: do not overwrite the site.php config file in /databases dir as it contains installation settings.

unfortunately bludit's website is still down and as far as I remember there were some migration and update hints for new users.

.
Last edited by Jay on Wed Feb 26, 2025 12:39 am, edited 2 times in total.
arfa
Master Bludit
Posts: 164
Joined: Tue Jul 04, 2017 4:31 am
Location: New Zealand
Has thanked: 13 times
Been thanked: 27 times

thx Jay.
While I see the inclination to find a 'one click solution' I am coming to realise that a fresh install and manual adds is going to be the cleanest way. The small overall size of bludit is one of the key attractions for me - and it is well featured enough (still learning the full extent) to meet most of my ongoing needs; which are pretty modest these days.

have a good one - kusalo
Post Reply