Update:Remora Deployment: Difference between revisions
Jump to navigation
Jump to search
| Line 5: | Line 5: | ||
== Databases == | == Databases == | ||
=== Run Migration Script === | === Run Migration Script === | ||
'''Wil did this on a non-RHEL box''' | '''Wil did this on a non-RHEL box''' | ||
'''You need at least python 2.4 to run this''' Run ''python -V'' to check your version. Lots of additional info and examples for the migration script [[Update:Remora_Database_Migration|is available ]] | '''You need at least python 2.4 to run this''' Run ''python -V'' to check your version. Lots of additional info and examples for the migration script [[Update:Remora_Database_Migration|is available ]] | ||
* Go to /services/bin/ | * Go to /services/bin/ | ||
| Line 27: | Line 29: | ||
=== Run SQL Patches === | === Run SQL Patches === | ||
* Run SQL to modify migrated data for production | * Run SQL to modify migrated data for production | ||
== Web Server Config == | == Web Server Config == | ||
== Software Config == | == Software Config == | ||
== Fallback Plan == | == Fallback Plan == | ||
Revision as of 00:41, 13 February 2007
Databases
Run Migration Script
Wil did this on a non-RHEL box
You need at least python 2.4 to run this Run python -V to check your version. Lots of additional info and examples for the migration script is available
- Go to /services/bin/
- Create migration.conf and fill in values. For example, mine looks like:
oldDatabaseName=c_amov2 oldPassword=******** oldServerName=localhost oldUserName=web newDatabaseName=c_remora newPassword=******** newServerName=localhost newUserName=web fileCachePath=files
- The fileCachePath is a relative path that will hold a copy of all the versions of all the addons - you'll need to create this directory. In my example, I created a directory named "files" in /services/bin/.
- (If you're thinking of moving the migration.py script out of /services/bin, that's fine, but take blank.png with it - they need to be in the same dir when the script runs)
- Run ./migration.py -MAv --recalculateHash >> migrate.out 2>&1 - I'm redirecting the output here because there is a lot and we should look through it for errors.
- When this is finished, check migrate.out to make sure it finished happily
- Move the fileCachePath directory to /site/app/webroot/ VERIFY THIS
Run SQL Patches
- Run SQL to modify migrated data for production