Developers Frequently Asked Questions

From IHRIS Wiki
Revision as of 02:38, 16 July 2014 by Lduncan (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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). <source lang="bash"> cd /var/www/YOUR-SITE php index.php --update=1 sudo service apache2 restart </source> 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: <source lang="bash"> cd /var/www/iHRIS/manage-demo php index.php --update=1 sudo service apache2 restart </source>

The update doesn't seem to be working even though I've fixed some discovered errors in the configuration file

This may be cause some data is still loaded in memcached. Before doing the update process you will want to restart memcached and apache2: <source lang="bash"> sudo service memcached restart; sudo service apache2 restart </source> Then update as explained here #How do you update a site from the command line?