Developers Frequently Asked Questions
From IHRIS Wiki
This is currently a work in progress to document some frequently asked questions for developers. Please let us know if you would like any questions added here.
Command Line Questions
How do you update a site from the command line?
In the terminal, change to the pages directory in your site, or alternatively change to the linked location under /var/www (or /var/www/html in Ubuntu 14.04).
cd /var/www/YOUR-SITE php index.php --update=1 sudo service apache2 restart
This will begin the update process and then you'll need to restart apache so the APC(u) can be recached with your changes. An example location may be:
cd /var/www/iHRIS/manage-demo php index.php --update=1 sudo service apache2 restart
The update doesn't seem to be working even though I've fixed some discovered errors in the configuration file
This may be because some data is still loaded in memcached. Before doing the update process you will want to restart memcached and apache2:
sudo service memcached restart; sudo service apache2 restart
Then update as explained here #How do you update a site from the command line?