Do you have some feature in mind that you'd love to see in Couch? Let us know.
3 posts Page 1 of 1
Hello, i dont know if i'm posting in the right session. If not, please move it

I had a little problem with Couch and I want to suggest one thing.

I installed and configured all the website in a subfolder of my website. When I finished, I moved all files to the root directory. Everything worked, but the images that I added via backend remaings with the "full" link (www.domain.com/subfolder).

I solved it with a SQL code
update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, ‘find this string’, ‘replace found string with this string’);

Changing the "value" filed of some tables in DB.

So, my suggestion is to make this paths relatives, to eliminate this problem.

Thanks!
This happens to be the second time we've had someone complaining about this within a few hours :)

We anticipated this would be problem and have actually made changes to make Couch store paths in domain independent manner.
We have also created an easy way to migrate sites between domains.
However, these changes will ship only with the soon upcoming version.

For now, unfortunately, changing the links manually seems to be the only solution.
Pvfreitas did you use phpadmin to do this? keep getting a error when i try your trick to fix the images. basically all your doing is replacing 'localhost' with 'new host' right?

ok did a little research phpadmin is a little different this is the format you need to use

Code: Select all
update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, ‘find this string’, ‘replace found string with this string’);

would be this in php admin with couch_data_text being table_name and value being field_name this trick worked great saved me tons of time after migrating to a live server thanks for the head up Pvfreitas.

Code: Select all
update couch_data_text set value = replace(value, 'http:\/\/localhost', 'http:\/\/echoes.net63.net');
3 posts Page 1 of 1