So, here’s the plan…
- Make a full backup.
- Get the README from the Instiki site
- Download the latest release from rubyforge: http://rubyforge.org/project/showfiles.php?group_id=186
- Unpack it to the place on the host where you keep your Ruby on Rails apps.
- Remove symbolic link with existing Instiki version
- Put static html in place to warn of upgrade if necessary.
- Configure config/database.yml as it was before, pointing to the database(s)
- Configure environment.rb to contain the following before running either ‘rake migrate’ or instiki itself (path in RAILS_ROOT is indicative of where the instiki app dir is actually located):
# The path to the root directory of your application.
RAILS_ROOT = '/home/awebfact/rorapps/instiki-0.11.0/'
ENV['RAILS_ENV'] = "production"
RAILS_ENV = ENV['RAILS_ENV'] || 'development'
- Also, execute this sql for the instiki database(s) in phpMyAdmin or else on the command line:
create table schema_info (version integer(11));
insert into schema_info (version) values (1);
- go to instiki directory and do:
# rake migrate
(in /home/awebfact/rorapps/instiki-0.11.0)
- Upload images. Upload previous public/dispatch.fcgi that worked!
- Remove symbolic link with existing Instiki version
- delete subdomain
- re-create subdomain
- delete subdirectory created as a result
- Link symbolically with new dir:
awebfact@awebfactory.com.ar [~/public_html]# rm -rf wiki
awebfact@awebfactory.com.ar [~/public_html]# ln -s ~/rorapps/instiki-0.11.0/public ~/public_html/wiki
awebfact@awebfactory.com.ar [~/public_html]# ls -lia wiki
3867003 lrwxrwxrwx 1 awebfact awebfact 44 Aug 2 14:40 wiki -> /home/awebfact/rorapps/instiki-0.11.0/public/