I initially installed India_compliance (develop branch), and installed it in on a site.
After that, I uninstalled it from the site by bench uninstall-app
command and then removed the apps/india_compliance app as I wanted to have a different version on the site.
So I get-app again, and then installed in on my site.
But my apps.json was not updated, it still shows version : 16.0.0-dev
How to fix this?
the default version is 16.0.0-dev
use below command to get the desired version
bench get-app https://github.com/resilient-tech/india-compliance.git --branch version-15
@mohitchechani Please read once what I said above, I have no trouble installing a specified version, but I have trouble in updating the version in apps.json file, though everything seems to work perfect after I am getting the desired version, but how to update in apps.json in the background while updating it.
1 Like
I’m also wondering how to update apps.json
and my web searches led me here…
Following @mohitchechani’s advice:-
$ cat development/frappe-bench/sites/apps.json| jq '.frappe'
{
"resolution": {
"commit_hash": null,
"branch": null
},
"required": [],
"idx": 1,
"version": "15.48.1"
}
$ bench get-app https://github.com/frappe/frappe.git --branch develop
A directory for the application 'frappe' already exists. Do you want to continue and overwrite it? [y/N]: N
Do you want to reinstall the existing application? [y/N]: N
$ cat development/frappe-bench/sites/apps.json| jq '.frappe'
{
"resolution": {
"commit_hash": null,
"branch": null
},
"required": [],
"idx": 1,
"version": "15.48.1"
}
$ cd development/frappe-bench/apps/frappe
$ git branch -vv
* develop 32bc18b5c3 [upstream/develop] Merge pull request #32486 from sokumon/pin-click
version-15 12ef6c318f [upstream/version-15] chore(release): Bumped to Version 15.68.0
I already have all remote branches and the full commit history, so I don’t want to overwrite it. Reinstalling a site completely wipes the database; is reinstalling an app relatively safe? I don’t want to lose data just because apps.json
is out-of-sync with my current working tree!
bench update
and bench migrate
don’t appear to update apps.json either…
1 Like