Changes between Version 3 and Version 4 of MasterUrl


Ignore:
Timestamp:
Oct 10, 2009, 6:09:40 PM (15 years ago)
Author:
Nicolas
Comment:

Update instructions.

Legend:

Unmodified
Added
Removed
Modified
  • MasterUrl

    v3 v4  
    2424All that said, here is how you change a project URL:
    2525
    26 
    27  1. Pick a *good* new URL according to the above recommendations,
     26 1. Pick a '''good''' new URL according to the above recommendations,
    2827 so that you will never need to change it again.
    2928 2. If the project was ever public,
    30  post news to let users now the URL will change.
     29 post news to let users know the URL will change.
     30 3. If stats aggregators carry your project's stats,
     31 let the site admins know about the URL change.
    3132 3. If you have any tasks in progress or waiting to be sent,
    3233 it's recommended you wait until they are all done before changing the URL.
     
    3738 they will still have old URLs and you can't edit that.
    3839 4. Stop the project.
    39  5. Replace URL everywhere in config.xml
    40  6. Replace scheduler URL in html/users/schedulers.txt.
    41  Prefix should match the URL in <cgi_url> in config.xml.
    42  7. If you have project-wide files,
     40 5. Replace URL everywhere in [ProjectConfigFile config.xml]
     41 6. Replace scheduler URL in `html/users/schedulers.txt`.
     42 Prefix should match the URL in [ProjectOptions#dirs <cgi_url> in config.xml].
     43 7. If you have [ProjectSkin project-wide files],
    4344 like logos for the simple GUI,
    44  replace download URLs in project_files.xml
    45  8. Delete everything in html/cache,
     45 replace download URLs in `project_files.xml`
     46 8. Delete everything in `html/cache`,
    4647 since cached pages may have links to the old URL,
    4748 and users would get broken links for an hour or so.
    4849 Don't delete the cache folder itself.
     50{{{
    4951 rm -rf html/cache/*
     52}}}
    5053 9. Either create new application versions,
    51  or update the app_version table to have the new URLs:
     54 or update the `app_version` table to have the new URLs:
    5255{{{
    5356 UPDATE app_version SET xml_doc = REPLACE(xml_doc, "http://old.example.com/", "http://new.example.org/");
    5457}}}
    55  10. If you have forums,
     58 10. If you have forums enabled,
    5659 you may want to do a similar replacement on forum contents,
    57  in case users posted links to workunits / users / computers / something.
    58  11. Start the project, send some test workunits, and hope it works.
    59  Keep a copy of "Murphy's Law - and other reasons why things go wrong" handy.
     60 in case users posted links to their computers or similar.
     61 11. Start the project, send some test workunits,
     62 and make sure everything is working.