#How to Update the ManageIQ code on a MIQ Server
- Shutdown EVM process, postrgresql, and memcached
su - miqbuilder
- Shutdown server
shutdown now
- Take a snapshot of the server
- Start server
- Make sure the memcached and postgresql processes started properly
service memcached start service postgresql start
- Sudo as miq-builder
su - miqbuilder
- Do a git pull
cd /opt/manageiq git pull
- Perform bundle install. Note: I had to run the following commmand,
bundle update httpclient
, before I could execute the block of code below. When you run the first bundle install it will tell you if you need to force update httpclient or any other gems. Update any additional gems if the bundle install complains.cd manageiq/vmdb bundle install --without qpid cd .. vmdb/bin/rake build:shared_objects cd vmdb bundle install --without qpid
- Update the database, it will only change DDL
bin/rake db:migrate
- Start the evm process and check the status to make sure everything came up after about a minute.
cd /opt/manageiq/vmdb/ bin/rake evm:start