Hi,
I dont know how to do this,
I have remote server installed 6.0 version erpnext & frappe…
I wants to copy it to local as in 2 diffrent sites
Site 1. Latest updated erpnext + custom app + datebase
(Site 1 done)
Site 2. current nonupdate erpnext + custom app + database
But in site 2 when installing frappe or erpnext from my pushed git it shows error while entering
bench get-app https:// MY GIT ACCOUNT…/erpnext
Getting error as
*bench.utils.commandfailederror: git clone https:/// MY GIT ACCOUNT/erpnext --origin upstream*
getting same error while doing getapp MY GIT ACCOUNT/frappe
I know upstream is latest where a get-app command is from origin which is old version…
how to do that?
Thanks.
Please share full traceback
Hi Mr. saurabh! Here it is.
frappe@erpnext:~/frappe-bench$ bench get-app https://www.github.com/********/erpnext
INFO:bench.app:getting app erpnext
INFO:bench.utils:git clone https://www.github.com/********/erpnext --origin upstream
fatal: destination path 'erpnext' already exists and is not an empty directory.
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/frappe/bench-repo/bench/commands/make.py", line 32, in get_app
get_app(git_url, branch=branch)
File "/home/frappe/bench-repo/bench/app.py", line 65, in get_app
cwd=os.path.join(bench_path, 'apps'))
File "/home/frappe/bench-repo/bench/utils.py", line 140, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git clone https://www.github.com/********/erpnext --origin upstream
app already exists under apps directory.
Hi Sourabh,
Yes I know that, but I want my site2 to be installed from my erpnext/frappe repo. (Site1 is from GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP))
I think I will require another bench to do that.