Changes between Version 3 and Version 4 of MasterUrl
- Timestamp:
- Oct 10, 2009, 6:09:40 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MasterUrl
v3 v4 24 24 All that said, here is how you change a project URL: 25 25 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, 28 27 so that you will never need to change it again. 29 28 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. 31 32 3. If you have any tasks in progress or waiting to be sent, 32 33 it's recommended you wait until they are all done before changing the URL. … … 37 38 they will still have old URLs and you can't edit that. 38 39 4. Stop the project. 39 5. Replace URL everywhere in config.xml40 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], 43 44 like logos for the simple GUI, 44 replace download URLs in project_files.xml45 8. Delete everything in html/cache,45 replace download URLs in `project_files.xml` 46 8. Delete everything in `html/cache`, 46 47 since cached pages may have links to the old URL, 47 48 and users would get broken links for an hour or so. 48 49 Don't delete the cache folder itself. 50 {{{ 49 51 rm -rf html/cache/* 52 }}} 50 53 9. Either create new application versions, 51 or update the app_versiontable to have the new URLs:54 or update the `app_version` table to have the new URLs: 52 55 {{{ 53 56 UPDATE app_version SET xml_doc = REPLACE(xml_doc, "http://old.example.com/", "http://new.example.org/"); 54 57 }}} 55 10. If you have forums ,58 10. If you have forums enabled, 56 59 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.