Upgrading
How to Upgrade the DrupalGap Module
More information on upgrading Drupal modules is available here.
How to Upgrade the DrupalGap Mobile Application Development Kit
First and foremost, make a backup of all of your code before beginning in case you need to roll backwards to older code.
All custom code should be in the index.html
file, the modules
and themes
folders, and the settings.js
file. This allows DrupalGap to be updated with the DrupalGap CLI
:
cd app
./dg up
Or you can follow these steps to manually update to the latest version:
- Download the latest version of the SDK
- Extract it into your app's
www
directory, soindex.html
anddrupalgap.min.js
(and many others) are overwritten with the new copies - Replace your
settings.js
file with the newdefault.settings.js
file - Read UPGRADE.md to understand what is new (and for developer code changes)
- Migrate any changes originally made to your
settings.js
file back into the newsettings.js
file - Migrate any changes originally made to your
index.html
file back into the newindex.html
That should be it, run your app to have the latest DrupalGap in use!