localhost switch to Online & vise versa (similar to Domain change)

Post Reply
sledgeman
Ssr. Bludit
Posts: 12
Joined: Sat Nov 05, 2022 7:16 pm
Has thanked: 7 times
Been thanked: 3 times

Hello dear community.

First of all, i am really impressed by the bludit CMS technology. In the past my first steps where done with the WordPress CMS. But after some time, i recognized that this CMS grow bigger & bigger, what makes me also think that it runs slower and slower. So i wanted to start a new CMS and was searching for new solutions. I figured out about FlatCMS and after some trials i decided to go with "bludit" ;)

When working with a CMS i use a so called web-server like usbwebserver, Laragon, etc. It works well, so far. I am able to define everything and adjust everything, before i upload it to my server and make it online available.

And here we come to my question (i have a partial answer to it, i would say. Lets see): When i want to move from my "http://localhost:8080/CONTENT/" to f.e. http://www.My-Site.com/CONTENT/ it gets difficult. In my research i found out that there is a plugin that helps you with such a "domain chainge". I would like to know if there is an elegant manual way to do so.

My current soultion for this is a manual one:
Inside the bludit CMS i go to the subfolder "..\bl-content\databases". Here i edit the file "site.php".
I need to search for a word "localhost" until something like this pos up. So i found this line :
"url": "http:\/\/localhost:8080\/CONTENT\/". I simply change it to my desired domain name, like:
"http:\/\/www.My-Site.com\/CONTENT\/". Thats it. When uploading it works so far.

But something is missing or better say, annoying:
..\bl-content\pages\info\index.txt
..\bl-content\pages\jobs\index.txt
..\bl-content\pages\about-us\index.txt
... and so on.

You see it depends as much links you have, you need to modify all of them manually. This works, but its time consuming. In comparison with the "site.php, modified before. Therefore my question (or suggestion) is:
a) how do you deal with the switching from localhost to your online-server new domain name ?
b) Is there a better, faster way ?
c) if its the same way, like mine, would it be possible to update the bludit CMS in a new way to merge the "links" inside the "index.txt" in "ONE file" like: "pages-links.txt" or "categories-links.txt" ?

This way you would have a much better overview of all your relevant links.


Thanks,
sledgeman
User avatar
novafacile
Master Bludit
Posts: 107
Joined: Sat Oct 06, 2018 4:47 pm
Has thanked: 35 times
Been thanked: 10 times
Contact:

Could it be, that you are looking for a plugin like this?

https://plugins.bludit.com/plugin/domain-migrator
sledgeman
Ssr. Bludit
Posts: 12
Joined: Sat Nov 05, 2022 7:16 pm
Has thanked: 7 times
Been thanked: 3 times

Hi novafacile.

Thx for looking into.
I mention it, in my post:
In my research i found out that there is a plugin that helps you with such a "domain change". I would like to know if there is an elegant manual way to do so.
This plugin (https://plugins.bludit.com/plugin/domain-migrator) seems to be useful and suited for such a task. And its a no-brainer to buy it for 1$ !

Just technically it is interesting for me to know, if Bludit could be build the way, that you can change things easily. For example ""site.php" contains ALL the links. Or better say: one link that seems to apply to all the other *.php files. This is elegant, because only 1x small change inside this file, changes all the links inside the whole Bludit-CMS. Except ... pages ... and this is what i dont understand.

Inside the pages, i have uploaded some media files (pictures). This pages contains information about that media, which is stored inside a "index.txt" file. And if you have made many pages inside Bludit, you need to change all xxx index.txt files which contains the links of the uploaded media. This is not elegant, in my opinion. (in comparison to that one file that contains it all "site.php")

So it would be nice, if Bludit could be developed the way, that such essential things are easy to handle. I like plugins a lot ! Sometimes plugins are outdated, not updated anymore. Therefore something essential like this, should be handled very easily by the CMS itself. imho.

What are your thoughts on this ?
User avatar
novafacile
Master Bludit
Posts: 107
Joined: Sat Oct 06, 2018 4:47 pm
Has thanked: 35 times
Been thanked: 10 times
Contact:

The dilemma is, you can't have both: maximum of flexibility/feature set and maximum of simplicity. And a USP of Bludit is simplicity. You must always accept compromises. In the past some features are extracted to plugins, to keep the core small.

My personal preferences would be, that links are relative, without the domain. But with this, you would have the same problem if you move Bludit into a subfolder (e.g. mydomain.com/oldpath -> mydomain.com/newpath).

I can understand your worries about the plugin, but it's by the author of Bludit and a part of Bludit Pro. As long the Bludit author is developing Bludit, the plugin will be maintained.
sledgeman
Ssr. Bludit
Posts: 12
Joined: Sat Nov 05, 2022 7:16 pm
Has thanked: 7 times
Been thanked: 3 times

Hi novafacile.

Okay. I got it. Thanks for the clarification 8-)
I can understand your worries about the plugin, but it's by the author of Bludit and a part of Bludit Pro. As long the Bludit author is developing Bludit, the plugin will be maintained.
Thats good to know. Nice that the plugin development is tidily bundled with the Bludit development.
Post Reply